![]() |
Board Support
Version 1.0
Functions available when using the Board Software Components
|
Accelerometer Interface. More...
Structures | |
| struct | ACCELEROMETER_STATE |
| Accelerometer state. More... | |
Functions | |
| int32_t | Accelerometer_Initialize (void) |
| Initialize accelerometer. More... | |
| int32_t | Accelerometer_Uninitialize (void) |
| De-initialize accelerometer. More... | |
| int32_t | Accelerometer_GetState (ACCELEROMETER_STATE *pState) |
| Get accelerometer state. More... | |
Accelerometer Interface.
| struct ACCELEROMETER_STATE |
| int32_t Accelerometer_GetState | ( | ACCELEROMETER_STATE * | pState | ) |
Get accelerometer state.
| [out] | pState | pointer to ACCELEROMETER_STATE structure |
The function reads the acceleration state and writes the data into pState. The parameter pState is a pointer to the structure ACCELEROMETER_STATE. The function returns an integer value of 0 on success, and -1 on error.
| int32_t Accelerometer_Initialize | ( | void | ) |
Initialize accelerometer.
The function initializes the accelerometer. The function returns an integer value of 0 on success, and -1 on error.
| int32_t Accelerometer_Uninitialize | ( | void | ) |
De-initialize accelerometer.
The function de-initializes the accelerometer. The function returns an integer value of 0 on success, and -1 on error.