smartdof2 2.1.0.0
Smart DOF 2 Registers Settings

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

Macros

#define SMARTDOF2_DEVICE_ID   0x70
 Smart DOF 2 SMARTDOF2_REG_WHO_AM_I register value.
 
#define SMARTDOF2_IF_INC_DISABLE   0x00
 Smart DOF 2 SMARTDOF2_REG_CTRL3 register value.
 
#define SMARTDOF2_IF_INC_ENABLE   0x04
 
#define SMARTDOF2_IF_INC_BIT_MASK   0xFB
 
#define SMARTDOF2_BDU_DISABLE   0x00
 
#define SMARTDOF2_BDU_ENABLE   0x40
 
#define SMARTDOF2_BDU_BIT_MASK   0xBF
 
#define SMARTDOF2_FIFO_MODE_BYPASS   0x00
 Smart DOF 2 SMARTDOF2_REG_FIFO_CTRL4 register value.
 
#define SMARTDOF2_FIFO_MODE_FIFO   0x01
 
#define SMARTDOF2_FIFO_MODE_STREAM_WTM_TO_FULL   0x02
 
#define SMARTDOF2_FIFO_MODE_STREAM_TO_FIFO   0x03
 
#define SMARTDOF2_FIFO_MODE_BYPASS_TO_STREAM   0x04
 
#define SMARTDOF2_FIFO_MODE_STREAM   0x06
 
#define SMARTDOF2_FIFO_MODE_BYPASS_TO_FIFO   0x07
 
#define SMARTDOF2_FIFO_MODE_BIT_MASK   0xF8
 
#define SMARTDOF2_ODR_OFF   0x00
 Smart DOF 2 SMARTDOF2_REG_CTRL1 register value.
 
#define SMARTDOF2_ODR_AT_1Hz875   0x01
 
#define SMARTDOF2_ODR_AT_7Hz5   0x02
 
#define SMARTDOF2_ODR_AT_15Hz   0x03
 
#define SMARTDOF2_ODR_AT_30Hz   0x04
 
#define SMARTDOF2_ODR_AT_60Hz   0x05
 
#define SMARTDOF2_ODR_AT_120Hz   0x06
 
#define SMARTDOF2_ODR_AT_240Hz   0x07
 
#define SMARTDOF2_ODR_AT_480Hz   0x08
 
#define SMARTDOF2_ODR_AT_960Hz   0x09
 
#define SMARTDOF2_ODR_AT_1920Hz   0x0A
 
#define SMARTDOF2_ODR_AT_3840Hz   0x0B
 
#define SMARTDOF2_ODR_AT_7680Hz   0x0C
 
#define SMARTDOF2_ODR_BIT_MASK   0xF0
 
#define SMARTDOF2_XL_FULL_SCALE_2g   0x00
 Smart DOF 2 SMARTDOF2_REG_CTRL2/8 register value.
 
#define SMARTDOF2_XL_FULL_SCALE_4g   0x01
 
#define SMARTDOF2_XL_FULL_SCALE_8g   0x02
 
#define SMARTDOF2_XL_FULL_SCALE_16g   0x03
 
#define SMARTDOF2_XL_FULL_SCALE_BIT_MASK   0xF8
 
#define SMARTDOF2_GY_FULL_SCALE_125dps   0x00
 Smart DOF 2 SMARTDOF2_REG_CTRL6 register value.
 
#define SMARTDOF2_GY_FULL_SCALE_250dps   0x01
 
#define SMARTDOF2_GY_FULL_SCALE_500dps   0x02
 
#define SMARTDOF2_GY_FULL_SCALE_1000dps   0x03
 
#define SMARTDOF2_GY_FULL_SCALE_2000dps   0x04
 
#define SMARTDOF2_GY_FULL_SCALE_4000dps   0x0C
 
#define SMARTDOF2_GY_FULL_SCALE_BIT_MASK   0xF0
 
#define SMARTDOF2_ACC_SENSITIVITY_FS_2g   0.061
 Smart DOF 2 accel sensitivity data value.
 
#define SMARTDOF2_ACC_SENSITIVITY_FS_4g   0.122
 
#define SMARTDOF2_ACC_SENSITIVITY_FS_8g   0.244
 
#define SMARTDOF2_ACC_SENSITIVITY_FS_16g   0.488
 
#define SMARTDOF2_GYRO_SENSITIVITY_FS_125dps   4.375
 Smart DOF 2 gyro sensitivity data value.
 
#define SMARTDOF2_GYRO_SENSITIVITY_FS_250dps   8.750
 
#define SMARTDOF2_GYRO_SENSITIVITY_FS_500dps   17.500
 
#define SMARTDOF2_GYRO_SENSITIVITY_FS_1000dps   35.000
 
#define SMARTDOF2_GYRO_SENSITIVITY_FS_2000dps   70.000
 
#define SMARTDOF2_GYRO_SENSITIVITY_FS_4000dps   140.000
 
#define SMARTDOF2_DEVICE_ADDRESS_GND   0x6A
 Smart DOF 2 device address setting.
 
#define SMARTDOF2_DEVICE_ADDRESS_VCC   0x6B
 
#define SMARTDOF2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SMARTDOF2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Smart DOF 2 Click driver.

Macro Definition Documentation

◆ SMARTDOF2_ACC_SENSITIVITY_FS_16g

#define SMARTDOF2_ACC_SENSITIVITY_FS_16g   0.488

◆ SMARTDOF2_ACC_SENSITIVITY_FS_2g

#define SMARTDOF2_ACC_SENSITIVITY_FS_2g   0.061

Smart DOF 2 accel sensitivity data value.

Specified accelerometer sensitivity value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_ACC_SENSITIVITY_FS_4g

#define SMARTDOF2_ACC_SENSITIVITY_FS_4g   0.122

◆ SMARTDOF2_ACC_SENSITIVITY_FS_8g

#define SMARTDOF2_ACC_SENSITIVITY_FS_8g   0.244

◆ SMARTDOF2_BDU_BIT_MASK

#define SMARTDOF2_BDU_BIT_MASK   0xBF

◆ SMARTDOF2_BDU_DISABLE

#define SMARTDOF2_BDU_DISABLE   0x00

◆ SMARTDOF2_BDU_ENABLE

#define SMARTDOF2_BDU_ENABLE   0x40

◆ SMARTDOF2_DEVICE_ADDRESS_GND

#define SMARTDOF2_DEVICE_ADDRESS_GND   0x6A

Smart DOF 2 device address setting.

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

◆ SMARTDOF2_DEVICE_ADDRESS_VCC

#define SMARTDOF2_DEVICE_ADDRESS_VCC   0x6B

◆ SMARTDOF2_DEVICE_ID

#define SMARTDOF2_DEVICE_ID   0x70

Smart DOF 2 SMARTDOF2_REG_WHO_AM_I register value.

Specified SMARTDOF2_REG_WHO_AM_I register value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_FIFO_MODE_BIT_MASK

#define SMARTDOF2_FIFO_MODE_BIT_MASK   0xF8

◆ SMARTDOF2_FIFO_MODE_BYPASS

#define SMARTDOF2_FIFO_MODE_BYPASS   0x00

Smart DOF 2 SMARTDOF2_REG_FIFO_CTRL4 register value.

Specified SMARTDOF2_REG_FIFO_CTRL4 register value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_FIFO_MODE_BYPASS_TO_FIFO

#define SMARTDOF2_FIFO_MODE_BYPASS_TO_FIFO   0x07

◆ SMARTDOF2_FIFO_MODE_BYPASS_TO_STREAM

#define SMARTDOF2_FIFO_MODE_BYPASS_TO_STREAM   0x04

◆ SMARTDOF2_FIFO_MODE_FIFO

#define SMARTDOF2_FIFO_MODE_FIFO   0x01

◆ SMARTDOF2_FIFO_MODE_STREAM

#define SMARTDOF2_FIFO_MODE_STREAM   0x06

◆ SMARTDOF2_FIFO_MODE_STREAM_TO_FIFO

#define SMARTDOF2_FIFO_MODE_STREAM_TO_FIFO   0x03

◆ SMARTDOF2_FIFO_MODE_STREAM_WTM_TO_FULL

#define SMARTDOF2_FIFO_MODE_STREAM_WTM_TO_FULL   0x02

◆ SMARTDOF2_GY_FULL_SCALE_1000dps

#define SMARTDOF2_GY_FULL_SCALE_1000dps   0x03

◆ SMARTDOF2_GY_FULL_SCALE_125dps

#define SMARTDOF2_GY_FULL_SCALE_125dps   0x00

Smart DOF 2 SMARTDOF2_REG_CTRL6 register value.

Specified SMARTDOF2_REG_CTRL6 register value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_GY_FULL_SCALE_2000dps

#define SMARTDOF2_GY_FULL_SCALE_2000dps   0x04

◆ SMARTDOF2_GY_FULL_SCALE_250dps

#define SMARTDOF2_GY_FULL_SCALE_250dps   0x01

◆ SMARTDOF2_GY_FULL_SCALE_4000dps

#define SMARTDOF2_GY_FULL_SCALE_4000dps   0x0C

◆ SMARTDOF2_GY_FULL_SCALE_500dps

#define SMARTDOF2_GY_FULL_SCALE_500dps   0x02

◆ SMARTDOF2_GY_FULL_SCALE_BIT_MASK

#define SMARTDOF2_GY_FULL_SCALE_BIT_MASK   0xF0

◆ SMARTDOF2_GYRO_SENSITIVITY_FS_1000dps

#define SMARTDOF2_GYRO_SENSITIVITY_FS_1000dps   35.000

◆ SMARTDOF2_GYRO_SENSITIVITY_FS_125dps

#define SMARTDOF2_GYRO_SENSITIVITY_FS_125dps   4.375

Smart DOF 2 gyro sensitivity data value.

Specified gyroscope sensitivity value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_GYRO_SENSITIVITY_FS_2000dps

#define SMARTDOF2_GYRO_SENSITIVITY_FS_2000dps   70.000

◆ SMARTDOF2_GYRO_SENSITIVITY_FS_250dps

#define SMARTDOF2_GYRO_SENSITIVITY_FS_250dps   8.750

◆ SMARTDOF2_GYRO_SENSITIVITY_FS_4000dps

#define SMARTDOF2_GYRO_SENSITIVITY_FS_4000dps   140.000

◆ SMARTDOF2_GYRO_SENSITIVITY_FS_500dps

#define SMARTDOF2_GYRO_SENSITIVITY_FS_500dps   17.500

◆ SMARTDOF2_IF_INC_BIT_MASK

#define SMARTDOF2_IF_INC_BIT_MASK   0xFB

◆ SMARTDOF2_IF_INC_DISABLE

#define SMARTDOF2_IF_INC_DISABLE   0x00

Smart DOF 2 SMARTDOF2_REG_CTRL3 register value.

Specified SMARTDOF2_REG_CTRL3 register value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_IF_INC_ENABLE

#define SMARTDOF2_IF_INC_ENABLE   0x04

◆ SMARTDOF2_ODR_AT_120Hz

#define SMARTDOF2_ODR_AT_120Hz   0x06

◆ SMARTDOF2_ODR_AT_15Hz

#define SMARTDOF2_ODR_AT_15Hz   0x03

◆ SMARTDOF2_ODR_AT_1920Hz

#define SMARTDOF2_ODR_AT_1920Hz   0x0A

◆ SMARTDOF2_ODR_AT_1Hz875

#define SMARTDOF2_ODR_AT_1Hz875   0x01

◆ SMARTDOF2_ODR_AT_240Hz

#define SMARTDOF2_ODR_AT_240Hz   0x07

◆ SMARTDOF2_ODR_AT_30Hz

#define SMARTDOF2_ODR_AT_30Hz   0x04

◆ SMARTDOF2_ODR_AT_3840Hz

#define SMARTDOF2_ODR_AT_3840Hz   0x0B

◆ SMARTDOF2_ODR_AT_480Hz

#define SMARTDOF2_ODR_AT_480Hz   0x08

◆ SMARTDOF2_ODR_AT_60Hz

#define SMARTDOF2_ODR_AT_60Hz   0x05

◆ SMARTDOF2_ODR_AT_7680Hz

#define SMARTDOF2_ODR_AT_7680Hz   0x0C

◆ SMARTDOF2_ODR_AT_7Hz5

#define SMARTDOF2_ODR_AT_7Hz5   0x02

◆ SMARTDOF2_ODR_AT_960Hz

#define SMARTDOF2_ODR_AT_960Hz   0x09

◆ SMARTDOF2_ODR_BIT_MASK

#define SMARTDOF2_ODR_BIT_MASK   0xF0

◆ SMARTDOF2_ODR_OFF

#define SMARTDOF2_ODR_OFF   0x00

Smart DOF 2 SMARTDOF2_REG_CTRL1 register value.

Specified SMARTDOF2_REG_CTRL1 register value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_SET_DATA_SAMPLE_EDGE

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

◆ SMARTDOF2_SET_DATA_SAMPLE_MIDDLE

#define SMARTDOF2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SMARTDOF2_XL_FULL_SCALE_16g

#define SMARTDOF2_XL_FULL_SCALE_16g   0x03

◆ SMARTDOF2_XL_FULL_SCALE_2g

#define SMARTDOF2_XL_FULL_SCALE_2g   0x00

Smart DOF 2 SMARTDOF2_REG_CTRL2/8 register value.

Specified SMARTDOF2_REG_CTRL2/8 register value for description of Smart DOF 2 Click driver.

◆ SMARTDOF2_XL_FULL_SCALE_4g

#define SMARTDOF2_XL_FULL_SCALE_4g   0x01

◆ SMARTDOF2_XL_FULL_SCALE_8g

#define SMARTDOF2_XL_FULL_SCALE_8g   0x02

◆ SMARTDOF2_XL_FULL_SCALE_BIT_MASK

#define SMARTDOF2_XL_FULL_SCALE_BIT_MASK   0xF8