| ICM-4268x-V Driver API 1.0.1 ICM-4268x-V Driver API

Classes | Macros | Enumerations
Icm426xxDefs.h File Reference

File exposing the device register map. More...

`#include <stdint.h>`
Include dependency graph for Icm426xxDefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
union | fifo_header_t
| Describe the content of the FIFO header. More...

## Macros
#define | ICM_FAMILY_BPLUS
| ICM family definition Possible values are ICM_FAMILY_CPLUS or ICM_FAMILY_BPLUS.
#define | BIT_APEX_DATA4_TAP_NUM_POS 3
| TAP status flags: non-zero value - tap detected bit0 - positive or negative edge bit1 and 2 - axis detected : 0-X ; 1-Y ; 2-Z bit3 and 4 - tap type : 1-single ; 2 -double.

## Enumerations
enum | ICM426XX_GYRO_CONFIG0_FS_SEL_t { ICM426XX_GYRO_CONFIG0_FS_SEL_16dps = (7 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_31dps = (6 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_62dps = (5 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_125dps = (4 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_250dps = (3 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_500dps = (2 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_1000dps = (1 << BIT_GYRO_CONFIG0_FS_SEL_POS) , ICM426XX_GYRO_CONFIG0_FS_SEL_2000dps = (0 << BIT_GYRO_CONFIG0_FS_SEL_POS) }
| Gyroscope FSR selection. More...
enum | ICM426XX_GYRO_CONFIG0_ODR_t { ICM426XX_GYRO_CONFIG0_ODR_500_HZ = 0x0F , ICM426XX_GYRO_CONFIG0_ODR_12_5_HZ = 0x0B , ICM426XX_GYRO_CONFIG0_ODR_25_HZ = 0x0A , ICM426XX_GYRO_CONFIG0_ODR_50_HZ = 0x09 , ICM426XX_GYRO_CONFIG0_ODR_100_HZ = 0x08 , ICM426XX_GYRO_CONFIG0_ODR_200_HZ = 0x07 , ICM426XX_GYRO_CONFIG0_ODR_1_KHZ = 0x06 , ICM426XX_GYRO_CONFIG0_ODR_2_KHZ = 0x05 , ICM426XX_GYRO_CONFIG0_ODR_4_KHZ = 0x04 , ICM426XX_GYRO_CONFIG0_ODR_8_KHZ = 0x03 , ICM426XX_GYRO_CONFIG0_ODR_16_KHZ = 0x02 , ICM426XX_GYRO_CONFIG0_ODR_32_KHZ = 0x01 }
| Gyroscope ODR selection. More...
enum | ICM426XX_ACCEL_CONFIG0_FS_SEL_t { }
| Accelerometer FSR selection. More...
enum | ICM426XX_ACCEL_CONFIG0_ODR_t { ICM426XX_ACCEL_CONFIG0_ODR_500_HZ = 0xF , ICM426XX_ACCEL_CONFIG0_ODR_1_5625_HZ = 0xE , ICM426XX_ACCEL_CONFIG0_ODR_3_125_HZ = 0xD , ICM426XX_ACCEL_CONFIG0_ODR_6_25_HZ = 0xC , ICM426XX_ACCEL_CONFIG0_ODR_12_5_HZ = 0xB , ICM426XX_ACCEL_CONFIG0_ODR_25_HZ = 0xA , ICM426XX_ACCEL_CONFIG0_ODR_50_HZ = 0x9 , ICM426XX_ACCEL_CONFIG0_ODR_100_HZ = 0x8 , ICM426XX_ACCEL_CONFIG0_ODR_200_HZ = 0x7 , ICM426XX_ACCEL_CONFIG0_ODR_1_KHZ = 0x6 , ICM426XX_ACCEL_CONFIG0_ODR_2_KHZ = 0x5 , ICM426XX_ACCEL_CONFIG0_ODR_4_KHZ = 0x4 , ICM426XX_ACCEL_CONFIG0_ODR_8_KHZ = 0x3 , ICM426XX_ACCEL_CONFIG0_ODR_16_KHZ = 0x2 , ICM426XX_ACCEL_CONFIG0_ODR_32_KHZ = 0x1 }
| Accelerometer ODR selection. More...
enum | ICM426XX_APEX_CONFIG0_DMP_ODR_t { ICM426XX_APEX_CONFIG0_DMP_ODR_25Hz = (0x0 << BIT_APEX_CONFIG0_DMP_ODR_POS) , ICM426XX_APEX_CONFIG0_DMP_ODR_50Hz = (0x2 << BIT_APEX_CONFIG0_DMP_ODR_POS) , ICM426XX_APEX_CONFIG0_DMP_ODR_100Hz = (0x3 << BIT_APEX_CONFIG0_DMP_ODR_POS) , ICM426XX_APEX_CONFIG0_DMP_ODR_500Hz = (0x1 << BIT_APEX_CONFIG0_DMP_ODR_POS) }
| DMP ODR selection. More...
enum | ICM426XX_OIS1_CONFIG1_DEC_t { ICM426XX_OIS1_CONFIG1_DEC_1 = (0x0 << BIT_OIS1_CONFIG1_DEC_POS) , ICM426XX_OIS1_CONFIG1_DEC_2 = (0x1 << BIT_OIS1_CONFIG1_DEC_POS) , ICM426XX_OIS1_CONFIG1_DEC_4 = (0x2 << BIT_OIS1_CONFIG1_DEC_POS) , ICM426XX_OIS1_CONFIG1_DEC_8 = (0x3 << BIT_OIS1_CONFIG1_DEC_POS) , ICM426XX_OIS1_CONFIG1_DEC_16 = (0x4 << BIT_OIS1_CONFIG1_DEC_POS) , ICM426XX_OIS1_CONFIG1_DEC_32 = (0x5 << BIT_OIS1_CONFIG1_DEC_POS) }
| OIS1 rate selection (base clock fixed by OTP divided by decimator value) More...
enum | ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_t { ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_16dps = (0x7 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_31dps = (0x6 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_62dps = (0x5 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_125dps = (0x4 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_250dps = (0x3 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_500dps = (0x2 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_1000dps = (0x1 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_2000dps = (0x0 << BIT_OIS1_CONFIG2_GYRO_FS_SEL_POS) }
| OIS1 gyroscope FSR selection. More...
enum | ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_t { }
| OIS1 accelerometer FSR selection. More...
enum | ICM426XX_OIS2_CONFIG1_DEC_t { ICM426XX_OIS2_CONFIG1_DEC_1 = (0x0 << BIT_OIS2_CONFIG1_DEC_POS) , ICM426XX_OIS2_CONFIG1_DEC_2 = (0x1 << BIT_OIS2_CONFIG1_DEC_POS) , ICM426XX_OIS2_CONFIG1_DEC_4 = (0x2 << BIT_OIS2_CONFIG1_DEC_POS) , ICM426XX_OIS2_CONFIG1_DEC_8 = (0x3 << BIT_OIS2_CONFIG1_DEC_POS) , ICM426XX_OIS2_CONFIG1_DEC_16 = (0x4 << BIT_OIS2_CONFIG1_DEC_POS) , ICM426XX_OIS2_CONFIG1_DEC_32 = (0x5 << BIT_OIS2_CONFIG1_DEC_POS) }
| OIS2 rate selection (base clock fixed by OTP divided by decimator value) More...
enum | ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_t { ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_16dps = (0x7 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_31dps = (0x6 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_62dps = (0x5 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_125dps = (0x4 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_250dps = (0x3 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_500dps = (0x2 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_1000dps = (0x1 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) , ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_2000dps = (0x0 << BIT_OIS2_CONFIG2_GYRO_FS_SEL_POS) }
| OIS2 gyroscope FSR selection. More...
enum | ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_t { }
| OIS2 accelerometer FSR selection. More...

## Detailed Description

File exposing the device register map.

## Enumeration Type Documentation

## ◆ ICM426XX_ACCEL_CONFIG0_FS_SEL_t

enum ICM426XX_ACCEL_CONFIG0_FS_SEL_t

Accelerometer FSR selection.

Enumerator
ICM426XX_ACCEL_CONFIG0_FS_SEL_2g | 2g
ICM426XX_ACCEL_CONFIG0_FS_SEL_4g | 4g
ICM426XX_ACCEL_CONFIG0_FS_SEL_8g | 8g
ICM426XX_ACCEL_CONFIG0_FS_SEL_16g | 16g

## ◆ ICM426XX_ACCEL_CONFIG0_ODR_t

enum ICM426XX_ACCEL_CONFIG0_ODR_t

Accelerometer ODR selection.

Enumerator
ICM426XX_ACCEL_CONFIG0_ODR_500_HZ | 500 Hz (2 ms)
ICM426XX_ACCEL_CONFIG0_ODR_1_5625_HZ | 1.5625 Hz (640 ms)
ICM426XX_ACCEL_CONFIG0_ODR_3_125_HZ | 3.125 Hz (320 ms)
ICM426XX_ACCEL_CONFIG0_ODR_6_25_HZ | 6.25 Hz (160 ms)
ICM426XX_ACCEL_CONFIG0_ODR_12_5_HZ | 12.5 Hz (80 ms)
ICM426XX_ACCEL_CONFIG0_ODR_25_HZ | 25 Hz (40 ms)
ICM426XX_ACCEL_CONFIG0_ODR_50_HZ | 50 Hz (20 ms)
ICM426XX_ACCEL_CONFIG0_ODR_100_HZ | 100 Hz (10 ms)
ICM426XX_ACCEL_CONFIG0_ODR_200_HZ | 200 Hz (5 ms)
ICM426XX_ACCEL_CONFIG0_ODR_1_KHZ | 1 KHz (1 ms)
ICM426XX_ACCEL_CONFIG0_ODR_2_KHZ | 2 KHz (500 us)
ICM426XX_ACCEL_CONFIG0_ODR_4_KHZ | 4 KHz (250 us)
ICM426XX_ACCEL_CONFIG0_ODR_8_KHZ | 8 KHz (125 us)
ICM426XX_ACCEL_CONFIG0_ODR_16_KHZ | 16 KHz (62.5 us)
ICM426XX_ACCEL_CONFIG0_ODR_32_KHZ | 32 KHz (31.25 us)

## ◆ ICM426XX_APEX_CONFIG0_DMP_ODR_t

enum ICM426XX_APEX_CONFIG0_DMP_ODR_t

DMP ODR selection.

Enumerator
ICM426XX_APEX_CONFIG0_DMP_ODR_25Hz | 25Hz (40ms)
ICM426XX_APEX_CONFIG0_DMP_ODR_50Hz | 50Hz (20ms)
ICM426XX_APEX_CONFIG0_DMP_ODR_100Hz | 100Hz (10ms)
ICM426XX_APEX_CONFIG0_DMP_ODR_500Hz | 500Hz (40ms)

## ◆ ICM426XX_GYRO_CONFIG0_FS_SEL_t

enum ICM426XX_GYRO_CONFIG0_FS_SEL_t

Gyroscope FSR selection.

Enumerator
ICM426XX_GYRO_CONFIG0_FS_SEL_16dps | 16dps
ICM426XX_GYRO_CONFIG0_FS_SEL_31dps | 31dps
ICM426XX_GYRO_CONFIG0_FS_SEL_62dps | 62dps
ICM426XX_GYRO_CONFIG0_FS_SEL_125dps | 125dps
ICM426XX_GYRO_CONFIG0_FS_SEL_250dps | 250dps
ICM426XX_GYRO_CONFIG0_FS_SEL_500dps | 500dps
ICM426XX_GYRO_CONFIG0_FS_SEL_1000dps | 1000dps
ICM426XX_GYRO_CONFIG0_FS_SEL_2000dps | 2000dps

## ◆ ICM426XX_GYRO_CONFIG0_ODR_t

enum ICM426XX_GYRO_CONFIG0_ODR_t

Gyroscope ODR selection.

Enumerator
ICM426XX_GYRO_CONFIG0_ODR_500_HZ | 500 Hz (2 ms)
ICM426XX_GYRO_CONFIG0_ODR_12_5_HZ | 12.5 Hz (80 ms)
ICM426XX_GYRO_CONFIG0_ODR_25_HZ | 25 Hz (40 ms)
ICM426XX_GYRO_CONFIG0_ODR_50_HZ | 50 Hz (20 ms)
ICM426XX_GYRO_CONFIG0_ODR_100_HZ | 100 Hz (10 ms)
ICM426XX_GYRO_CONFIG0_ODR_200_HZ | 200 Hz (5 ms)
ICM426XX_GYRO_CONFIG0_ODR_1_KHZ | 1 KHz (1 ms)
ICM426XX_GYRO_CONFIG0_ODR_2_KHZ | 2 KHz (500 us)
ICM426XX_GYRO_CONFIG0_ODR_4_KHZ | 4 KHz (250 us)
ICM426XX_GYRO_CONFIG0_ODR_8_KHZ | 8 KHz (125 us)
ICM426XX_GYRO_CONFIG0_ODR_16_KHZ | 16 KHz (62.5 us)
ICM426XX_GYRO_CONFIG0_ODR_32_KHZ | 32 KHz (31.25 us)

## ◆ ICM426XX_OIS1_CONFIG1_DEC_t

enum ICM426XX_OIS1_CONFIG1_DEC_t

OIS1 rate selection (base clock fixed by OTP divided by decimator value)

Enumerator
ICM426XX_OIS1_CONFIG1_DEC_1 | OTP_OIS_clock / 1.
ICM426XX_OIS1_CONFIG1_DEC_2 | OTP_OIS_clock / 2.
ICM426XX_OIS1_CONFIG1_DEC_4 | OTP_OIS_clock / 4.
ICM426XX_OIS1_CONFIG1_DEC_8 | OTP_OIS_clock / 8.
ICM426XX_OIS1_CONFIG1_DEC_16 | OTP_OIS_clock / 16.
ICM426XX_OIS1_CONFIG1_DEC_32 | OTP_OIS_clock / 32.

## ◆ ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_t

enum ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_t

OIS1 accelerometer FSR selection.

Enumerator
ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_2g | 2g
ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_4g | 4g
ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_8g | 8g
ICM426XX_OIS1_CONFIG2_ACCEL_FS_SEL_16g | 16g

## ◆ ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_t

enum ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_t

OIS1 gyroscope FSR selection.

Enumerator
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_16dps | 15.625 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_31dps | 31.25 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_62dps | 62.5 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_125dps | 125 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_250dps | 250 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_500dps | 500 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_1000dps | 1000 dps
ICM426XX_OIS1_CONFIG2_GYRO_FS_SEL_2000dps | 2000 dps

## ◆ ICM426XX_OIS2_CONFIG1_DEC_t

enum ICM426XX_OIS2_CONFIG1_DEC_t

OIS2 rate selection (base clock fixed by OTP divided by decimator value)

Enumerator
ICM426XX_OIS2_CONFIG1_DEC_1 | OTP_OIS_clock / 1.
ICM426XX_OIS2_CONFIG1_DEC_2 | OTP_OIS_clock / 2.
ICM426XX_OIS2_CONFIG1_DEC_4 | OTP_OIS_clock / 4.
ICM426XX_OIS2_CONFIG1_DEC_8 | OTP_OIS_clock / 8.
ICM426XX_OIS2_CONFIG1_DEC_16 | OTP_OIS_clock / 16.
ICM426XX_OIS2_CONFIG1_DEC_32 | OTP_OIS_clock / 32.

## ◆ ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_t

enum ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_t

OIS2 accelerometer FSR selection.

Enumerator
ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_2g | 2g
ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_4g | 4g
ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_8g | 8g
ICM426XX_OIS2_CONFIG2_ACCEL_FS_SEL_16g | 16g

## ◆ ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_t

enum ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_t

OIS2 gyroscope FSR selection.

Enumerator
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_16dps | 15.625 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_31dps | 31.25 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_62dps | 62.5 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_125dps | 125 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_250dps | 250 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_500dps | 500 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_1000dps | 1000 dps
ICM426XX_OIS2_CONFIG2_GYRO_FS_SEL_2000dps | 2000 dps