Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
imu.h File Reference
#include "../../common.h"

Go to the source code of this file.

Data Structures

struct  imu_config_s
 IMU sensor configurations. More...
 
struct  imu_data_s
 

Macros

#define IMU_ACCEL_SCALE_2G   (2)
 
#define IMU_ACCEL_SCALE_4G   (4)
 
#define IMU_ACCEL_SCALE_8G   (8)
 
#define IMU_ACCEL_SCALE_16G   (16)
 
#define IMU_GYRO_SCALE_125DPS   (125)
 
#define IMU_GYRO_SCALE_250DPS   (250)
 
#define IMU_GYRO_SCALE_500DPS   (500)
 
#define IMU_GYRO_SCALE_1000DPS   (1000)
 
#define IMU_GYRO_SCALE_2000DPS   (2000)
 
#define IMU_NUM_AXES   (3U)
 
#define ACCEL_AXIS_NUM   (IMU_NUM_AXES)
 
#define GYRO_AXIS_NUM   (IMU_NUM_AXES)
 

Typedefs

typedef struct imu_config_s imu_config_t
 IMU sensor configurations.
 
typedef struct imu_data_s imu_data_t
 

Functions

status_t imu_init (const imu_config_t *p_config, generic_cb_t data_ready_cb)
 Initialize and start generation of IMU sensor data.
 
status_t imu_read (imu_data_t *const p_data)
 Read IMU sensor data.