2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 * VehicleSens_Did_PulseTime.cpp
21 * Vehicle sensor data master(VEHICLE_DID_PULSE_TIME)
24 #include <vehicle_service/positioning_base_library.h>
25 #include "VehicleSens_DataMaster.h"
27 /*************************************************/
29 /*************************************************/
33 * Vehicle sensor pulse time GET function
35 * Provide interpulse time data master
37 * @param[in] *pst_data: Pointer to the data master acquisition destination
38 * @param[in] uc_get_method: Acquisition method(Direct Line or CAN)
40 void VehicleSensGetPulseTime(VEHICLESENS_DATA_MASTER *pst_data, u_int8 uc_get_method) {
41 switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in
42 case VEHICLESENS_GETMETHOD_CAN:
44 /* When acquiring from CAN data */
45 AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
46 break; // LCOV_EXCL_LINE 8: dead code
48 case VEHICLESENS_GETMETHOD_LINE:
50 /* To acquire from LineSensor */
51 VehicleSensGetPulseTimel(pst_data);
61 * Vehicle sensor inter-pulse time (initial delivery) GET function
63 * Provide interpulse time data master
65 * @param[in] *pst_data: Pointer to the data master acquisition destination
66 * @param[in] uc_get_method: Acquisition method(Direct Line or CAN)
68 void VehicleSensGetPulseTimeExt(VEHICLESENS_DATA_MASTER_EXT *pst_data, u_int8 uc_get_method) {
69 switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in
70 case VEHICLESENS_GETMETHOD_CAN:
72 /* When acquiring from CAN data */
73 AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
74 break; // LCOV_EXCL_LINE 8: dead code
77 case VEHICLESENS_GETMETHOD_LINE:
79 /* To acquire from LineSensor */
80 VehicleSensGetPulseTimeExtl(pst_data);
90 * Vehicle sensor pulse time (initial sensor) GET function
92 * Provide interpulse time data master
94 * @param[in] *pst_data: Pointer to the data master acquisition destination
95 * @param[in] uc_get_method: Acquisition method(Direct Line or CAN)
98 void VehicleSensGetPulseTimeFst(VEHICLESENS_DATA_MASTER_FST *pst_data, u_int8 uc_get_method) { // LCOV_EXCL_START 8: dead code // NOLINT(whitespace/line_length)
99 AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
100 switch (uc_get_method) {
101 case VEHICLESENS_GETMETHOD_CAN:
103 /* When acquiring from CAN data */
106 case VEHICLESENS_GETMETHOD_LINE:
108 /* To acquire from LineSensor */