accel22 2.0.0.0
Accel 22 Registers Settings

Settings for registers of Accel 22 Click driver. More...

Macros

#define ACCEL22_INTMAP1_LOWER_INT_LOW   0x80
 Accel 22 INTMAP1_LOWER register settings.
 
#define ACCEL22_INTMAP1_LOWER_AWAKE   0x40
 
#define ACCEL22_INTMAP1_LOWER_INACT   0x20
 
#define ACCEL22_INTMAP1_LOWER_ACT   0x10
 
#define ACCEL22_INTMAP1_LOWER_FIFO_OR   0x08
 
#define ACCEL22_INTMAP1_LOWER_FIFO_WM   0x04
 
#define ACCEL22_INTMAP1_LOWER_FIFO_RDY   0x02
 
#define ACCEL22_INTMAP1_LOWER_DATA_RDY   0x01
 
#define ACCEL22_POWER_CTL_EXT_CLK   0x40
 Accel 22 POWER_CTL register settings.
 
#define ACCEL22_POWER_CTL_NOISE_NORMAL   0x00
 
#define ACCEL22_POWER_CTL_NOISE_LOW   0x10
 
#define ACCEL22_POWER_CTL_NOISE_ULTRALOW   0x20
 
#define ACCEL22_POWER_CTL_NOISE_BIT_MASK   0x30
 
#define ACCEL22_POWER_CTL_WAKEUP   0x08
 
#define ACCEL22_POWER_CTL_AUTOSLEEP   0x04
 
#define ACCEL22_POWER_CTL_STANDBY_MODE   0x00
 
#define ACCEL22_POWER_CTL_MEASUREMENT_MODE   0x02
 
#define ACCEL22_SOFT_RESET   0x52
 Accel 22 soft reset value.
 
#define ACCEL22_ENABLE_TEMPERATURE   0x01
 Accel 22 enable temperature and adc measurement values.
 
#define ACCEL22_ENABLE_ADC   0x01
 
#define ACCEL22_ACCEL_2G_RES   0.25
 Accel 22 calculation values.
 
#define ACCEL22_ACCEL_4G_RES   0.5
 
#define ACCEL22_ACCEL_8G_RES   1.0
 
#define ACCEL22_ROOM_TEMPERATURE   25.0
 
#define ACCEL22_TEMPERATURE_BIAS   165
 
#define ACCEL22_TEMPERATURE_RES   54.0
 
#define ACCEL22_TEMPERATURE_CAL_SAMPLE_NUM   100
 
#define ACCEL22_ADC_VREG   1.098
 
#define ACCEL22_ADC_RES   0x3FFF
 
#define ACCEL22_ADC_OFFSET   0x2000
 
#define ACCEL22_ADI_DEVICE_ID   0xAD
 Accel 22 device ID register values.
 
#define ACCEL22_MEMS_DEVICE_ID   0x1D
 
#define ACCEL22_PART_ID   0xF7
 
#define ACCEL22_SPI_WRITE_REG   0x0A
 Accel 22 SPI command values.
 
#define ACCEL22_SPI_READ_REG   0x0B
 
#define ACCEL22_SPI_READ_FIFO   0x0D
 
#define ACCEL22_DEVICE_ADDRESS_0   0x1D
 Accel 22 device address setting.
 
#define ACCEL22_DEVICE_ADDRESS_1   0x53
 
#define ACCEL22_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ACCEL22_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Accel 22 Click driver.

Macro Definition Documentation

◆ ACCEL22_ACCEL_2G_RES

#define ACCEL22_ACCEL_2G_RES   0.25

Accel 22 calculation values.

Specified calculation values of Accel 22 Click driver.

◆ ACCEL22_ACCEL_4G_RES

#define ACCEL22_ACCEL_4G_RES   0.5

◆ ACCEL22_ACCEL_8G_RES

#define ACCEL22_ACCEL_8G_RES   1.0

◆ ACCEL22_ADC_OFFSET

#define ACCEL22_ADC_OFFSET   0x2000

◆ ACCEL22_ADC_RES

#define ACCEL22_ADC_RES   0x3FFF

◆ ACCEL22_ADC_VREG

#define ACCEL22_ADC_VREG   1.098

◆ ACCEL22_ADI_DEVICE_ID

#define ACCEL22_ADI_DEVICE_ID   0xAD

Accel 22 device ID register values.

Specified device ID register values of Accel 22 Click driver.

◆ ACCEL22_DEVICE_ADDRESS_0

#define ACCEL22_DEVICE_ADDRESS_0   0x1D

Accel 22 device address setting.

Specified setting for device slave address selection of Accel 22 Click driver.

◆ ACCEL22_DEVICE_ADDRESS_1

#define ACCEL22_DEVICE_ADDRESS_1   0x53

◆ ACCEL22_ENABLE_ADC

#define ACCEL22_ENABLE_ADC   0x01

◆ ACCEL22_ENABLE_TEMPERATURE

#define ACCEL22_ENABLE_TEMPERATURE   0x01

Accel 22 enable temperature and adc measurement values.

Specified enable temperature and adc measurement values of Accel 22 Click driver.

◆ ACCEL22_INTMAP1_LOWER_ACT

#define ACCEL22_INTMAP1_LOWER_ACT   0x10

◆ ACCEL22_INTMAP1_LOWER_AWAKE

#define ACCEL22_INTMAP1_LOWER_AWAKE   0x40

◆ ACCEL22_INTMAP1_LOWER_DATA_RDY

#define ACCEL22_INTMAP1_LOWER_DATA_RDY   0x01

◆ ACCEL22_INTMAP1_LOWER_FIFO_OR

#define ACCEL22_INTMAP1_LOWER_FIFO_OR   0x08

◆ ACCEL22_INTMAP1_LOWER_FIFO_RDY

#define ACCEL22_INTMAP1_LOWER_FIFO_RDY   0x02

◆ ACCEL22_INTMAP1_LOWER_FIFO_WM

#define ACCEL22_INTMAP1_LOWER_FIFO_WM   0x04

◆ ACCEL22_INTMAP1_LOWER_INACT

#define ACCEL22_INTMAP1_LOWER_INACT   0x20

◆ ACCEL22_INTMAP1_LOWER_INT_LOW

#define ACCEL22_INTMAP1_LOWER_INT_LOW   0x80

Accel 22 INTMAP1_LOWER register settings.

Specified INTMAP1_LOWER register settings of Accel 22 Click driver.

◆ ACCEL22_MEMS_DEVICE_ID

#define ACCEL22_MEMS_DEVICE_ID   0x1D

◆ ACCEL22_PART_ID

#define ACCEL22_PART_ID   0xF7

◆ ACCEL22_POWER_CTL_AUTOSLEEP

#define ACCEL22_POWER_CTL_AUTOSLEEP   0x04

◆ ACCEL22_POWER_CTL_EXT_CLK

#define ACCEL22_POWER_CTL_EXT_CLK   0x40

Accel 22 POWER_CTL register settings.

Specified POWER_CTL register settings of Accel 22 Click driver.

◆ ACCEL22_POWER_CTL_MEASUREMENT_MODE

#define ACCEL22_POWER_CTL_MEASUREMENT_MODE   0x02

◆ ACCEL22_POWER_CTL_NOISE_BIT_MASK

#define ACCEL22_POWER_CTL_NOISE_BIT_MASK   0x30

◆ ACCEL22_POWER_CTL_NOISE_LOW

#define ACCEL22_POWER_CTL_NOISE_LOW   0x10

◆ ACCEL22_POWER_CTL_NOISE_NORMAL

#define ACCEL22_POWER_CTL_NOISE_NORMAL   0x00

◆ ACCEL22_POWER_CTL_NOISE_ULTRALOW

#define ACCEL22_POWER_CTL_NOISE_ULTRALOW   0x20

◆ ACCEL22_POWER_CTL_STANDBY_MODE

#define ACCEL22_POWER_CTL_STANDBY_MODE   0x00

◆ ACCEL22_POWER_CTL_WAKEUP

#define ACCEL22_POWER_CTL_WAKEUP   0x08

◆ ACCEL22_ROOM_TEMPERATURE

#define ACCEL22_ROOM_TEMPERATURE   25.0

◆ ACCEL22_SET_DATA_SAMPLE_EDGE

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

◆ ACCEL22_SET_DATA_SAMPLE_MIDDLE

#define ACCEL22_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ ACCEL22_SOFT_RESET

#define ACCEL22_SOFT_RESET   0x52

Accel 22 soft reset value.

Specified soft reset value of Accel 22 Click driver.

◆ ACCEL22_SPI_READ_FIFO

#define ACCEL22_SPI_READ_FIFO   0x0D

◆ ACCEL22_SPI_READ_REG

#define ACCEL22_SPI_READ_REG   0x0B

◆ ACCEL22_SPI_WRITE_REG

#define ACCEL22_SPI_WRITE_REG   0x0A

Accel 22 SPI command values.

Specified SPI command values of Accel 22 Click driver.

◆ ACCEL22_TEMPERATURE_BIAS

#define ACCEL22_TEMPERATURE_BIAS   165

◆ ACCEL22_TEMPERATURE_CAL_SAMPLE_NUM

#define ACCEL22_TEMPERATURE_CAL_SAMPLE_NUM   100

◆ ACCEL22_TEMPERATURE_RES

#define ACCEL22_TEMPERATURE_RES   54.0