inclinometer2 2.0.0.0
Inclinometer 2 Registers Settings

Settings for registers of Inclinometer 2 Click driver. More...

Macros

#define INCLINOMETER2_INT1_CTRL_DEN_DRDY   0x80
 Inclinometer 2 INT1_CTRL register settings.
 
#define INCLINOMETER2_INT1_CTRL_CNT_BDR   0x40
 
#define INCLINOMETER2_INT1_CTRL_FIFO_FULL   0x20
 
#define INCLINOMETER2_INT1_CTRL_FIFO_OVR   0x10
 
#define INCLINOMETER2_INT1_CTRL_FIFO_TH   0x08
 
#define INCLINOMETER2_INT1_CTRL_BOOT   0x04
 
#define INCLINOMETER2_INT1_CTRL_DRDY_XL   0x01
 
#define INCLINOMETER2_STATUS_TEMP_DRDY   0x04
 Inclinometer 2 STATUS register values.
 
#define INCLINOMETER2_STATUS_ACCEL_DRDY   0x01
 
#define INCLINOMETER2_ACCEL_FSR_0p5G_RES   0.015f
 Inclinometer 2 calculation values.
 
#define INCLINOMETER2_ACCEL_FSR_1G_RES   0.031f
 
#define INCLINOMETER2_ACCEL_FSR_2G_RES   0.061f
 
#define INCLINOMETER2_ACCEL_FSR_3G_RES   0.122f
 
#define INCLINOMETER2_ROOM_TEMP   25.0f
 
#define INCLINOMETER2_TEMP_SENS   256.0f
 
#define INCLINOMETER2_WHO_AM_I   0x6B
 Inclinometer 2 WHO_AM_I register value.
 
#define INCLINOMETER2_DEVICE_ADDRESS_0   0x6A
 Inclinometer 2 device address setting.
 
#define INCLINOMETER2_DEVICE_ADDRESS_1   0x6B
 
#define INCLINOMETER2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define INCLINOMETER2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Inclinometer 2 Click driver.

Macro Definition Documentation

◆ INCLINOMETER2_ACCEL_FSR_0p5G_RES

#define INCLINOMETER2_ACCEL_FSR_0p5G_RES   0.015f

Inclinometer 2 calculation values.

Specified calculation values of Inclinometer 2 Click driver.

◆ INCLINOMETER2_ACCEL_FSR_1G_RES

#define INCLINOMETER2_ACCEL_FSR_1G_RES   0.031f

◆ INCLINOMETER2_ACCEL_FSR_2G_RES

#define INCLINOMETER2_ACCEL_FSR_2G_RES   0.061f

◆ INCLINOMETER2_ACCEL_FSR_3G_RES

#define INCLINOMETER2_ACCEL_FSR_3G_RES   0.122f

◆ INCLINOMETER2_DEVICE_ADDRESS_0

#define INCLINOMETER2_DEVICE_ADDRESS_0   0x6A

Inclinometer 2 device address setting.

Specified setting for device slave address selection of Inclinometer 2 Click driver.

◆ INCLINOMETER2_DEVICE_ADDRESS_1

#define INCLINOMETER2_DEVICE_ADDRESS_1   0x6B

◆ INCLINOMETER2_INT1_CTRL_BOOT

#define INCLINOMETER2_INT1_CTRL_BOOT   0x04

◆ INCLINOMETER2_INT1_CTRL_CNT_BDR

#define INCLINOMETER2_INT1_CTRL_CNT_BDR   0x40

◆ INCLINOMETER2_INT1_CTRL_DEN_DRDY

#define INCLINOMETER2_INT1_CTRL_DEN_DRDY   0x80

Inclinometer 2 INT1_CTRL register settings.

Specified INT1_CTRL register settings of Inclinometer 2 Click driver.

◆ INCLINOMETER2_INT1_CTRL_DRDY_XL

#define INCLINOMETER2_INT1_CTRL_DRDY_XL   0x01

◆ INCLINOMETER2_INT1_CTRL_FIFO_FULL

#define INCLINOMETER2_INT1_CTRL_FIFO_FULL   0x20

◆ INCLINOMETER2_INT1_CTRL_FIFO_OVR

#define INCLINOMETER2_INT1_CTRL_FIFO_OVR   0x10

◆ INCLINOMETER2_INT1_CTRL_FIFO_TH

#define INCLINOMETER2_INT1_CTRL_FIFO_TH   0x08

◆ INCLINOMETER2_ROOM_TEMP

#define INCLINOMETER2_ROOM_TEMP   25.0f

◆ INCLINOMETER2_SET_DATA_SAMPLE_EDGE

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

◆ INCLINOMETER2_SET_DATA_SAMPLE_MIDDLE

#define INCLINOMETER2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ INCLINOMETER2_STATUS_ACCEL_DRDY

#define INCLINOMETER2_STATUS_ACCEL_DRDY   0x01

◆ INCLINOMETER2_STATUS_TEMP_DRDY

#define INCLINOMETER2_STATUS_TEMP_DRDY   0x04

Inclinometer 2 STATUS register values.

Specified STATUS register values of Inclinometer 2 Click driver.

◆ INCLINOMETER2_TEMP_SENS

#define INCLINOMETER2_TEMP_SENS   256.0f

◆ INCLINOMETER2_WHO_AM_I

#define INCLINOMETER2_WHO_AM_I   0x6B

Inclinometer 2 WHO_AM_I register value.

Specified WHO_AM_I register value of Inclinometer 2 Click driver.