smartdof5  2.1.0.0
Macros
Smart DOF 5 Registers Settings

Settings for registers of Smart DOF 5 Click driver. More...

Macros

#define SMARTDOF5_FUNC_CFG_ACCESS_MASK   0xC0
 Smart DOF 5 FUNC_CFG_ACCESS register setting. More...
 
#define SMARTDOF5_INT1_CTRL_DEN_DRDY   0x80
 Smart DOF 5 WHO_AM_I register setting. More...
 
#define SMARTDOF5_INT1_CTRL_CNT_BDR   0x40
 
#define SMARTDOF5_INT1_CTRL_FIFO_FULL   0x20
 
#define SMARTDOF5_INT1_CTRL_FIFO_OVR   0x10
 
#define SMARTDOF5_INT1_CTRL_FIFO_TH   0x08
 
#define SMARTDOF5_INT1_CTRL_BOOT   0x04
 
#define SMARTDOF5_INT1_CTRL_DRDY_G   0x02
 
#define SMARTDOF5_INT1_CTRL_DRDY_XL   0x01
 
#define SMARTDOF5_WHO_AM_I   0x6B
 Smart DOF 5 WHO_AM_I register setting. More...
 
#define SMARTDOF5_CTRL1_XL_ODR_MASK   0xF0
 Smart DOF 5 CTRL1_XL register setting. More...
 
#define SMARTDOF5_CTRL1_XL_FS_MASK   0x0C
 
#define SMARTDOF5_CTRL1_XL_LPF2_EN_MASK   0x02
 
#define SMARTDOF5_CTRL2_G_ODR_MASK   0xF0
 Smart DOF 5 CTRL2_G register setting. More...
 
#define SMARTDOF5_CTRL2_G_FS_MASK   0x0C
 
#define SMARTDOF5_CTRL2_G_FS_125_MASK   0x02
 
#define SMARTDOF5_CTRL2_G_FS_4000_MASK   0x01
 
#define SMARTDOF5_CTRL3_C_BOOT   0x80
 Smart DOF 5 CTRL3_C register setting. More...
 
#define SMARTDOF5_CTRL3_C_BDU   0x40
 
#define SMARTDOF5_CTRL3_C_H_LACTIVE   0x20
 
#define SMARTDOF5_CTRL3_C_PP_OD   0x10
 
#define SMARTDOF5_CTRL3_C_SIM   0x08
 
#define SMARTDOF5_CTRL3_C_IF_INC   0x04
 
#define SMARTDOF5_CTRL3_C_SW_RESET   0x01
 
#define SMARTDOF5_CTRL9_XL_DEN_X   0x80
 Smart DOF 5 CTRL9_XL register setting. More...
 
#define SMARTDOF5_CTRL9_XL_DEN_Y   0x40
 
#define SMARTDOF5_CTRL9_XL_DEN_Z   0x20
 
#define SMARTDOF5_CTRL9_XL_DEN_XL_G   0x10
 
#define SMARTDOF5_CTRL9_XL_DEN_XL_EN   0x08
 
#define SMARTDOF5_CTRL9_XL_DEN_LH   0x04
 
#define SMARTDOF5_CTRL9_XL_I3C_DISABLE   0x02
 
#define SMARTDOF5_STATUS_TDA   0x04
 Smart DOF 5 STATUS register setting. More...
 
#define SMARTDOF5_STATUS_GDA   0x02
 
#define SMARTDOF5_STATUS_XLDA   0x01
 
#define SMARTDOF5_MEM_BANK_USER   0
 Smart DOF 5 memory bank setting. More...
 
#define SMARTDOF5_MEM_BANK_SENSOR_HUB   1
 
#define SMARTDOF5_MEM_BANK_EMBEDDED_FUNC   2
 
#define SMARTDOF5_ACCEL_ODR_OFF   0
 Smart DOF 5 accel output data rate setting. More...
 
#define SMARTDOF5_ACCEL_ODR_12_5_HZ   1
 
#define SMARTDOF5_ACCEL_ODR_26_HZ   2
 
#define SMARTDOF5_ACCEL_ODR_52_HZ   3
 
#define SMARTDOF5_ACCEL_ODR_104_HZ   4
 
#define SMARTDOF5_ACCEL_ODR_208_HZ   5
 
#define SMARTDOF5_ACCEL_ODR_417_HZ   6
 
#define SMARTDOF5_ACCEL_ODR_833_HZ   7
 
#define SMARTDOF5_ACCEL_ODR_1667_HZ   8
 
#define SMARTDOF5_ACCEL_ODR_3333_HZ   9
 
#define SMARTDOF5_ACCEL_ODR_6667_HZ   10
 
#define SMARTDOF5_ACCEL_ODR_1_6_HZ   11
 
#define SMARTDOF5_ACCEL_FS_2G   0
 Smart DOF 5 accel full scale setting. More...
 
#define SMARTDOF5_ACCEL_FS_16G   1
 
#define SMARTDOF5_ACCEL_FS_4G   2
 
#define SMARTDOF5_ACCEL_FS_8G   3
 
#define SMARTDOF5_GYRO_ODR_OFF   0
 Smart DOF 5 gyro output data rate setting. More...
 
#define SMARTDOF5_GYRO_ODR_12_5_HZ   1
 
#define SMARTDOF5_GYRO_ODR_26_HZ   2
 
#define SMARTDOF5_GYRO_ODR_52_HZ   3
 
#define SMARTDOF5_GYRO_ODR_104_HZ   4
 
#define SMARTDOF5_GYRO_ODR_208_HZ   5
 
#define SMARTDOF5_GYRO_ODR_417_HZ   6
 
#define SMARTDOF5_GYRO_ODR_833_HZ   7
 
#define SMARTDOF5_GYRO_ODR_1667_HZ   8
 
#define SMARTDOF5_GYRO_ODR_3333_HZ   9
 
#define SMARTDOF5_GYRO_ODR_6667_HZ   10
 
#define SMARTDOF5_GYRO_FS_250DPS   0
 Smart DOF 5 gyro full scale setting. More...
 
#define SMARTDOF5_GYRO_FS_500DPS   1
 
#define SMARTDOF5_GYRO_FS_1000DPS   2
 
#define SMARTDOF5_GYRO_FS_2000DPS   3
 
#define SMARTDOF5_GYRO_FS_4000DPS   4
 
#define SMARTDOF5_GYRO_FS_125DPS   5
 
#define SMARTDOF5_ACCEL_SENS_G_PER_LSB   0.000061
 Smart DOF 5 sensitivity setting. More...
 
#define SMARTDOF5_GYRO_SENS_DPS_PER_LSB   0.004375
 
#define SMARTDOF5_TEMP_SENS_LSB_PER_C   256.0
 
#define SMARTDOF5_TEMP_OFFSET   25.0
 
#define SMARTDOF5_DEVICE_ADDRESS_0   0x6A
 Smart DOF 5 device address setting. More...
 
#define SMARTDOF5_DEVICE_ADDRESS_1   0x6B
 
#define SMARTDOF5_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection. More...
 
#define SMARTDOF5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Smart DOF 5 Click driver.

Macro Definition Documentation

◆ SMARTDOF5_ACCEL_FS_16G

#define SMARTDOF5_ACCEL_FS_16G   1

◆ SMARTDOF5_ACCEL_FS_2G

#define SMARTDOF5_ACCEL_FS_2G   0

Smart DOF 5 accel full scale setting.

Specified setting for accel full scale of Smart DOF 5 Click driver.

◆ SMARTDOF5_ACCEL_FS_4G

#define SMARTDOF5_ACCEL_FS_4G   2

◆ SMARTDOF5_ACCEL_FS_8G

#define SMARTDOF5_ACCEL_FS_8G   3

◆ SMARTDOF5_ACCEL_ODR_104_HZ

#define SMARTDOF5_ACCEL_ODR_104_HZ   4

◆ SMARTDOF5_ACCEL_ODR_12_5_HZ

#define SMARTDOF5_ACCEL_ODR_12_5_HZ   1

◆ SMARTDOF5_ACCEL_ODR_1667_HZ

#define SMARTDOF5_ACCEL_ODR_1667_HZ   8

◆ SMARTDOF5_ACCEL_ODR_1_6_HZ

#define SMARTDOF5_ACCEL_ODR_1_6_HZ   11

◆ SMARTDOF5_ACCEL_ODR_208_HZ

#define SMARTDOF5_ACCEL_ODR_208_HZ   5

◆ SMARTDOF5_ACCEL_ODR_26_HZ

#define SMARTDOF5_ACCEL_ODR_26_HZ   2

◆ SMARTDOF5_ACCEL_ODR_3333_HZ

#define SMARTDOF5_ACCEL_ODR_3333_HZ   9

◆ SMARTDOF5_ACCEL_ODR_417_HZ

#define SMARTDOF5_ACCEL_ODR_417_HZ   6

◆ SMARTDOF5_ACCEL_ODR_52_HZ

#define SMARTDOF5_ACCEL_ODR_52_HZ   3

◆ SMARTDOF5_ACCEL_ODR_6667_HZ

#define SMARTDOF5_ACCEL_ODR_6667_HZ   10

◆ SMARTDOF5_ACCEL_ODR_833_HZ

#define SMARTDOF5_ACCEL_ODR_833_HZ   7

◆ SMARTDOF5_ACCEL_ODR_OFF

#define SMARTDOF5_ACCEL_ODR_OFF   0

Smart DOF 5 accel output data rate setting.

Specified setting for accel output data rate of Smart DOF 5 Click driver.

◆ SMARTDOF5_ACCEL_SENS_G_PER_LSB

#define SMARTDOF5_ACCEL_SENS_G_PER_LSB   0.000061

Smart DOF 5 sensitivity setting.

Specified setting for sensitivity of Smart DOF 5 Click driver.

◆ SMARTDOF5_CTRL1_XL_FS_MASK

#define SMARTDOF5_CTRL1_XL_FS_MASK   0x0C

◆ SMARTDOF5_CTRL1_XL_LPF2_EN_MASK

#define SMARTDOF5_CTRL1_XL_LPF2_EN_MASK   0x02

◆ SMARTDOF5_CTRL1_XL_ODR_MASK

#define SMARTDOF5_CTRL1_XL_ODR_MASK   0xF0

Smart DOF 5 CTRL1_XL register setting.

Specified setting for CTRL1_XL register of Smart DOF 5 Click driver.

◆ SMARTDOF5_CTRL2_G_FS_125_MASK

#define SMARTDOF5_CTRL2_G_FS_125_MASK   0x02

◆ SMARTDOF5_CTRL2_G_FS_4000_MASK

#define SMARTDOF5_CTRL2_G_FS_4000_MASK   0x01

◆ SMARTDOF5_CTRL2_G_FS_MASK

#define SMARTDOF5_CTRL2_G_FS_MASK   0x0C

◆ SMARTDOF5_CTRL2_G_ODR_MASK

#define SMARTDOF5_CTRL2_G_ODR_MASK   0xF0

Smart DOF 5 CTRL2_G register setting.

Specified setting for CTRL2_G register of Smart DOF 5 Click driver.

◆ SMARTDOF5_CTRL3_C_BDU

#define SMARTDOF5_CTRL3_C_BDU   0x40

◆ SMARTDOF5_CTRL3_C_BOOT

#define SMARTDOF5_CTRL3_C_BOOT   0x80

Smart DOF 5 CTRL3_C register setting.

Specified setting for CTRL3_C register of Smart DOF 5 Click driver.

◆ SMARTDOF5_CTRL3_C_H_LACTIVE

#define SMARTDOF5_CTRL3_C_H_LACTIVE   0x20

◆ SMARTDOF5_CTRL3_C_IF_INC

#define SMARTDOF5_CTRL3_C_IF_INC   0x04

◆ SMARTDOF5_CTRL3_C_PP_OD

#define SMARTDOF5_CTRL3_C_PP_OD   0x10

◆ SMARTDOF5_CTRL3_C_SIM

#define SMARTDOF5_CTRL3_C_SIM   0x08

◆ SMARTDOF5_CTRL3_C_SW_RESET

#define SMARTDOF5_CTRL3_C_SW_RESET   0x01

◆ SMARTDOF5_CTRL9_XL_DEN_LH

#define SMARTDOF5_CTRL9_XL_DEN_LH   0x04

◆ SMARTDOF5_CTRL9_XL_DEN_X

#define SMARTDOF5_CTRL9_XL_DEN_X   0x80

Smart DOF 5 CTRL9_XL register setting.

Specified setting for CTRL9_XL register of Smart DOF 5 Click driver.

◆ SMARTDOF5_CTRL9_XL_DEN_XL_EN

#define SMARTDOF5_CTRL9_XL_DEN_XL_EN   0x08

◆ SMARTDOF5_CTRL9_XL_DEN_XL_G

#define SMARTDOF5_CTRL9_XL_DEN_XL_G   0x10

◆ SMARTDOF5_CTRL9_XL_DEN_Y

#define SMARTDOF5_CTRL9_XL_DEN_Y   0x40

◆ SMARTDOF5_CTRL9_XL_DEN_Z

#define SMARTDOF5_CTRL9_XL_DEN_Z   0x20

◆ SMARTDOF5_CTRL9_XL_I3C_DISABLE

#define SMARTDOF5_CTRL9_XL_I3C_DISABLE   0x02

◆ SMARTDOF5_DEVICE_ADDRESS_0

#define SMARTDOF5_DEVICE_ADDRESS_0   0x6A

Smart DOF 5 device address setting.

Specified setting for device slave address selection of Smart DOF 5 Click driver.

◆ SMARTDOF5_DEVICE_ADDRESS_1

#define SMARTDOF5_DEVICE_ADDRESS_1   0x6B

◆ SMARTDOF5_FUNC_CFG_ACCESS_MASK

#define SMARTDOF5_FUNC_CFG_ACCESS_MASK   0xC0

Smart DOF 5 FUNC_CFG_ACCESS register setting.

Specified setting for FUNC_CFG_ACCESS register of Smart DOF 5 Click driver.

◆ SMARTDOF5_GYRO_FS_1000DPS

#define SMARTDOF5_GYRO_FS_1000DPS   2

◆ SMARTDOF5_GYRO_FS_125DPS

#define SMARTDOF5_GYRO_FS_125DPS   5

◆ SMARTDOF5_GYRO_FS_2000DPS

#define SMARTDOF5_GYRO_FS_2000DPS   3

◆ SMARTDOF5_GYRO_FS_250DPS

#define SMARTDOF5_GYRO_FS_250DPS   0

Smart DOF 5 gyro full scale setting.

Specified setting for gyro full scale of Smart DOF 5 Click driver.

◆ SMARTDOF5_GYRO_FS_4000DPS

#define SMARTDOF5_GYRO_FS_4000DPS   4

◆ SMARTDOF5_GYRO_FS_500DPS

#define SMARTDOF5_GYRO_FS_500DPS   1

◆ SMARTDOF5_GYRO_ODR_104_HZ

#define SMARTDOF5_GYRO_ODR_104_HZ   4

◆ SMARTDOF5_GYRO_ODR_12_5_HZ

#define SMARTDOF5_GYRO_ODR_12_5_HZ   1

◆ SMARTDOF5_GYRO_ODR_1667_HZ

#define SMARTDOF5_GYRO_ODR_1667_HZ   8

◆ SMARTDOF5_GYRO_ODR_208_HZ

#define SMARTDOF5_GYRO_ODR_208_HZ   5

◆ SMARTDOF5_GYRO_ODR_26_HZ

#define SMARTDOF5_GYRO_ODR_26_HZ   2

◆ SMARTDOF5_GYRO_ODR_3333_HZ

#define SMARTDOF5_GYRO_ODR_3333_HZ   9

◆ SMARTDOF5_GYRO_ODR_417_HZ

#define SMARTDOF5_GYRO_ODR_417_HZ   6

◆ SMARTDOF5_GYRO_ODR_52_HZ

#define SMARTDOF5_GYRO_ODR_52_HZ   3

◆ SMARTDOF5_GYRO_ODR_6667_HZ

#define SMARTDOF5_GYRO_ODR_6667_HZ   10

◆ SMARTDOF5_GYRO_ODR_833_HZ

#define SMARTDOF5_GYRO_ODR_833_HZ   7

◆ SMARTDOF5_GYRO_ODR_OFF

#define SMARTDOF5_GYRO_ODR_OFF   0

Smart DOF 5 gyro output data rate setting.

Specified setting for gyro output data rate of Smart DOF 5 Click driver.

◆ SMARTDOF5_GYRO_SENS_DPS_PER_LSB

#define SMARTDOF5_GYRO_SENS_DPS_PER_LSB   0.004375

◆ SMARTDOF5_INT1_CTRL_BOOT

#define SMARTDOF5_INT1_CTRL_BOOT   0x04

◆ SMARTDOF5_INT1_CTRL_CNT_BDR

#define SMARTDOF5_INT1_CTRL_CNT_BDR   0x40

◆ SMARTDOF5_INT1_CTRL_DEN_DRDY

#define SMARTDOF5_INT1_CTRL_DEN_DRDY   0x80

Smart DOF 5 WHO_AM_I register setting.

Specified setting for WHO_AM_I register of Smart DOF 5 Click driver.

◆ SMARTDOF5_INT1_CTRL_DRDY_G

#define SMARTDOF5_INT1_CTRL_DRDY_G   0x02

◆ SMARTDOF5_INT1_CTRL_DRDY_XL

#define SMARTDOF5_INT1_CTRL_DRDY_XL   0x01

◆ SMARTDOF5_INT1_CTRL_FIFO_FULL

#define SMARTDOF5_INT1_CTRL_FIFO_FULL   0x20

◆ SMARTDOF5_INT1_CTRL_FIFO_OVR

#define SMARTDOF5_INT1_CTRL_FIFO_OVR   0x10

◆ SMARTDOF5_INT1_CTRL_FIFO_TH

#define SMARTDOF5_INT1_CTRL_FIFO_TH   0x08

◆ SMARTDOF5_MEM_BANK_EMBEDDED_FUNC

#define SMARTDOF5_MEM_BANK_EMBEDDED_FUNC   2

◆ SMARTDOF5_MEM_BANK_SENSOR_HUB

#define SMARTDOF5_MEM_BANK_SENSOR_HUB   1

◆ SMARTDOF5_MEM_BANK_USER

#define SMARTDOF5_MEM_BANK_USER   0

Smart DOF 5 memory bank setting.

Specified setting for memory bank of Smart DOF 5 Click driver.

◆ SMARTDOF5_SET_DATA_SAMPLE_EDGE

#define SMARTDOF5_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 smartdof5_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ SMARTDOF5_SET_DATA_SAMPLE_MIDDLE

#define SMARTDOF5_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SMARTDOF5_STATUS_GDA

#define SMARTDOF5_STATUS_GDA   0x02

◆ SMARTDOF5_STATUS_TDA

#define SMARTDOF5_STATUS_TDA   0x04

Smart DOF 5 STATUS register setting.

Specified setting for STATUS register of Smart DOF 5 Click driver.

◆ SMARTDOF5_STATUS_XLDA

#define SMARTDOF5_STATUS_XLDA   0x01

◆ SMARTDOF5_TEMP_OFFSET

#define SMARTDOF5_TEMP_OFFSET   25.0

◆ SMARTDOF5_TEMP_SENS_LSB_PER_C

#define SMARTDOF5_TEMP_SENS_LSB_PER_C   256.0

◆ SMARTDOF5_WHO_AM_I

#define SMARTDOF5_WHO_AM_I   0x6B

Smart DOF 5 WHO_AM_I register setting.

Specified setting for WHO_AM_I register of Smart DOF 5 Click driver.