summaryrefslogtreecommitdiffstats
path: root/positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp')
-rw-r--r--positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp82
1 files changed, 41 insertions, 41 deletions
diff --git a/positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp b/positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp
index d06b0e46..e1400f2a 100644
--- a/positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp
+++ b/positioning/server/src/Sensor/VehicleSens_Did_SysGpsInterruptSignal.cpp
@@ -1,5 +1,5 @@
/*
- * @copyright Copyright (c) 2016-2019 TOYOTA MOTOR CORPORATION.
+ * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -46,7 +46,7 @@ void VehicleSensInitSysGpsInterruptSignal(void) {
(void)memset(reinterpret_cast<void *>(&(gstSysGpsInterruptSignal)), static_cast<int>(0x00),
sizeof(VEHICLESENS_DATA_MASTER_GPS_INTERRUPT_SIGNAL));
gstSysGpsInterruptSignal.ul_did = VEHICLE_DID_SYS_GPS_INTERRUPT_SIGNAL;
-// gstSysGpsInterruptSignal.us_size = VEHICLE_DSIZE_SYS_GPS_INTERRUPT_SIGNAL;
+ gstSysGpsInterruptSignal.us_size = VEHICLE_DSIZE_SYS_GPS_INTERRUPT_SIGNAL;
gstSysGpsInterruptSignal.uc_data = VEHICLE_DINIT_SYS_GPS_INTERRUPT_SIGNAL;
#if VEHICLE_SENS_DID_SYS_GPS_INTERRUPT_SIGNAL_DEBUG_FACTORY
@@ -64,45 +64,45 @@ void VehicleSensInitSysGpsInterruptSignal(void) {
* RETURN : VEHICLESENS_EQ : No data change
* VEHICLESENS_NEQ : Data change
******************************************************************************/
-//u_int8 VehicleSensSetSysGpsInterruptSignal(const LSDRV_MSG_LSDATA_DAT_GPS_INTERRUPT_SIGNAL *pst_data) { // LCOV_EXCL_START 8: dead code // NOLINT(whitespace/line_length)
-// AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
-// u_int8 uc_ret = VEHICLESENS_EQ;
-// VEHICLESENS_DATA_MASTER_GPS_INTERRUPT_SIGNAL *pst_master;
-//
-// if (pst_data == NULL) {
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__, "pst_data == NULL\r\n");
-// } else {
-// pst_master = &gstSysGpsInterruptSignal;
-//
-// /* Compare data master and received data */
-// uc_ret = VehicleSensmemcmp(reinterpret_cast<void *>(&(pst_master->uc_data)),
-// (const void *)(&(pst_data->uc_data)), (size_t)(pst_data->uc_size));
-//
-// /* Received data is set in the data master. */
-// pst_master->ul_did = pst_data->ul_did;
-// pst_master->us_size = (u_int16)pst_data->uc_size;
-// pst_master->uc_rcvflag = VEHICLE_RCVFLAG_ON;
-// (void)memcpy(reinterpret_cast<void *>(&(pst_master->uc_data)),
-// (const void *)(&(pst_data->uc_data)), sizeof(pst_master->uc_data));
-//
-//#if VEHICLE_SENS_DID_SYS_GPS_INTERRUPT_SIGNAL_DEBUG_FACTORY
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
-// "#[FACTORY] pst_data->ul_did == 0x%x", pst_data->ul_did);
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
-// "#[FACTORY] gstSysGpsInterruptSignal.ul_did == 0x%x\r\n", gstSysGpsInterruptSignal.ul_did);
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
-// "#[FACTORY] (u_int8)pst_data->ucSize == 0x%x", (u_int8)pst_data->uc_size);
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
-// "#[FACTORY] gstSysGpsInterruptSignal.us_size == 0x%x\r\n", gstSysGpsInterruptSignal.us_size);
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
-// "#[FACTORY] pst_data->uc_data == 0x%x", pst_data->uc_data);
-// FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
-// "#[FACTORY] gstSysGpsInterruptSignal.uc_data == 0x%x\r\n", gstSysGpsInterruptSignal.uc_data);
-//#endif
-// }
-//
-// return(uc_ret);
-//}
+u_int8 VehicleSensSetSysGpsInterruptSignal(const LSDRV_MSG_LSDATA_DAT_GPS_INTERRUPT_SIGNAL *pst_data) { // LCOV_EXCL_START 8: dead code // NOLINT(whitespace/line_length)
+ AGL_ASSERT_NOT_TESTED(); // LCOV_EXCL_LINE 200: test assert
+ u_int8 uc_ret = VEHICLESENS_EQ;
+ VEHICLESENS_DATA_MASTER_GPS_INTERRUPT_SIGNAL *pst_master;
+
+ if (pst_data == NULL) {
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__, "pst_data == NULL\r\n");
+ } else {
+ pst_master = &gstSysGpsInterruptSignal;
+
+ /* Compare data master and received data */
+ uc_ret = VehicleSensmemcmp(reinterpret_cast<void *>(&(pst_master->uc_data)),
+ (const void *)(&(pst_data->uc_data)), (size_t)(pst_data->uc_size));
+
+ /* Received data is set in the data master. */
+ pst_master->ul_did = pst_data->ul_did;
+ pst_master->us_size = (u_int16)pst_data->uc_size;
+ pst_master->uc_rcvflag = VEHICLE_RCVFLAG_ON;
+ (void)memcpy(reinterpret_cast<void *>(&(pst_master->uc_data)),
+ (const void *)(&(pst_data->uc_data)), sizeof(pst_master->uc_data));
+
+#if VEHICLE_SENS_DID_SYS_GPS_INTERRUPT_SIGNAL_DEBUG_FACTORY
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
+ "#[FACTORY] pst_data->ul_did == 0x%x", pst_data->ul_did);
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
+ "#[FACTORY] gstSysGpsInterruptSignal.ul_did == 0x%x\r\n", gstSysGpsInterruptSignal.ul_did);
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
+ "#[FACTORY] (u_int8)pst_data->ucSize == 0x%x", (u_int8)pst_data->uc_size);
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
+ "#[FACTORY] gstSysGpsInterruptSignal.us_size == 0x%x\r\n", gstSysGpsInterruptSignal.us_size);
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
+ "#[FACTORY] pst_data->uc_data == 0x%x", pst_data->uc_data);
+ FRAMEWORKUNIFIEDLOG(ZONE_INFO, __FUNCTION__,
+ "#[FACTORY] gstSysGpsInterruptSignal.uc_data == 0x%x\r\n", gstSysGpsInterruptSignal.uc_data);
+#endif
+ }
+
+ return(uc_ret);
+}
/*******************************************************************************
* MODULE : VehicleSensGetSysGpsInterruptSignal