embedded-software
reusable software modules for embedded systems
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
accelerometer.h
Go to the documentation of this file.
1 
22 #ifndef _ACCELEROMETER_H_
23 #define _ACCELEROMETER_H_
24 
25 #include <stdint.h>
26 #include "project_settings.h"
27 #include "task.h"
28 #include "hal_general.h"
29 
30 #ifndef USE_MODULE_TASK
31 #error "USE_MODULE_TASK not defined in project_settings.h. Accelerometer not able to function without."
32 #endif
33 
40 int8_t Accelerometer_Init(uint16_t period, void(*callback)(float x, float y, float z));
41 
44 void Accelerometer_Deinit(void);
45 
46 
49 #endif // _ACCELEROMETER_H_
int8_t Accelerometer_Init(uint16_t period, void(*callback)(float x, float y, float z))
Initialize the accelerometer to read data at a period returning to a callback.
Definition: accelerometer.c:39
void Accelerometer_Deinit(void)
Deinitialize the accelerometer task scheduler.
Definition: accelerometer.c:141