accel18 2.0.0.0
Accel 18 Registers Settings

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

Macros

#define ACCEL18_STATE_STANDBY   0x00
 Accel 18 state.
 
#define ACCEL18_STATE_WAKE   0x01
 
#define ACCEL18_INT_TILT_EN   0x01
 Accel 18 interrupt setting.
 
#define ACCEL18_INT_FLIP_EN   0x02
 
#define ACCEL18_INT_ANYM_EN   0x04
 
#define ACCEL18_INT_SHAKE_EN   0x08
 
#define ACCEL18_INT_TILT_35_EN   0x10
 
#define ACCEL18_INT_AUTO_CLR_EN   0x40
 
#define ACCEL18_INT_ACQ_EN   0x80
 
#define ACCEL18_RATE_25   0x10
 Accel 18 sample rate setting.
 
#define ACCEL18_RATE_50   0x11
 
#define ACCEL18_RATE_62p5   0x12
 
#define ACCEL18_RATE_100   0x13
 
#define ACCEL18_RATE_125   0x14
 
#define ACCEL18_RATE_250   0x15
 
#define ACCEL18_RATE_500   0x16
 
#define ACCEL18_RATE_1000   0x17
 
#define ACCEL18_FIFO_CTRL2_BURST_MODE   0x80
 Accel 18 fifo control 2 setting.
 
#define ACCEL18_FIFO_CTRL2_SELECT_WRAP_ADDR   0x20
 
#define ACCEL18_FIFO_CTRL2_ENABLE_WRAP_N   0x10
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DISABLE   0x00
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_2   0x01
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_4   0x02
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_5   0x03
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_8   0x04
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_10   0x05
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_16   0x06
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_20   0x07
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_40   0x08
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_67   0x09
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_80   0x0A
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_100   0x0B
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_200   0x0C
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_250   0x0D
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_500   0x0E
 
#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_1000   0x0F
 
#define ACCEL18_GPIO_CTRL_INT1_ACTIVE_LOW   0x00
 Accel 18 gpio control setting.
 
#define ACCEL18_GPIO_CTRL_INT1_ACTIVE_HIGH   0x04
 
#define ACCEL18_GPIO_CTRL_INT1_OPEN_DRAIN   0x00
 
#define ACCEL18_GPIO_CTRL_INT1_PUSH_PULL   0x08
 
#define ACCEL18_GPIO_CTRL_INT2_ACTIVE_LOW   0x00
 
#define ACCEL18_GPIO_CTRL_INT2_ACTIVE_HIGH   0x40
 
#define ACCEL18_GPIO_CTRL_INT2_OPEN_DRAIN   0x00
 
#define ACCEL18_GPIO_CTRL_INT2_PUSH_PULL   0x80
 
#define ACCEL18_MOTION_TF_EN   0x01
 Accel 18 motion setting.
 
#define ACCEL18_MOTION_LATCH   0x02
 
#define ACCEL18_MOTION_ANYM_EN   0x04
 
#define ACCEL18_MOTION_SHAKE_EN   0x08
 
#define ACCEL18_MOTION_TILT_35   0x10
 
#define ACCEL18_MOTION_Z_AXIS_ORT   0x20
 
#define ACCEL18_MOTION_RAW_PROC_STAT   0x40
 
#define ACCEL18_MOTION_RESET   0x80
 
#define ACCEL18_STATUS_TILT   0x01
 Accel 18 status.
 
#define ACCEL18_STATUS_FLIP   0x02
 
#define ACCEL18_STATUS_ANYM   0x04
 
#define ACCEL18_STATUS_SHAKE   0x08
 
#define ACCEL18_STATUS_TILT35   0x10
 
#define ACCEL18_STATUS_FIFO   0x20
 
#define ACCEL18_STATUS_NEW_DATA   0x80
 
#define ACCEL18_RANGE_2G   0x00
 Accel 18 range and scale setting.
 
#define ACCEL18_RANGE_4G   0x10
 
#define ACCEL18_RANGE_8G   0x20
 
#define ACCEL18_RANGE_16G   0x30
 
#define ACCEL18_RANGE_12G   0x40
 
#define ACCEL18_LOW_PASS_FILTER_EN   0x08
 
#define ACCEL18_LOW_PASS_FILTER_DIV4p255   0x01
 
#define ACCEL18_LOW_PASS_FILTER_DIV6   0x02
 
#define ACCEL18_LOW_PASS_FILTER_DIV12   0x03
 
#define ACCEL18_LOW_PASS_FILTER_DIV16   0x05
 
#define ACCEL18_GND_ADDR   0x4C
 Accel 18 device address setting.
 
#define ACCEL18_VCC_ADDR   0x6C
 
#define ACCEL18_SET_DEV_ADDR   ACCEL18_GND_ADDR
 
#define ACCEL18_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ACCEL18_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Accel 18 Click driver.

Macro Definition Documentation

◆ ACCEL18_FIFO_CTRL2_BURST_MODE

#define ACCEL18_FIFO_CTRL2_BURST_MODE   0x80

Accel 18 fifo control 2 setting.

Specified setting for fifo control 2 of Accel 18 Click driver.

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DISABLE

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DISABLE   0x00

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_10

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_10   0x05

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_100

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_100   0x0B

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_1000

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_1000   0x0F

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_16

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_16   0x06

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_2

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_2   0x01

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_20

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_20   0x07

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_200

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_200   0x0C

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_250

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_250   0x0D

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_4

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_4   0x02

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_40

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_40   0x08

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_5

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_5   0x03

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_500

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_500   0x0E

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_67

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_67   0x09

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_8

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_8   0x04

◆ ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_80

#define ACCEL18_FIFO_CTRL2_DEC_MODE_RATE_DIV_80   0x0A

◆ ACCEL18_FIFO_CTRL2_ENABLE_WRAP_N

#define ACCEL18_FIFO_CTRL2_ENABLE_WRAP_N   0x10

◆ ACCEL18_FIFO_CTRL2_SELECT_WRAP_ADDR

#define ACCEL18_FIFO_CTRL2_SELECT_WRAP_ADDR   0x20

◆ ACCEL18_GND_ADDR

#define ACCEL18_GND_ADDR   0x4C

Accel 18 device address setting.

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

◆ ACCEL18_GPIO_CTRL_INT1_ACTIVE_HIGH

#define ACCEL18_GPIO_CTRL_INT1_ACTIVE_HIGH   0x04

◆ ACCEL18_GPIO_CTRL_INT1_ACTIVE_LOW

#define ACCEL18_GPIO_CTRL_INT1_ACTIVE_LOW   0x00

Accel 18 gpio control setting.

Specified setting for gpio control of Accel 18 Click driver.

◆ ACCEL18_GPIO_CTRL_INT1_OPEN_DRAIN

#define ACCEL18_GPIO_CTRL_INT1_OPEN_DRAIN   0x00

◆ ACCEL18_GPIO_CTRL_INT1_PUSH_PULL

#define ACCEL18_GPIO_CTRL_INT1_PUSH_PULL   0x08

◆ ACCEL18_GPIO_CTRL_INT2_ACTIVE_HIGH

#define ACCEL18_GPIO_CTRL_INT2_ACTIVE_HIGH   0x40

◆ ACCEL18_GPIO_CTRL_INT2_ACTIVE_LOW

#define ACCEL18_GPIO_CTRL_INT2_ACTIVE_LOW   0x00

◆ ACCEL18_GPIO_CTRL_INT2_OPEN_DRAIN

#define ACCEL18_GPIO_CTRL_INT2_OPEN_DRAIN   0x00

◆ ACCEL18_GPIO_CTRL_INT2_PUSH_PULL

#define ACCEL18_GPIO_CTRL_INT2_PUSH_PULL   0x80

◆ ACCEL18_INT_ACQ_EN

#define ACCEL18_INT_ACQ_EN   0x80

◆ ACCEL18_INT_ANYM_EN

#define ACCEL18_INT_ANYM_EN   0x04

◆ ACCEL18_INT_AUTO_CLR_EN

#define ACCEL18_INT_AUTO_CLR_EN   0x40

◆ ACCEL18_INT_FLIP_EN

#define ACCEL18_INT_FLIP_EN   0x02

◆ ACCEL18_INT_SHAKE_EN

#define ACCEL18_INT_SHAKE_EN   0x08

◆ ACCEL18_INT_TILT_35_EN

#define ACCEL18_INT_TILT_35_EN   0x10

◆ ACCEL18_INT_TILT_EN

#define ACCEL18_INT_TILT_EN   0x01

Accel 18 interrupt setting.

Specified setting for interrupt of Accel 18 Click driver.

◆ ACCEL18_LOW_PASS_FILTER_DIV12

#define ACCEL18_LOW_PASS_FILTER_DIV12   0x03

◆ ACCEL18_LOW_PASS_FILTER_DIV16

#define ACCEL18_LOW_PASS_FILTER_DIV16   0x05

◆ ACCEL18_LOW_PASS_FILTER_DIV4p255

#define ACCEL18_LOW_PASS_FILTER_DIV4p255   0x01

◆ ACCEL18_LOW_PASS_FILTER_DIV6

#define ACCEL18_LOW_PASS_FILTER_DIV6   0x02

◆ ACCEL18_LOW_PASS_FILTER_EN

#define ACCEL18_LOW_PASS_FILTER_EN   0x08

◆ ACCEL18_MOTION_ANYM_EN

#define ACCEL18_MOTION_ANYM_EN   0x04

◆ ACCEL18_MOTION_LATCH

#define ACCEL18_MOTION_LATCH   0x02

◆ ACCEL18_MOTION_RAW_PROC_STAT

#define ACCEL18_MOTION_RAW_PROC_STAT   0x40

◆ ACCEL18_MOTION_RESET

#define ACCEL18_MOTION_RESET   0x80

◆ ACCEL18_MOTION_SHAKE_EN

#define ACCEL18_MOTION_SHAKE_EN   0x08

◆ ACCEL18_MOTION_TF_EN

#define ACCEL18_MOTION_TF_EN   0x01

Accel 18 motion setting.

Specified setting for motion of Accel 18 Click driver.

◆ ACCEL18_MOTION_TILT_35

#define ACCEL18_MOTION_TILT_35   0x10

◆ ACCEL18_MOTION_Z_AXIS_ORT

#define ACCEL18_MOTION_Z_AXIS_ORT   0x20

◆ ACCEL18_RANGE_12G

#define ACCEL18_RANGE_12G   0x40

◆ ACCEL18_RANGE_16G

#define ACCEL18_RANGE_16G   0x30

◆ ACCEL18_RANGE_2G

#define ACCEL18_RANGE_2G   0x00

Accel 18 range and scale setting.

Specified setting for range and scale of Accel 18 Click driver.

◆ ACCEL18_RANGE_4G

#define ACCEL18_RANGE_4G   0x10

◆ ACCEL18_RANGE_8G

#define ACCEL18_RANGE_8G   0x20

◆ ACCEL18_RATE_100

#define ACCEL18_RATE_100   0x13

◆ ACCEL18_RATE_1000

#define ACCEL18_RATE_1000   0x17

◆ ACCEL18_RATE_125

#define ACCEL18_RATE_125   0x14

◆ ACCEL18_RATE_25

#define ACCEL18_RATE_25   0x10

Accel 18 sample rate setting.

Specified setting for sample rate of Accel 18 Click driver.

◆ ACCEL18_RATE_250

#define ACCEL18_RATE_250   0x15

◆ ACCEL18_RATE_50

#define ACCEL18_RATE_50   0x11

◆ ACCEL18_RATE_500

#define ACCEL18_RATE_500   0x16

◆ ACCEL18_RATE_62p5

#define ACCEL18_RATE_62p5   0x12

◆ ACCEL18_SET_DATA_SAMPLE_EDGE

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

◆ ACCEL18_SET_DATA_SAMPLE_MIDDLE

#define ACCEL18_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ ACCEL18_SET_DEV_ADDR

#define ACCEL18_SET_DEV_ADDR   ACCEL18_GND_ADDR

◆ ACCEL18_STATE_STANDBY

#define ACCEL18_STATE_STANDBY   0x00

Accel 18 state.

Specified setting for state of Accel 18 Click driver.

◆ ACCEL18_STATE_WAKE

#define ACCEL18_STATE_WAKE   0x01

◆ ACCEL18_STATUS_ANYM

#define ACCEL18_STATUS_ANYM   0x04

◆ ACCEL18_STATUS_FIFO

#define ACCEL18_STATUS_FIFO   0x20

◆ ACCEL18_STATUS_FLIP

#define ACCEL18_STATUS_FLIP   0x02

◆ ACCEL18_STATUS_NEW_DATA

#define ACCEL18_STATUS_NEW_DATA   0x80

◆ ACCEL18_STATUS_SHAKE

#define ACCEL18_STATUS_SHAKE   0x08

◆ ACCEL18_STATUS_TILT

#define ACCEL18_STATUS_TILT   0x01

Accel 18 status.

Specified status for Accel 18 Click driver.

◆ ACCEL18_STATUS_TILT35

#define ACCEL18_STATUS_TILT35   0x10

◆ ACCEL18_VCC_ADDR

#define ACCEL18_VCC_ADDR   0x6C