accel27 2.1.0.0
Accel 27 Registers Settings

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

Macros

#define ACCEL27_INT_MAP_INT_LOW   0x80
 Accel 27 INT_MAP register settings.
 
#define ACCEL27_INT_MAP_AWAKE   0x40
 
#define ACCEL27_INT_MAP_ACT   0x20
 
#define ACCEL27_INT_MAP_INACT   0x10
 
#define ACCEL27_INT_MAP_DATA_RDY   0x01
 
#define ACCEL27_TIMING_ODR_320HZ   0x00
 Accel 27 TIMING register settings.
 
#define ACCEL27_TIMING_ODR_640HZ   0x20
 
#define ACCEL27_TIMING_ODR_1280HZ   0x40
 
#define ACCEL27_TIMING_ODR_25600HZ   0x60
 
#define ACCEL27_TIMING_ODR_5120HZ   0x80
 
#define ACCEL27_TIMING_ODR_MASK   0xE0
 
#define ACCEL27_TIMING_WAKEUP_RATE_65_MS   0x00
 
#define ACCEL27_TIMING_WAKEUP_RATE_130_MS   0x04
 
#define ACCEL27_TIMING_WAKEUP_RATE_260_MS   0x08
 
#define ACCEL27_TIMING_WAKEUP_RATE_640_MS   0x0C
 
#define ACCEL27_TIMING_WAKEUP_RATE_2560_MS   0x10
 
#define ACCEL27_TIMING_WAKEUP_RATE_5120_MS   0x14
 
#define ACCEL27_TIMING_WAKEUP_RATE_10240_MS   0x18
 
#define ACCEL27_TIMING_WAKEUP_RATE_30720_MS   0x1C
 
#define ACCEL27_TIMING_WAKEUP_RATE_MASK   0x1C
 
#define ACCEL27_TIMING_EXT_CLK   0x02
 
#define ACCEL27_TIMING_EXT_SYNC   0x01
 
#define ACCEL27_POWER_CTL_I2C_HSM_EN   0x80
 Accel 27 POWER_CTL register settings.
 
#define ACCEL27_POWER_CTL_INSTANT_ON_THRESH   0x20
 
#define ACCEL27_POWER_CTL_FLT_SETL_462_5_MS   0x00
 
#define ACCEL27_POWER_CTL_FLT_SETL_4_OF_ODR   0x10
 
#define ACCEL27_POWER_CTL_FLT_SETL_MASK   0x10
 
#define ACCEL27_POWER_CTL_LPF_DISABLE   0x08
 
#define ACCEL27_POWER_CTL_HPF_DISABLE   0x04
 
#define ACCEL27_POWER_CTL_MODE_STANDBY   0x00
 
#define ACCEL27_POWER_CTL_MODE_WAKE_UP   0x01
 
#define ACCEL27_POWER_CTL_MODE_INSTANT_ON   0x02
 
#define ACCEL27_POWER_CTL_MODE_MEASUREMENT   0x03
 
#define ACCEL27_POWER_CTL_MODE_MASK   0x03
 
#define ACCEL27_RESET   0x52
 Accel 27 RESET register settings.
 
#define ACCEL27_DEVID_AD   0xAD
 Accel 27 device ID setting.
 
#define ACCEL27_DEVID_MST   0x1D
 
#define ACCEL27_DEVID_PRODUCT   0xFA
 
#define ACCEL27_SCALE_FACTOR_LSB_PER_G   5.0f
 Accel 27 data resolution settings.
 
#define ACCEL27_DEVICE_ADDRESS_0   0x1D
 Accel 27 device address setting.
 
#define ACCEL27_DEVICE_ADDRESS_1   0x53
 
#define ACCEL27_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ACCEL27_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Accel 27 Click driver.

Macro Definition Documentation

◆ ACCEL27_DEVICE_ADDRESS_0

#define ACCEL27_DEVICE_ADDRESS_0   0x1D

Accel 27 device address setting.

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

◆ ACCEL27_DEVICE_ADDRESS_1

#define ACCEL27_DEVICE_ADDRESS_1   0x53

◆ ACCEL27_DEVID_AD

#define ACCEL27_DEVID_AD   0xAD

Accel 27 device ID setting.

Specified setting for device ID of Accel 27 Click driver.

◆ ACCEL27_DEVID_MST

#define ACCEL27_DEVID_MST   0x1D

◆ ACCEL27_DEVID_PRODUCT

#define ACCEL27_DEVID_PRODUCT   0xFA

◆ ACCEL27_INT_MAP_ACT

#define ACCEL27_INT_MAP_ACT   0x20

◆ ACCEL27_INT_MAP_AWAKE

#define ACCEL27_INT_MAP_AWAKE   0x40

◆ ACCEL27_INT_MAP_DATA_RDY

#define ACCEL27_INT_MAP_DATA_RDY   0x01

◆ ACCEL27_INT_MAP_INACT

#define ACCEL27_INT_MAP_INACT   0x10

◆ ACCEL27_INT_MAP_INT_LOW

#define ACCEL27_INT_MAP_INT_LOW   0x80

Accel 27 INT_MAP register settings.

Specified INT_MAP register settings of Accel 27 Click driver.

◆ ACCEL27_POWER_CTL_FLT_SETL_462_5_MS

#define ACCEL27_POWER_CTL_FLT_SETL_462_5_MS   0x00

◆ ACCEL27_POWER_CTL_FLT_SETL_4_OF_ODR

#define ACCEL27_POWER_CTL_FLT_SETL_4_OF_ODR   0x10

◆ ACCEL27_POWER_CTL_FLT_SETL_MASK

#define ACCEL27_POWER_CTL_FLT_SETL_MASK   0x10

◆ ACCEL27_POWER_CTL_HPF_DISABLE

#define ACCEL27_POWER_CTL_HPF_DISABLE   0x04

◆ ACCEL27_POWER_CTL_I2C_HSM_EN

#define ACCEL27_POWER_CTL_I2C_HSM_EN   0x80

Accel 27 POWER_CTL register settings.

Specified POWER_CTL register settings of Accel 27 Click driver.

◆ ACCEL27_POWER_CTL_INSTANT_ON_THRESH

#define ACCEL27_POWER_CTL_INSTANT_ON_THRESH   0x20

◆ ACCEL27_POWER_CTL_LPF_DISABLE

#define ACCEL27_POWER_CTL_LPF_DISABLE   0x08

◆ ACCEL27_POWER_CTL_MODE_INSTANT_ON

#define ACCEL27_POWER_CTL_MODE_INSTANT_ON   0x02

◆ ACCEL27_POWER_CTL_MODE_MASK

#define ACCEL27_POWER_CTL_MODE_MASK   0x03

◆ ACCEL27_POWER_CTL_MODE_MEASUREMENT

#define ACCEL27_POWER_CTL_MODE_MEASUREMENT   0x03

◆ ACCEL27_POWER_CTL_MODE_STANDBY

#define ACCEL27_POWER_CTL_MODE_STANDBY   0x00

◆ ACCEL27_POWER_CTL_MODE_WAKE_UP

#define ACCEL27_POWER_CTL_MODE_WAKE_UP   0x01

◆ ACCEL27_RESET

#define ACCEL27_RESET   0x52

Accel 27 RESET register settings.

Specified RESET register settings of Accel 27 Click driver.

◆ ACCEL27_SCALE_FACTOR_LSB_PER_G

#define ACCEL27_SCALE_FACTOR_LSB_PER_G   5.0f

Accel 27 data resolution settings.

Specified data resolution settings of Accel 27 Click driver.

◆ ACCEL27_SET_DATA_SAMPLE_EDGE

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

◆ ACCEL27_SET_DATA_SAMPLE_MIDDLE

#define ACCEL27_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ ACCEL27_TIMING_EXT_CLK

#define ACCEL27_TIMING_EXT_CLK   0x02

◆ ACCEL27_TIMING_EXT_SYNC

#define ACCEL27_TIMING_EXT_SYNC   0x01

◆ ACCEL27_TIMING_ODR_1280HZ

#define ACCEL27_TIMING_ODR_1280HZ   0x40

◆ ACCEL27_TIMING_ODR_25600HZ

#define ACCEL27_TIMING_ODR_25600HZ   0x60

◆ ACCEL27_TIMING_ODR_320HZ

#define ACCEL27_TIMING_ODR_320HZ   0x00

Accel 27 TIMING register settings.

Specified TIMING register settings of Accel 27 Click driver.

◆ ACCEL27_TIMING_ODR_5120HZ

#define ACCEL27_TIMING_ODR_5120HZ   0x80

◆ ACCEL27_TIMING_ODR_640HZ

#define ACCEL27_TIMING_ODR_640HZ   0x20

◆ ACCEL27_TIMING_ODR_MASK

#define ACCEL27_TIMING_ODR_MASK   0xE0

◆ ACCEL27_TIMING_WAKEUP_RATE_10240_MS

#define ACCEL27_TIMING_WAKEUP_RATE_10240_MS   0x18

◆ ACCEL27_TIMING_WAKEUP_RATE_130_MS

#define ACCEL27_TIMING_WAKEUP_RATE_130_MS   0x04

◆ ACCEL27_TIMING_WAKEUP_RATE_2560_MS

#define ACCEL27_TIMING_WAKEUP_RATE_2560_MS   0x10

◆ ACCEL27_TIMING_WAKEUP_RATE_260_MS

#define ACCEL27_TIMING_WAKEUP_RATE_260_MS   0x08

◆ ACCEL27_TIMING_WAKEUP_RATE_30720_MS

#define ACCEL27_TIMING_WAKEUP_RATE_30720_MS   0x1C

◆ ACCEL27_TIMING_WAKEUP_RATE_5120_MS

#define ACCEL27_TIMING_WAKEUP_RATE_5120_MS   0x14

◆ ACCEL27_TIMING_WAKEUP_RATE_640_MS

#define ACCEL27_TIMING_WAKEUP_RATE_640_MS   0x0C

◆ ACCEL27_TIMING_WAKEUP_RATE_65_MS

#define ACCEL27_TIMING_WAKEUP_RATE_65_MS   0x00

◆ ACCEL27_TIMING_WAKEUP_RATE_MASK

#define ACCEL27_TIMING_WAKEUP_RATE_MASK   0x1C