Functions for configuring the gyro module.
More...
Functions for configuring the gyro module.
ret_code_t m_gyro_calibrate |
( |
void |
| ) |
|
Function for initiating gyro calibration.
- Note
- Gyro will be automatically turned on if not already enabled.
- Returns
- NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_gyro_disable |
( |
void |
| ) |
|
Function for disabling the gyro module.
- Returns
- NRF_SUCCESS on success, otherwise an error code.
ret_code_t m_gyro_enable |
( |
void |
| ) |
|
Function for enabling the gyro module.
- Returns
- NRF_SUCCESS on success, otherwise an error code.
bool m_gyro_event_handler |
( |
const event_t * |
p_event | ) |
|
Event bus event handler.
- Parameters
-
[in] | p_event | Pointer to the event structure. |
- Returns
- True if further processing of the given event should be abandoned.
ret_code_t m_gyro_init |
( |
bool |
force_calibration | ) |
|
Function for initializing the gyro module.
- Parameters
-
[in] | force_calibration | If true, the gyroscope calibration will be performed even if valid calibration data is present in the flash. |
- Returns
- NRF_SUCCESS on success, otherwise an error code.