2 * @copyright Copyright (c) 2019-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.
17 /*******************************************************************************
18 * File name :VehicleSens_Did_GyroZ.cpp
19 * Subsystem name :Vehicle sensor process
20 * Program name :Vehicle sensor data master(VEHICLE_DID_GYRO_Z)
21 * Module configuration :VehicleSensGetGyroZ() Vehicle Sensor GYRO GET Functions
22 ******************************************************************************/
24 #include "VehicleSens_DataMaster.h"
26 /*************************************************/
28 /*************************************************/
30 /*******************************************************************************
31 * MODULE : VehicleSensGetGyroZ
32 * ABSTRACT : Vehicle Sensor GYRO_Z GET Functions
33 * FUNCTION : Provide a GYRO data master
34 * ARGUMENT : *pst_data : Pointer to the data master acquisition destination
35 * uc_get_method : Acquisition method(Direct Line or CAN)
38 ******************************************************************************/
39 void VehicleSensGetGyroZ(VEHICLESENS_DATA_MASTER *pst_data, u_int8 uc_get_method) {
40 switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in
41 case VEHICLESENS_GETMETHOD_CAN:
43 /* When acquiring from CAN data */
44 AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
45 break; // LCOV_EXCL_LINE 8: dead code
47 case VEHICLESENS_GETMETHOD_LINE:
49 /* To acquire from LineSensor */
50 VehicleSensGetGyroZl(pst_data);
58 #if CONFIG_SENSOR_EXT_VALID /* Initial Sensor Support */
59 /*******************************************************************************
60 * MODULE : VehicleSensGetGyroZExt
61 * ABSTRACT : Vehicle Sensor GYRO_Z GET Functions
62 * FUNCTION : Provide a GYRO data master
63 * ARGUMENT : *pst_data : Pointer to the data master acquisition destination
64 * uc_get_method : Acquisition method(Direct Line or CAN)
67 ******************************************************************************/
68 void VehicleSensGetGyroZExt(VEHICLESENS_DATA_MASTER_EXT *pst_data, u_int8 uc_get_method) {
69 switch (uc_get_method) {
70 case VEHICLESENS_GETMETHOD_CAN:
72 /* When acquiring from CAN data */
75 case VEHICLESENS_GETMETHOD_LINE:
77 /* To acquire from LineSensor */
78 VehicleSensGetGyroZExtl(pst_data);
86 /*******************************************************************************
87 * MODULE : VehicleSensGetGyroZFst
88 * ABSTRACT : Vehicle Sensor GYRO_Z GET Functions
89 * FUNCTION : Provide a GYRO data master
90 * ARGUMENT : *pst_data : Pointer to the data master acquisition destination
91 * uc_get_method : Acquisition method(Direct Line or CAN)
94 ******************************************************************************/
95 void VehicleSensGetGyroZFst(VEHICLESENS_DATA_MASTER_FST *pst_data, u_int8 uc_get_method) {
96 switch (uc_get_method) { // LCOV_EXCL_BR_LINE 6:VEHICLESENS_GETMETHOD_CAN cannot to pass in
97 case VEHICLESENS_GETMETHOD_CAN:
99 /* When acquiring from CAN data */
100 AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
101 break; // LCOV_EXCL_LINE 8: dead code
103 case VEHICLESENS_GETMETHOD_LINE:
105 /* To acquire from LineSensor */
106 VehicleSensGetGyroZFstl(pst_data);