smartdof3 2.1.0.0
Smart DOF 3 Registers Settings

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

Macros

#define SMARTDOF3_DEVICE_ID   0x22
 Smart DOF 3 device ID value.
 
#define SMARTDOF3_CTRL3_SOFT_RESET   0x01
 Smart DOF 3 control 3 register value.
 
#define SMARTDOF3_CTRL3_IF_INC_DISABLE   0x00
 
#define SMARTDOF3_CTRL3_IF_INC_ENABLE   0x04
 
#define SMARTDOF3_CTRL3_IF_INC_BIT_MASK   0xFB
 
#define SMARTDOF3_CTRL3_BDU_DISABLE   0x00
 
#define SMARTDOF3_CTRL3_BDU_ENABLE   0x40
 
#define SMARTDOF3_CTRL3_BDU_BIT_MASK   0xBF
 
#define SMARTDOF3_ODR_XL_G_OFF   0x00
 Smart DOF 3 accelerometer ODR configuration setting value.
 
#define SMARTDOF3_ODR_XL_G_12_5_HZ   0x01
 
#define SMARTDOF3_ODR_XL_G_26_HZ   0x02
 
#define SMARTDOF3_ODR_XL_G_52_HZ   0x03
 
#define SMARTDOF3_ODR_XL_G_104_HZ   0x04
 
#define SMARTDOF3_ODR_XL_G_208_HZ   0x05
 
#define SMARTDOF3_ODR_XL_G_416_HZ   0x06
 
#define SMARTDOF3_ODR_XL_G_833_HZ   0x07
 
#define SMARTDOF3_ODR_XL_G_1667_HZ   0x08
 
#define SMARTDOF3_ODR_XL_G_3333_HZ   0x09
 
#define SMARTDOF3_ODR_XL_G_6667_HZ   0x0A
 
#define SMARTDOF3_ODR_XL_G_BIT_MASK   0x0F
 
#define SMARTDOF3_XL_FULL_SCALE_2G   0x00
 Smart DOF 3 accel full-scale selection value.
 
#define SMARTDOF3_XL_FULL_SCALE_16G   0x01
 
#define SMARTDOF3_XL_FULL_SCALE_4G   0x02
 
#define SMARTDOF3_XL_FULL_SCALE_8G   0x03
 
#define SMARTDOF3_XL_FULL_SCALE_BIT_MASK   0x03
 
#define SMARTDOF3_OP_MODE_PERFORMANCE_LOW   0x00
 Smart DOF 3 operating mode value.
 
#define SMARTDOF3_OP_MODE_PERFORMANCE_HIGH   0x01
 
#define SMARTDOF3_TIMESTAMP_ENABLE   0x20
 Smart DOF 3 accel full-scale selection value.
 
#define SMARTDOF3_ACC_SENSITIVITY_FS_2G   0.061
 Smart DOF 3 accel sensitivity data value.
 
#define SMARTDOF3_ACC_SENSITIVITY_FS_4G   0.122
 
#define SMARTDOF3_ACC_SENSITIVITY_FS_8G   0.244
 
#define SMARTDOF3_ACC_SENSITIVITY_FS_16G   0.488
 
#define SMARTDOF3_GY_FULL_SCALE_125DPS   0x01
 Smart DOF 3 gyro chain full-scale selection value.
 
#define SMARTDOF3_GY_FULL_SCALE_250DPS   0x00
 
#define SMARTDOF3_GY_FULL_SCALE_500DPS   0x02
 
#define SMARTDOF3_GY_FULL_SCALE_1000DPS   0x04
 
#define SMARTDOF3_GY_FULL_SCALE_2000DPS   0x06
 
#define SMARTDOF3_GY_FULL_SCALE_BIT_MASK   0x07
 
#define SMARTDOF3_GYRO_SENSITIVITY_FS_125DPS   0.004375
 Smart DOF 3 gyro sensitivity data value.
 
#define SMARTDOF3_GYRO_SENSITIVITY_FS_250DPS   0.00875
 
#define SMARTDOF3_GYRO_SENSITIVITY_FS_500DPS   0.0175
 
#define SMARTDOF3_GYRO_SENSITIVITY_FS_1000DPS   0.035
 
#define SMARTDOF3_GYRO_SENSITIVITY_FS_2000DPS   0.07
 
#define SMARTDOF3_DEVICE_ADDRESS_GND   0x6A
 Smart DOF 3 device address setting.
 
#define SMARTDOF3_DEVICE_ADDRESS_VCC   0x6B
 
#define SMARTDOF3_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SMARTDOF3_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Smart DOF 3 Click driver.

Macro Definition Documentation

◆ SMARTDOF3_ACC_SENSITIVITY_FS_16G

#define SMARTDOF3_ACC_SENSITIVITY_FS_16G   0.488

◆ SMARTDOF3_ACC_SENSITIVITY_FS_2G

#define SMARTDOF3_ACC_SENSITIVITY_FS_2G   0.061

Smart DOF 3 accel sensitivity data value.

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

◆ SMARTDOF3_ACC_SENSITIVITY_FS_4G

#define SMARTDOF3_ACC_SENSITIVITY_FS_4G   0.122

◆ SMARTDOF3_ACC_SENSITIVITY_FS_8G

#define SMARTDOF3_ACC_SENSITIVITY_FS_8G   0.244

◆ SMARTDOF3_CTRL3_BDU_BIT_MASK

#define SMARTDOF3_CTRL3_BDU_BIT_MASK   0xBF

◆ SMARTDOF3_CTRL3_BDU_DISABLE

#define SMARTDOF3_CTRL3_BDU_DISABLE   0x00

◆ SMARTDOF3_CTRL3_BDU_ENABLE

#define SMARTDOF3_CTRL3_BDU_ENABLE   0x40

◆ SMARTDOF3_CTRL3_IF_INC_BIT_MASK

#define SMARTDOF3_CTRL3_IF_INC_BIT_MASK   0xFB

◆ SMARTDOF3_CTRL3_IF_INC_DISABLE

#define SMARTDOF3_CTRL3_IF_INC_DISABLE   0x00

◆ SMARTDOF3_CTRL3_IF_INC_ENABLE

#define SMARTDOF3_CTRL3_IF_INC_ENABLE   0x04

◆ SMARTDOF3_CTRL3_SOFT_RESET

#define SMARTDOF3_CTRL3_SOFT_RESET   0x01

Smart DOF 3 control 3 register value.

Specified control 3 register value of Smart DOF 3 Click driver.

◆ SMARTDOF3_DEVICE_ADDRESS_GND

#define SMARTDOF3_DEVICE_ADDRESS_GND   0x6A

Smart DOF 3 device address setting.

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

◆ SMARTDOF3_DEVICE_ADDRESS_VCC

#define SMARTDOF3_DEVICE_ADDRESS_VCC   0x6B

◆ SMARTDOF3_DEVICE_ID

#define SMARTDOF3_DEVICE_ID   0x22

Smart DOF 3 device ID value.

Specified device ID value of Smart DOF 3 Click driver.

◆ SMARTDOF3_GY_FULL_SCALE_1000DPS

#define SMARTDOF3_GY_FULL_SCALE_1000DPS   0x04

◆ SMARTDOF3_GY_FULL_SCALE_125DPS

#define SMARTDOF3_GY_FULL_SCALE_125DPS   0x01

Smart DOF 3 gyro chain full-scale selection value.

Specified gyroscope chain full-scale selection value of Smart DOF 3 Click driver.

◆ SMARTDOF3_GY_FULL_SCALE_2000DPS

#define SMARTDOF3_GY_FULL_SCALE_2000DPS   0x06

◆ SMARTDOF3_GY_FULL_SCALE_250DPS

#define SMARTDOF3_GY_FULL_SCALE_250DPS   0x00

◆ SMARTDOF3_GY_FULL_SCALE_500DPS

#define SMARTDOF3_GY_FULL_SCALE_500DPS   0x02

◆ SMARTDOF3_GY_FULL_SCALE_BIT_MASK

#define SMARTDOF3_GY_FULL_SCALE_BIT_MASK   0x07

◆ SMARTDOF3_GYRO_SENSITIVITY_FS_1000DPS

#define SMARTDOF3_GYRO_SENSITIVITY_FS_1000DPS   0.035

◆ SMARTDOF3_GYRO_SENSITIVITY_FS_125DPS

#define SMARTDOF3_GYRO_SENSITIVITY_FS_125DPS   0.004375

Smart DOF 3 gyro sensitivity data value.

Specified gyroscope sensitivity value of Smart DOF 3 Click driver.

◆ SMARTDOF3_GYRO_SENSITIVITY_FS_2000DPS

#define SMARTDOF3_GYRO_SENSITIVITY_FS_2000DPS   0.07

◆ SMARTDOF3_GYRO_SENSITIVITY_FS_250DPS

#define SMARTDOF3_GYRO_SENSITIVITY_FS_250DPS   0.00875

◆ SMARTDOF3_GYRO_SENSITIVITY_FS_500DPS

#define SMARTDOF3_GYRO_SENSITIVITY_FS_500DPS   0.0175

◆ SMARTDOF3_ODR_XL_G_104_HZ

#define SMARTDOF3_ODR_XL_G_104_HZ   0x04

◆ SMARTDOF3_ODR_XL_G_12_5_HZ

#define SMARTDOF3_ODR_XL_G_12_5_HZ   0x01

◆ SMARTDOF3_ODR_XL_G_1667_HZ

#define SMARTDOF3_ODR_XL_G_1667_HZ   0x08

◆ SMARTDOF3_ODR_XL_G_208_HZ

#define SMARTDOF3_ODR_XL_G_208_HZ   0x05

◆ SMARTDOF3_ODR_XL_G_26_HZ

#define SMARTDOF3_ODR_XL_G_26_HZ   0x02

◆ SMARTDOF3_ODR_XL_G_3333_HZ

#define SMARTDOF3_ODR_XL_G_3333_HZ   0x09

◆ SMARTDOF3_ODR_XL_G_416_HZ

#define SMARTDOF3_ODR_XL_G_416_HZ   0x06

◆ SMARTDOF3_ODR_XL_G_52_HZ

#define SMARTDOF3_ODR_XL_G_52_HZ   0x03

◆ SMARTDOF3_ODR_XL_G_6667_HZ

#define SMARTDOF3_ODR_XL_G_6667_HZ   0x0A

◆ SMARTDOF3_ODR_XL_G_833_HZ

#define SMARTDOF3_ODR_XL_G_833_HZ   0x07

◆ SMARTDOF3_ODR_XL_G_BIT_MASK

#define SMARTDOF3_ODR_XL_G_BIT_MASK   0x0F

◆ SMARTDOF3_ODR_XL_G_OFF

#define SMARTDOF3_ODR_XL_G_OFF   0x00

Smart DOF 3 accelerometer ODR configuration setting value.

Specified accelerometer ODR configuration setting of Smart DOF 3 Click driver.

◆ SMARTDOF3_OP_MODE_PERFORMANCE_HIGH

#define SMARTDOF3_OP_MODE_PERFORMANCE_HIGH   0x01

◆ SMARTDOF3_OP_MODE_PERFORMANCE_LOW

#define SMARTDOF3_OP_MODE_PERFORMANCE_LOW   0x00

Smart DOF 3 operating mode value.

Specified operating mode value of Smart DOF 3 Click driver.

◆ SMARTDOF3_SET_DATA_SAMPLE_EDGE

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

◆ SMARTDOF3_SET_DATA_SAMPLE_MIDDLE

#define SMARTDOF3_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SMARTDOF3_TIMESTAMP_ENABLE

#define SMARTDOF3_TIMESTAMP_ENABLE   0x20

Smart DOF 3 accel full-scale selection value.

Specified accelerometer full-scale selection value of Smart DOF 3 Click driver.

◆ SMARTDOF3_XL_FULL_SCALE_16G

#define SMARTDOF3_XL_FULL_SCALE_16G   0x01

◆ SMARTDOF3_XL_FULL_SCALE_2G

#define SMARTDOF3_XL_FULL_SCALE_2G   0x00

Smart DOF 3 accel full-scale selection value.

Specified accelerometer full-scale selection value of Smart DOF 3 Click driver.

◆ SMARTDOF3_XL_FULL_SCALE_4G

#define SMARTDOF3_XL_FULL_SCALE_4G   0x02

◆ SMARTDOF3_XL_FULL_SCALE_8G

#define SMARTDOF3_XL_FULL_SCALE_8G   0x03

◆ SMARTDOF3_XL_FULL_SCALE_BIT_MASK

#define SMARTDOF3_XL_FULL_SCALE_BIT_MASK   0x03