magaccel 2.1.0.0
MagAccel Registers Settings

Settings for registers of MagAccel Click driver. More...

Macros

#define MAGACCEL_SRC_BOOT_COMPLETED   0x01
 MagAccel nominal sensitivity data values.
 
#define MAGACCEL_DEVICE_ID_VAL   0x86
 MagAccel device ID data values.
 
#define MAGACCEL_SW_RESET_BIT_MASK   0x80
 MagAccel SW reset bit mask data values.
 
#define MAGACCEL_OP_MODE_STANDBY   0x00
 MagAccel operating mode data values.
 
#define MAGACCEL_OP_MODE_ACTIVE   0x01
 
#define MAGACCEL_OP_MODE_BIT_MASK   0xFE
 
#define MAGACCEL_FSR_SEL_2G   0x00
 MagAccel full-scale measurement range (FSR) selection.
 
#define MAGACCEL_FSR_SEL_4G   0x01
 
#define MAGACCEL_FSR_SEL_8G   0x02
 
#define MAGACCEL_FSR_SEL_16G   0x03
 
#define MAGACCEL_FSR_SEL_BIT_MASK   0xF9
 
#define MAGACCEL_INT_EN_DRDY_DIS   0x00
 MagAccel data-ready interrupt output enable data values.
 
#define MAGACCEL_INT_EN_DRDY_EN   0x80
 
#define MAGACCEL_DATA_READY   0
 MagAccel data-ready and magnetic field detection data values.
 
#define MAGACCEL_DET_MAG_FIELD   0
 
#define MAGACCEL_FSR_SENS_VAL_2G   0.98f
 MagAccel nominal sensitivity data values.
 
#define MAGACCEL_FSR_SENS_VAL_4G   1.95f
 
#define MAGACCEL_FSR_SENS_VAL_8G   3.91f
 
#define MAGACCEL_FSR_SENS_VAL_16G   7.81f
 
#define MAGACCEL_DEVICE_ADDRESS   0x18
 MagAccel device address setting.
 

Detailed Description

Settings for registers of MagAccel Click driver.

Macro Definition Documentation

◆ MAGACCEL_DATA_READY

#define MAGACCEL_DATA_READY   0

MagAccel data-ready and magnetic field detection data values.

Data-ready and magnetic field detection data values of MagAccel Click driver.

◆ MAGACCEL_DET_MAG_FIELD

#define MAGACCEL_DET_MAG_FIELD   0

◆ MAGACCEL_DEVICE_ADDRESS

#define MAGACCEL_DEVICE_ADDRESS   0x18

MagAccel device address setting.

Specified setting for device slave address selection of MagAccel Click driver.

◆ MAGACCEL_DEVICE_ID_VAL

#define MAGACCEL_DEVICE_ID_VAL   0x86

MagAccel device ID data values.

Device ID data values of MagAccel Click driver.

◆ MAGACCEL_FSR_SEL_16G

#define MAGACCEL_FSR_SEL_16G   0x03

◆ MAGACCEL_FSR_SEL_2G

#define MAGACCEL_FSR_SEL_2G   0x00

MagAccel full-scale measurement range (FSR) selection.

Full-scale measurement range (FSR) selection of MagAccel Click driver.

◆ MAGACCEL_FSR_SEL_4G

#define MAGACCEL_FSR_SEL_4G   0x01

◆ MAGACCEL_FSR_SEL_8G

#define MAGACCEL_FSR_SEL_8G   0x02

◆ MAGACCEL_FSR_SEL_BIT_MASK

#define MAGACCEL_FSR_SEL_BIT_MASK   0xF9

◆ MAGACCEL_FSR_SENS_VAL_16G

#define MAGACCEL_FSR_SENS_VAL_16G   7.81f

◆ MAGACCEL_FSR_SENS_VAL_2G

#define MAGACCEL_FSR_SENS_VAL_2G   0.98f

MagAccel nominal sensitivity data values.

Nominal sensitivity data values of MagAccel Click driver.

◆ MAGACCEL_FSR_SENS_VAL_4G

#define MAGACCEL_FSR_SENS_VAL_4G   1.95f

◆ MAGACCEL_FSR_SENS_VAL_8G

#define MAGACCEL_FSR_SENS_VAL_8G   3.91f

◆ MAGACCEL_INT_EN_DRDY_DIS

#define MAGACCEL_INT_EN_DRDY_DIS   0x00

MagAccel data-ready interrupt output enable data values.

Data-ready interrupt output enable data values of MagAccel Click driver.

◆ MAGACCEL_INT_EN_DRDY_EN

#define MAGACCEL_INT_EN_DRDY_EN   0x80

◆ MAGACCEL_OP_MODE_ACTIVE

#define MAGACCEL_OP_MODE_ACTIVE   0x01

◆ MAGACCEL_OP_MODE_BIT_MASK

#define MAGACCEL_OP_MODE_BIT_MASK   0xFE

◆ MAGACCEL_OP_MODE_STANDBY

#define MAGACCEL_OP_MODE_STANDBY   0x00

MagAccel operating mode data values.

Operating mode data values of MagAccel Click driver.

◆ MAGACCEL_SRC_BOOT_COMPLETED

#define MAGACCEL_SRC_BOOT_COMPLETED   0x01

MagAccel nominal sensitivity data values.

Nominal sensitivity data values of MagAccel Click driver.

◆ MAGACCEL_SW_RESET_BIT_MASK

#define MAGACCEL_SW_RESET_BIT_MASK   0x80

MagAccel SW reset bit mask data values.

SW reset bit mask data values of MagAccel Click driver.