Smart Remote 3 nRF52 v1.2
Modules | Functions
Gyroscope module

Functions for configuring the gyro module. More...

Modules

 Gyro driver
 Gyro driver API.
 

Functions

ret_code_t m_gyro_calibrate (void)
 Function for initiating gyro calibration. More...
 
ret_code_t m_gyro_disable (void)
 Function for disabling the gyro module. More...
 
ret_code_t m_gyro_enable (void)
 Function for enabling the gyro module. More...
 
bool m_gyro_event_handler (const event_t *p_event)
 Event bus event handler. More...
 
ret_code_t m_gyro_init (bool force_calibration)
 Function for initializing the gyro module. More...
 

Detailed Description

Functions for configuring the gyro module.

Function Documentation

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_eventPointer 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_calibrationIf 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.

Documentation feedback | Developer Zone | Subscribe | Updated