Re-organized sub-directory by category
[staging/basesystem.git] / service / vehicle / positioning / server / src / Sensor / VehicleSens_Did_GyroZ.cpp
1 /*
2  * @copyright Copyright (c) 2019-2020 TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
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  ******************************************************************************/
23
24 #include "VehicleSens_DataMaster.h"
25
26 /*************************************************/
27 /*           Global variable                      */
28 /*************************************************/
29
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)
36 * NOTE      :
37 * RETURN    : void
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:
42         {
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
46         }
47         case VEHICLESENS_GETMETHOD_LINE:
48         {
49             /* To acquire from LineSensor */
50             VehicleSensGetGyroZl(pst_data);
51             break;
52         }
53         default:
54             break;
55     }
56 }
57
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)
65 * NOTE      :
66 * RETURN    : void
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:
71         {
72             /* When acquiring from CAN data */
73             break;
74         }
75         case VEHICLESENS_GETMETHOD_LINE:
76         {
77             /* To acquire from LineSensor */
78             VehicleSensGetGyroZExtl(pst_data);
79             break;
80         }
81         default:
82             break;
83     }
84 }
85
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)
92 * NOTE      :
93 * RETURN    : void
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:
98         {
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
102         }
103         case VEHICLESENS_GETMETHOD_LINE:
104         {
105             /* To acquire from LineSensor */
106             VehicleSensGetGyroZFstl(pst_data);
107             break;
108         }
109         default:
110             break;
111     }
112 }
113 #endif