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