summaryrefslogtreecommitdiff
path: root/src/sensors-service/globals.h
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2018-05-30 16:40:00 +0200
committerasanoaozora <fifitaneki@hotmail.com>2018-05-30 16:40:00 +0200
commita3fbfa55230fa64d499a6b7a4da6d8b4fa468230 (patch)
tree37d50fd2278d6646447c261ee61d74ba96160da1 /src/sensors-service/globals.h
parenta4938ffa0e6d15aed58645f57b2645bc0a61527a (diff)
downloadnavigation-a3fbfa55230fa64d499a6b7a4da6d8b4fa468230.tar.gz
some improvements to make it easier to maintain
Diffstat (limited to 'src/sensors-service/globals.h')
-rw-r--r--src/sensors-service/globals.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/sensors-service/globals.h b/src/sensors-service/globals.h
new file mode 100644
index 0000000..7c2f9d0
--- /dev/null
+++ b/src/sensors-service/globals.h
@@ -0,0 +1,67 @@
+/**************************************************************************
+* @licence app begin@
+*
+* SPDX-License-Identifier: MPL-2.0
+*
+* \ingroup SensorsService
+* \author Marco Residori <marco.residori@xse.de>
+*
+* \copyright Copyright (C) 2013, XS Embedded GmbH
+*
+* \license
+* This Source Code Form is subject to the terms of the
+* Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with
+* this file, You can obtain one at http://mozilla.org/MPL/2.0/.
+*
+* @licence end@
+**************************************************************************/
+
+#ifndef GLOBALS_H
+#define GLOBALS_H
+
+#include <stdbool.h>
+#include <pthread.h>
+#include <time.h>
+
+#include "sns-init.h"
+#include "wheel.h"
+#include "acceleration.h"
+#include "gyroscope.h"
+#include "vehicle-speed.h"
+#include "sns-meta-data.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern const TSensorMetaData gSensorsMetaData[];
+
+bool iAccelerationInit();
+bool iAccelerationDestroy();
+void updateAccelerationData(const TAccelerationData accelerationData[], uint16_t numElements);
+void updateAccelerationStatus(const TSensorStatus* status);
+
+bool iGyroscopeInit();
+bool iGyroscopeDestroy();
+void updateGyroscopeData(const TGyroscopeData gyroData[], uint16_t numElements);
+void updateGyroscopeStatus(const TSensorStatus* status);
+
+
+bool iWheelInit();
+bool iWheelDestroy();
+void updateWheelData(const TWheelData wheelData[], uint16_t numElements);
+void updateWheelStatus(const TSensorStatus* status);
+
+bool iVehicleSpeedInit();
+bool iVehicleSpeedDestroy();
+void updateVehicleSpeedData(const TVehicleSpeedData vehicleSpeedData[], uint16_t numElements);
+void updateVehicleSpeedStatus(const TSensorStatus* status);
+
+bool iVehicleDataInit();
+bool iVehicleDataDestroy();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* GLOBALS_H */