Gyro driver API. More...
Typedefs | |
typedef void(* | drv_gyro_read_handler_t )(ret_code_t status, t_struct_AIR_MOTION_ProcessDeltaSamples *p_samples) |
Gyroscope read data handler. | |
typedef void(* | drv_gyro_ready_handler_t )(void) |
Gyroscope enabled handler. | |
Functions | |
ret_code_t | drv_gyro_disable (void) |
Turns the gyroscope off. More... | |
ret_code_t | drv_gyro_enable (void) |
Turns the gyroscope on. More... | |
ret_code_t | drv_gyro_init (drv_gyro_ready_handler_t ready_handler, drv_gyro_read_handler_t read_handler) |
Initializes gyroscope chip and driver. More... | |
ret_code_t | drv_gyro_schedule_read (t_struct_AIR_MOTION_ProcessDeltaSamples *p_samples) |
Schedules a gyroscope read. More... | |
Gyro driver API.
ret_code_t drv_gyro_disable | ( | void | ) |
Turns the gyroscope off.
ret_code_t drv_gyro_enable | ( | void | ) |
Turns the gyroscope on.
ret_code_t drv_gyro_init | ( | drv_gyro_ready_handler_t | ready_handler, |
drv_gyro_read_handler_t | read_handler | ||
) |
Initializes gyroscope chip and driver.
[in] | ready_handler | Handler triggered when driver is ready for operation. |
[in] | read_handler | Handler for data read from the gyroscope. |
ret_code_t drv_gyro_schedule_read | ( | t_struct_AIR_MOTION_ProcessDeltaSamples * | p_samples | ) |
Schedules a gyroscope read.
[out] | p_samples | Pointer to the structure that will be filled up by data. |