Board Support
Version 1.0
Functions available when using the Board Software Components
|
Gyroscope Interface. More...
Structures | |
struct | GYROSCOPE_STATE |
Gyroscope state. More... | |
Functions | |
int32_t | Gyroscope_Initialize (void) |
Initialize gyroscope. More... | |
int32_t | Gyroscope_Uninitialize (void) |
De-initialize gyroscope. More... | |
int32_t | Gyroscope_GetState (GYROSCOPE_STATE *pState) |
Get gyroscope state. More... | |
Gyroscope Interface.
struct GYROSCOPE_STATE |
int32_t Gyroscope_GetState | ( | GYROSCOPE_STATE * | pState | ) |
Get gyroscope state.
[out] | pState | pointer to GYROSCOPE_STATE structure |
The function reads the gyroscope state and writes the values into the structure GYROSCOPE_STATE. The parameter pState is a pointer to the GYROSCOPE_STATE structure. The function returns an integer value of 0 on success, and -1 on error.
int32_t Gyroscope_Initialize | ( | void | ) |
Initialize gyroscope.
The function initializes the gyroscope interface. The function returns an integer value of 0 on success, and -1 on error.
int32_t Gyroscope_Uninitialize | ( | void | ) |
De-initialize gyroscope.
The function de-initializes the gyroscope interface. The function returns an integer value of 0 on success, and -1 on error.