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_GyroTemp.cpp
21 * Vehicle sensor data master(VEHICLE_DID_GYRO_TEMP_)
24 #include <vehicle_service/positioning_base_library.h>
25 #include "VehicleSens_DataMaster.h"
27 /*************************************************/
29 /*************************************************/
33 * Vehicle Sensor Gyro Temperature GET Function
35 * Provide a gyro temperature 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 VehicleSensGetGyroTemp(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 VehicleSensGetGyroTempl(pst_data);
61 * Vehicle Sensor Gyro Temperature (Initial Delivery) GET Function
63 * Provide a gyro temperature 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 VehicleSensGetGyroTempExt(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
76 case VEHICLESENS_GETMETHOD_LINE:
78 /* To acquire from LineSensor */
79 VehicleSensGetGyroTempExtl(pst_data);
89 * Vehicle sensor gyro temperature (initial sensor) GET function
91 * Provide a gyro temperature data master
93 * @param[in] *pst_data: Pointer to the data master acquisition destination
94 * @param[in] uc_get_method: Acquisition method(Direct Line or CAN)
96 void VehicleSensGetGyroTempFst(VEHICLESENS_DATA_MASTER_FST *pst_data, u_int8 uc_get_method) {
97 switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in
98 case VEHICLESENS_GETMETHOD_CAN:
100 /* When acquiring from CAN data */
101 AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
102 break; // LCOV_EXCL_LINE 8: dead code
104 case VEHICLESENS_GETMETHOD_LINE:
106 /* To acquire from LineSensor */
107 VehicleSensGetGyroTempFstl(pst_data);