c6dofimu16 2.1.0.0
6DOF IMU 16 Registers Settings

Settings for registers of 6DOF IMU 16 Click driver. More...

Macros

#define C6DOFIMU16_GYRO_MODE_OFF   0x00
 6DOF IMU 16 description setting.
 
#define C6DOFIMU16_GYRO_MODE_STANDBY   0x04
 
#define C6DOFIMU16_GYRO_MODE_LOW_POWER   0x08
 
#define C6DOFIMU16_GYRO_MODE_LOW_NOISE   0x0C
 
#define C6DOFIMU16_ACCEL_MODE_OFF   0x00
 
#define C6DOFIMU16_ACCEL_MODE_STANDBY   0x01
 
#define C6DOFIMU16_ACCEL_MODE_LOW_POWER   0x02
 
#define C6DOFIMU16_ACCEL_MODE_LOW_NOISE   0x03
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_MASK   0xF0
 6DOF IMU 16 gyro full-scale setting.
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_2000DPS   0x10
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_1000DPS   0x20
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_500DPS   0x30
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_250DPS   0x40
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_125DPS   0x50
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_62_5DPS   0x60
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_31_25DPS   0x70
 
#define C6DOFIMU16_GYRO_UI_FS_SEL_15_625DPS   0x80
 
#define C6DOFIMU16_ACCEL_UI_FS_SEL_MASK   0x70
 6DOF IMU 16 accel full-scale setting.
 
#define C6DOFIMU16_ACCEL_UI_FS_SEL_16g   0x10
 
#define C6DOFIMU16_ACCEL_UI_FS_SEL_8g   0x20
 
#define C6DOFIMU16_ACCEL_UI_FS_SEL_4g   0x30
 
#define C6DOFIMU16_ACCEL_UI_FS_SEL_2g   0x40
 
#define C6DOFIMU16_ACCEL_ODR_6_4_KHZ   0x03
 6DOF IMU 16 accel ODR setting.
 
#define C6DOFIMU16_ACCEL_ODR_3_2_KHZ   0x04
 
#define C6DOFIMU16_ACCEL_ODR_1_6_KHZ   0x05
 
#define C6DOFIMU16_ACCEL_ODR_800_HZ   0x06
 
#define C6DOFIMU16_ACCEL_ODR_400_HZ   0x07
 
#define C6DOFIMU16_ACCEL_ODR_200_HZ   0x08
 
#define C6DOFIMU16_ACCEL_ODR_100_HZ   0x09
 
#define C6DOFIMU16_ACCEL_ODR_50_HZ   0x0A
 
#define C6DOFIMU16_ACCEL_ODR_25_HZ   0x0B
 
#define C6DOFIMU16_ACCEL_ODR_12_5_HZ   0x0C
 
#define C6DOFIMU16_ACCEL_ODR_6_25_HZ   0x0D
 
#define C6DOFIMU16_ACCEL_ODR_3_125_HZ   0x0E
 
#define C6DOFIMU16_ACCEL_ODR_1_5625_HZ   0x0F
 
#define C6DOFIMU16_GYRO_ODR_6_4_KHZ   0x03
 6DOF IMU 16 gyro ODR setting.
 
#define C6DOFIMU16_GYRO_ODR_3_2_KHZ   0x04
 
#define C6DOFIMU16_GYRO_ODR_1_6_KHZ   0x05
 
#define C6DOFIMU16_GYRO_ODR_800_HZ   0x06
 
#define C6DOFIMU16_GYRO_ODR_400_HZ   0x07
 
#define C6DOFIMU16_GYRO_ODR_200_HZ   0x08
 
#define C6DOFIMU16_GYRO_ODR_100_HZ   0x09
 
#define C6DOFIMU16_GYRO_ODR_50_HZ   0x0A
 
#define C6DOFIMU16_GYRO_ODR_25_HZ   0x0B
 
#define C6DOFIMU16_GYRO_ODR_12_5_HZ   0x0C
 
#define C6DOFIMU16_GYRO_ODR_6_25_HZ   0x0D
 
#define C6DOFIMU16_GYRO_ODR_3_125_HZ   0x0E
 
#define C6DOFIMU16_GYRO_ODR_1_5625_HZ   0x0F
 
#define C6DOFIMU16_SOFTWARE_RESET   0x02
 6DOF IMU 16 software reset setting.
 
#define C6DOFIMU16_DEVICE_ID   0xE5
 6DOF IMU 16 device ID setting.
 
#define C6DOFIMU16_ACCEL_2G_CONV_MUL   16384u
 6DOF IMU 16 data conversion factor setting.
 
#define C6DOFIMU16_ACCEL_4G_CONV_MUL   8192u
 
#define C6DOFIMU16_ACCEL_8G_CONV_MUL   4096u
 
#define C6DOFIMU16_ACCEL_16G_CONV_MUL   2048u
 
#define C6DOFIMU16_GYRO_2000DPS_CONV_MUL   16.4f
 
#define C6DOFIMU16_GYRO_1000DPS_CONV_MUL   32.8f
 
#define C6DOFIMU16_GYRO_500DPS_CONV_MUL   65.5f
 
#define C6DOFIMU16_GYRO_250DPS_CONV_MUL   131.0f
 
#define C6DOFIMU16_GYRO_125DPS_CONV_MUL   262.0f
 
#define C6DOFIMU16_GYRO_62_5DPS_CONV_MUL   524.3f
 
#define C6DOFIMU16_GYRO_31_25DPS_CONV_MUL   1048.6f
 
#define C6DOFIMU16_GYRO_15_625DPS_CONV_MUL   2097.2f
 
#define C6DOFIMU16_DEVICE_ADDRESS_0   0x68
 6DOF IMU 16 device address setting.
 
#define C6DOFIMU16_DEVICE_ADDRESS_1   0x69
 
#define C6DOFIMU16_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define C6DOFIMU16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of 6DOF IMU 16 Click driver.

Macro Definition Documentation

◆ C6DOFIMU16_ACCEL_16G_CONV_MUL

#define C6DOFIMU16_ACCEL_16G_CONV_MUL   2048u

◆ C6DOFIMU16_ACCEL_2G_CONV_MUL

#define C6DOFIMU16_ACCEL_2G_CONV_MUL   16384u

6DOF IMU 16 data conversion factor setting.

The specified value of data conversion factor of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_ACCEL_4G_CONV_MUL

#define C6DOFIMU16_ACCEL_4G_CONV_MUL   8192u

◆ C6DOFIMU16_ACCEL_8G_CONV_MUL

#define C6DOFIMU16_ACCEL_8G_CONV_MUL   4096u

◆ C6DOFIMU16_ACCEL_MODE_LOW_NOISE

#define C6DOFIMU16_ACCEL_MODE_LOW_NOISE   0x03

◆ C6DOFIMU16_ACCEL_MODE_LOW_POWER

#define C6DOFIMU16_ACCEL_MODE_LOW_POWER   0x02

◆ C6DOFIMU16_ACCEL_MODE_OFF

#define C6DOFIMU16_ACCEL_MODE_OFF   0x00

◆ C6DOFIMU16_ACCEL_MODE_STANDBY

#define C6DOFIMU16_ACCEL_MODE_STANDBY   0x01

◆ C6DOFIMU16_ACCEL_ODR_100_HZ

#define C6DOFIMU16_ACCEL_ODR_100_HZ   0x09

◆ C6DOFIMU16_ACCEL_ODR_12_5_HZ

#define C6DOFIMU16_ACCEL_ODR_12_5_HZ   0x0C

◆ C6DOFIMU16_ACCEL_ODR_1_5625_HZ

#define C6DOFIMU16_ACCEL_ODR_1_5625_HZ   0x0F

◆ C6DOFIMU16_ACCEL_ODR_1_6_KHZ

#define C6DOFIMU16_ACCEL_ODR_1_6_KHZ   0x05

◆ C6DOFIMU16_ACCEL_ODR_200_HZ

#define C6DOFIMU16_ACCEL_ODR_200_HZ   0x08

◆ C6DOFIMU16_ACCEL_ODR_25_HZ

#define C6DOFIMU16_ACCEL_ODR_25_HZ   0x0B

◆ C6DOFIMU16_ACCEL_ODR_3_125_HZ

#define C6DOFIMU16_ACCEL_ODR_3_125_HZ   0x0E

◆ C6DOFIMU16_ACCEL_ODR_3_2_KHZ

#define C6DOFIMU16_ACCEL_ODR_3_2_KHZ   0x04

◆ C6DOFIMU16_ACCEL_ODR_400_HZ

#define C6DOFIMU16_ACCEL_ODR_400_HZ   0x07

◆ C6DOFIMU16_ACCEL_ODR_50_HZ

#define C6DOFIMU16_ACCEL_ODR_50_HZ   0x0A

◆ C6DOFIMU16_ACCEL_ODR_6_25_HZ

#define C6DOFIMU16_ACCEL_ODR_6_25_HZ   0x0D

◆ C6DOFIMU16_ACCEL_ODR_6_4_KHZ

#define C6DOFIMU16_ACCEL_ODR_6_4_KHZ   0x03

6DOF IMU 16 accel ODR setting.

Specified setting for accel ODR of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_ACCEL_ODR_800_HZ

#define C6DOFIMU16_ACCEL_ODR_800_HZ   0x06

◆ C6DOFIMU16_ACCEL_UI_FS_SEL_16g

#define C6DOFIMU16_ACCEL_UI_FS_SEL_16g   0x10

◆ C6DOFIMU16_ACCEL_UI_FS_SEL_2g

#define C6DOFIMU16_ACCEL_UI_FS_SEL_2g   0x40

◆ C6DOFIMU16_ACCEL_UI_FS_SEL_4g

#define C6DOFIMU16_ACCEL_UI_FS_SEL_4g   0x30

◆ C6DOFIMU16_ACCEL_UI_FS_SEL_8g

#define C6DOFIMU16_ACCEL_UI_FS_SEL_8g   0x20

◆ C6DOFIMU16_ACCEL_UI_FS_SEL_MASK

#define C6DOFIMU16_ACCEL_UI_FS_SEL_MASK   0x70

6DOF IMU 16 accel full-scale setting.

Specified setting for accel full-scale of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_DEVICE_ADDRESS_0

#define C6DOFIMU16_DEVICE_ADDRESS_0   0x68

6DOF IMU 16 device address setting.

Specified setting for device slave address selection of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_DEVICE_ADDRESS_1

#define C6DOFIMU16_DEVICE_ADDRESS_1   0x69

◆ C6DOFIMU16_DEVICE_ID

#define C6DOFIMU16_DEVICE_ID   0xE5

6DOF IMU 16 device ID setting.

Specified setting for device ID of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_GYRO_1000DPS_CONV_MUL

#define C6DOFIMU16_GYRO_1000DPS_CONV_MUL   32.8f

◆ C6DOFIMU16_GYRO_125DPS_CONV_MUL

#define C6DOFIMU16_GYRO_125DPS_CONV_MUL   262.0f

◆ C6DOFIMU16_GYRO_15_625DPS_CONV_MUL

#define C6DOFIMU16_GYRO_15_625DPS_CONV_MUL   2097.2f

◆ C6DOFIMU16_GYRO_2000DPS_CONV_MUL

#define C6DOFIMU16_GYRO_2000DPS_CONV_MUL   16.4f

◆ C6DOFIMU16_GYRO_250DPS_CONV_MUL

#define C6DOFIMU16_GYRO_250DPS_CONV_MUL   131.0f

◆ C6DOFIMU16_GYRO_31_25DPS_CONV_MUL

#define C6DOFIMU16_GYRO_31_25DPS_CONV_MUL   1048.6f

◆ C6DOFIMU16_GYRO_500DPS_CONV_MUL

#define C6DOFIMU16_GYRO_500DPS_CONV_MUL   65.5f

◆ C6DOFIMU16_GYRO_62_5DPS_CONV_MUL

#define C6DOFIMU16_GYRO_62_5DPS_CONV_MUL   524.3f

◆ C6DOFIMU16_GYRO_MODE_LOW_NOISE

#define C6DOFIMU16_GYRO_MODE_LOW_NOISE   0x0C

◆ C6DOFIMU16_GYRO_MODE_LOW_POWER

#define C6DOFIMU16_GYRO_MODE_LOW_POWER   0x08

◆ C6DOFIMU16_GYRO_MODE_OFF

#define C6DOFIMU16_GYRO_MODE_OFF   0x00

6DOF IMU 16 description setting.

Specified setting for description of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_GYRO_MODE_STANDBY

#define C6DOFIMU16_GYRO_MODE_STANDBY   0x04

◆ C6DOFIMU16_GYRO_ODR_100_HZ

#define C6DOFIMU16_GYRO_ODR_100_HZ   0x09

◆ C6DOFIMU16_GYRO_ODR_12_5_HZ

#define C6DOFIMU16_GYRO_ODR_12_5_HZ   0x0C

◆ C6DOFIMU16_GYRO_ODR_1_5625_HZ

#define C6DOFIMU16_GYRO_ODR_1_5625_HZ   0x0F

◆ C6DOFIMU16_GYRO_ODR_1_6_KHZ

#define C6DOFIMU16_GYRO_ODR_1_6_KHZ   0x05

◆ C6DOFIMU16_GYRO_ODR_200_HZ

#define C6DOFIMU16_GYRO_ODR_200_HZ   0x08

◆ C6DOFIMU16_GYRO_ODR_25_HZ

#define C6DOFIMU16_GYRO_ODR_25_HZ   0x0B

◆ C6DOFIMU16_GYRO_ODR_3_125_HZ

#define C6DOFIMU16_GYRO_ODR_3_125_HZ   0x0E

◆ C6DOFIMU16_GYRO_ODR_3_2_KHZ

#define C6DOFIMU16_GYRO_ODR_3_2_KHZ   0x04

◆ C6DOFIMU16_GYRO_ODR_400_HZ

#define C6DOFIMU16_GYRO_ODR_400_HZ   0x07

◆ C6DOFIMU16_GYRO_ODR_50_HZ

#define C6DOFIMU16_GYRO_ODR_50_HZ   0x0A

◆ C6DOFIMU16_GYRO_ODR_6_25_HZ

#define C6DOFIMU16_GYRO_ODR_6_25_HZ   0x0D

◆ C6DOFIMU16_GYRO_ODR_6_4_KHZ

#define C6DOFIMU16_GYRO_ODR_6_4_KHZ   0x03

6DOF IMU 16 gyro ODR setting.

Specified setting for gyro ODR of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_GYRO_ODR_800_HZ

#define C6DOFIMU16_GYRO_ODR_800_HZ   0x06

◆ C6DOFIMU16_GYRO_UI_FS_SEL_1000DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_1000DPS   0x20

◆ C6DOFIMU16_GYRO_UI_FS_SEL_125DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_125DPS   0x50

◆ C6DOFIMU16_GYRO_UI_FS_SEL_15_625DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_15_625DPS   0x80

◆ C6DOFIMU16_GYRO_UI_FS_SEL_2000DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_2000DPS   0x10

◆ C6DOFIMU16_GYRO_UI_FS_SEL_250DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_250DPS   0x40

◆ C6DOFIMU16_GYRO_UI_FS_SEL_31_25DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_31_25DPS   0x70

◆ C6DOFIMU16_GYRO_UI_FS_SEL_500DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_500DPS   0x30

◆ C6DOFIMU16_GYRO_UI_FS_SEL_62_5DPS

#define C6DOFIMU16_GYRO_UI_FS_SEL_62_5DPS   0x60

◆ C6DOFIMU16_GYRO_UI_FS_SEL_MASK

#define C6DOFIMU16_GYRO_UI_FS_SEL_MASK   0xF0

6DOF IMU 16 gyro full-scale setting.

Specified setting for gyro full-scale of 6DOF IMU 16 Click driver.

◆ C6DOFIMU16_SET_DATA_SAMPLE_EDGE

#define C6DOFIMU16_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with c6dofimu16_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ C6DOFIMU16_SET_DATA_SAMPLE_MIDDLE

#define C6DOFIMU16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ C6DOFIMU16_SOFTWARE_RESET

#define C6DOFIMU16_SOFTWARE_RESET   0x02

6DOF IMU 16 software reset setting.

Specified setting for software reset of 6DOF IMU 16 Click driver.