accel29 2.1.0.0
Accel 29 Registers Settings

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

Macros

#define ACCEL29_INT_ENABLE_DATA_READY   0x80
 Accel 29 INT_ENABLE register setting.
 
#define ACCEL29_INT_ENABLE_ACTIVITY   0x10
 
#define ACCEL29_INT_ENABLE_INACTIVITY   0x08
 
#define ACCEL29_INT_ENABLE_OVERRUN   0x01
 
#define ACCEL29_INT_MAP_DATA_READY_INT2   0x80
 Accel 29 INT_MAP register setting.
 
#define ACCEL29_INT_MAP_DATA_READY_INT1   0x00
 
#define ACCEL29_INT_MAP_DATA_READY_MASK   0x80
 
#define ACCEL29_INT_MAP_ACTIVITY_INT2   0x10
 
#define ACCEL29_INT_MAP_ACTIVITY_INT1   0x00
 
#define ACCEL29_INT_MAP_ACTIVITY_MASK   0x10
 
#define ACCEL29_INT_MAP_INACTIVITY_INT2   0x08
 
#define ACCEL29_INT_MAP_INACTIVITY_INT1   0x00
 
#define ACCEL29_INT_MAP_INACTIVITY_MASK   0x08
 
#define ACCEL29_INT_MAP_OVERRUN_INT2   0x01
 
#define ACCEL29_INT_MAP_OVERRUN_INT1   0x00
 
#define ACCEL29_INT_MAP_OVERRUN_MASK   0x01
 
#define ACCEL29_INT_SOURCE_DATA_READY   0x80
 Accel 29 INT_SOURCE register setting.
 
#define ACCEL29_INT_SOURCE_ACTIVITY   0x10
 
#define ACCEL29_INT_SOURCE_INACTIVITY   0x08
 
#define ACCEL29_INT_SOURCE_OVERRUN   0x01
 
#define ACCEL29_BW_RATE_LOW_POWER   0x10
 Accel 29 BW_RATE register setting.
 
#define ACCEL29_BW_RATE_6_25_HZ   0x06
 
#define ACCEL29_BW_RATE_12_5_HZ   0x07
 
#define ACCEL29_BW_RATE_25_HZ   0x08
 
#define ACCEL29_BW_RATE_50_HZ   0x09
 
#define ACCEL29_BW_RATE_100_HZ   0x0A
 
#define ACCEL29_BW_RATE_200_HZ   0x0B
 
#define ACCEL29_BW_RATE_400_HZ   0x0C
 
#define ACCEL29_BW_RATE_800_HZ   0x0D
 
#define ACCEL29_BW_RATE_1600_HZ   0x0E
 
#define ACCEL29_BW_RATE_3200_HZ   0x0F
 
#define ACCEL29_POWER_CTL_LINK   0x20
 Accel 29 POWER_CTL register setting.
 
#define ACCEL29_POWER_CTL_AUTO_SLEEP   0x10
 
#define ACCEL29_POWER_CTL_MEASURE   0x08
 
#define ACCEL29_POWER_CTL_SLEEP   0x04
 
#define ACCEL29_POWER_CTL_WAKEUP_8_HZ   0x00
 
#define ACCEL29_POWER_CTL_WAKEUP_4_HZ   0x01
 
#define ACCEL29_POWER_CTL_WAKEUP_2_HZ   0x02
 
#define ACCEL29_POWER_CTL_WAKEUP_1_HZ   0x03
 
#define ACCEL29_POWER_CTL_WAKEUP_MASK   0x03
 
#define ACCEL29_DEVID   0xE5
 Accel 29 device ID setting.
 
#define ACCEL29_OFS_RESET   0
 Accel 29 offset settings.
 
#define ACCEL29_OFS_SCALE_FACTOR_G_PER_LSB   0.195f
 
#define ACCEL29_SCALE_FACTOR_LSB_PER_G   20.48f
 Accel 29 data resolution settings.
 
#define ACCEL29_NUM_OF_SAMPLES   100
 Accel 29 number of data samples for averaging.
 
#define ACCEL29_SPI_RW_BIT   0x80
 Accel 29 communication frame setting.
 
#define ACCEL29_SPI_MB_BIT   0x40
 
#define ACCEL29_ADDRESS_MASK   0x3F
 
#define ACCEL29_DEVICE_ADDRESS_0   0x53
 Accel 29 device address setting.
 
#define ACCEL29_DEVICE_ADDRESS_1   0x1D
 
#define ACCEL29_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ACCEL29_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Accel 29 Click driver.

Macro Definition Documentation

◆ ACCEL29_ADDRESS_MASK

#define ACCEL29_ADDRESS_MASK   0x3F

◆ ACCEL29_BW_RATE_100_HZ

#define ACCEL29_BW_RATE_100_HZ   0x0A

◆ ACCEL29_BW_RATE_12_5_HZ

#define ACCEL29_BW_RATE_12_5_HZ   0x07

◆ ACCEL29_BW_RATE_1600_HZ

#define ACCEL29_BW_RATE_1600_HZ   0x0E

◆ ACCEL29_BW_RATE_200_HZ

#define ACCEL29_BW_RATE_200_HZ   0x0B

◆ ACCEL29_BW_RATE_25_HZ

#define ACCEL29_BW_RATE_25_HZ   0x08

◆ ACCEL29_BW_RATE_3200_HZ

#define ACCEL29_BW_RATE_3200_HZ   0x0F

◆ ACCEL29_BW_RATE_400_HZ

#define ACCEL29_BW_RATE_400_HZ   0x0C

◆ ACCEL29_BW_RATE_50_HZ

#define ACCEL29_BW_RATE_50_HZ   0x09

◆ ACCEL29_BW_RATE_6_25_HZ

#define ACCEL29_BW_RATE_6_25_HZ   0x06

◆ ACCEL29_BW_RATE_800_HZ

#define ACCEL29_BW_RATE_800_HZ   0x0D

◆ ACCEL29_BW_RATE_LOW_POWER

#define ACCEL29_BW_RATE_LOW_POWER   0x10

Accel 29 BW_RATE register setting.

Specified setting for BW_RATE register of Accel 29 Click driver.

◆ ACCEL29_DEVICE_ADDRESS_0

#define ACCEL29_DEVICE_ADDRESS_0   0x53

Accel 29 device address setting.

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

◆ ACCEL29_DEVICE_ADDRESS_1

#define ACCEL29_DEVICE_ADDRESS_1   0x1D

◆ ACCEL29_DEVID

#define ACCEL29_DEVID   0xE5

Accel 29 device ID setting.

Specified setting for device ID of Accel 29 Click driver.

◆ ACCEL29_INT_ENABLE_ACTIVITY

#define ACCEL29_INT_ENABLE_ACTIVITY   0x10

◆ ACCEL29_INT_ENABLE_DATA_READY

#define ACCEL29_INT_ENABLE_DATA_READY   0x80

Accel 29 INT_ENABLE register setting.

Specified setting for INT_ENABLE register of Accel 29 Click driver.

◆ ACCEL29_INT_ENABLE_INACTIVITY

#define ACCEL29_INT_ENABLE_INACTIVITY   0x08

◆ ACCEL29_INT_ENABLE_OVERRUN

#define ACCEL29_INT_ENABLE_OVERRUN   0x01

◆ ACCEL29_INT_MAP_ACTIVITY_INT1

#define ACCEL29_INT_MAP_ACTIVITY_INT1   0x00

◆ ACCEL29_INT_MAP_ACTIVITY_INT2

#define ACCEL29_INT_MAP_ACTIVITY_INT2   0x10

◆ ACCEL29_INT_MAP_ACTIVITY_MASK

#define ACCEL29_INT_MAP_ACTIVITY_MASK   0x10

◆ ACCEL29_INT_MAP_DATA_READY_INT1

#define ACCEL29_INT_MAP_DATA_READY_INT1   0x00

◆ ACCEL29_INT_MAP_DATA_READY_INT2

#define ACCEL29_INT_MAP_DATA_READY_INT2   0x80

Accel 29 INT_MAP register setting.

Specified setting for INT_MAP register of Accel 29 Click driver.

◆ ACCEL29_INT_MAP_DATA_READY_MASK

#define ACCEL29_INT_MAP_DATA_READY_MASK   0x80

◆ ACCEL29_INT_MAP_INACTIVITY_INT1

#define ACCEL29_INT_MAP_INACTIVITY_INT1   0x00

◆ ACCEL29_INT_MAP_INACTIVITY_INT2

#define ACCEL29_INT_MAP_INACTIVITY_INT2   0x08

◆ ACCEL29_INT_MAP_INACTIVITY_MASK

#define ACCEL29_INT_MAP_INACTIVITY_MASK   0x08

◆ ACCEL29_INT_MAP_OVERRUN_INT1

#define ACCEL29_INT_MAP_OVERRUN_INT1   0x00

◆ ACCEL29_INT_MAP_OVERRUN_INT2

#define ACCEL29_INT_MAP_OVERRUN_INT2   0x01

◆ ACCEL29_INT_MAP_OVERRUN_MASK

#define ACCEL29_INT_MAP_OVERRUN_MASK   0x01

◆ ACCEL29_INT_SOURCE_ACTIVITY

#define ACCEL29_INT_SOURCE_ACTIVITY   0x10

◆ ACCEL29_INT_SOURCE_DATA_READY

#define ACCEL29_INT_SOURCE_DATA_READY   0x80

Accel 29 INT_SOURCE register setting.

Specified setting for INT_SOURCE register of Accel 29 Click driver.

◆ ACCEL29_INT_SOURCE_INACTIVITY

#define ACCEL29_INT_SOURCE_INACTIVITY   0x08

◆ ACCEL29_INT_SOURCE_OVERRUN

#define ACCEL29_INT_SOURCE_OVERRUN   0x01

◆ ACCEL29_NUM_OF_SAMPLES

#define ACCEL29_NUM_OF_SAMPLES   100

Accel 29 number of data samples for averaging.

Specified number of data samples for averaging of Accel 29 Click driver.

◆ ACCEL29_OFS_RESET

#define ACCEL29_OFS_RESET   0

Accel 29 offset settings.

Specified offset settings of Accel 29 Click driver.

◆ ACCEL29_OFS_SCALE_FACTOR_G_PER_LSB

#define ACCEL29_OFS_SCALE_FACTOR_G_PER_LSB   0.195f

◆ ACCEL29_POWER_CTL_AUTO_SLEEP

#define ACCEL29_POWER_CTL_AUTO_SLEEP   0x10

◆ ACCEL29_POWER_CTL_LINK

#define ACCEL29_POWER_CTL_LINK   0x20

Accel 29 POWER_CTL register setting.

Specified setting for POWER_CTL register of Accel 29 Click driver.

◆ ACCEL29_POWER_CTL_MEASURE

#define ACCEL29_POWER_CTL_MEASURE   0x08

◆ ACCEL29_POWER_CTL_SLEEP

#define ACCEL29_POWER_CTL_SLEEP   0x04

◆ ACCEL29_POWER_CTL_WAKEUP_1_HZ

#define ACCEL29_POWER_CTL_WAKEUP_1_HZ   0x03

◆ ACCEL29_POWER_CTL_WAKEUP_2_HZ

#define ACCEL29_POWER_CTL_WAKEUP_2_HZ   0x02

◆ ACCEL29_POWER_CTL_WAKEUP_4_HZ

#define ACCEL29_POWER_CTL_WAKEUP_4_HZ   0x01

◆ ACCEL29_POWER_CTL_WAKEUP_8_HZ

#define ACCEL29_POWER_CTL_WAKEUP_8_HZ   0x00

◆ ACCEL29_POWER_CTL_WAKEUP_MASK

#define ACCEL29_POWER_CTL_WAKEUP_MASK   0x03

◆ ACCEL29_SCALE_FACTOR_LSB_PER_G

#define ACCEL29_SCALE_FACTOR_LSB_PER_G   20.48f

Accel 29 data resolution settings.

Specified data resolution settings of Accel 29 Click driver.

◆ ACCEL29_SET_DATA_SAMPLE_EDGE

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

◆ ACCEL29_SET_DATA_SAMPLE_MIDDLE

#define ACCEL29_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ ACCEL29_SPI_MB_BIT

#define ACCEL29_SPI_MB_BIT   0x40

◆ ACCEL29_SPI_RW_BIT

#define ACCEL29_SPI_RW_BIT   0x80

Accel 29 communication frame setting.

Specified setting for communication frame of Accel 29 Click driver.