compass7 2.0.0.0
Compass 7 Registers Settings

Settings for registers of Compass 7 Click driver. More...

Macros

#define COMPASS7_STATUS1_MEAS_T_DONE   0x80
 Compass 7 status 1 register settings.
 
#define COMPASS7_STATUS1_MEAS_M_DONE   0x40
 
#define COMPASS7_STATUS1_SAT_SENSOR   0x20
 
#define COMPASS7_STATUS1_OTP_READ_DONE   0x10
 
#define COMPASS7_STATUS1_ST_FAIL   0x08
 
#define COMPASS7_STATUS1_MDT_FLAG_INT   0x04
 
#define COMPASS7_STATUS1_MEAS_T_DONE_INT   0x02
 
#define COMPASS7_STATUS1_MEAS_M_DONE_INT   0x01
 
#define COMPASS7_CONTROL0_CMM_FREQ_EN   0x80
 Compass 7 internal control 0 register settings.
 
#define COMPASS7_CONTROL0_AUTO_ST_EN   0x40
 
#define COMPASS7_CONTROL0_AUTO_SR_EN   0x20
 
#define COMPASS7_CONTROL0_DO_RESET   0x10
 
#define COMPASS7_CONTROL0_DO_SET   0x08
 
#define COMPASS7_CONTROL0_START_MDT   0x04
 
#define COMPASS7_CONTROL0_TAKE_MEAS_T   0x02
 
#define COMPASS7_CONTROL0_TAKE_MEAS_M   0x01
 
#define COMPASS7_CONTROL1_SW_RESET   0x80
 Compass 7 internal control 1 register settings.
 
#define COMPASS7_CONTROL1_ST_ENM   0x40
 
#define COMPASS7_CONTROL1_ST_ENP   0x20
 
#define COMPASS7_CONTROL1_Z_INHIBIT   0x10
 
#define COMPASS7_CONTROL1_Y_INHIBIT   0x08
 
#define COMPASS7_CONTROL1_X_INHIBIT   0x04
 
#define COMPASS7_CONTROL1_BW_6p6MS   0x00
 
#define COMPASS7_CONTROL1_BW_3p5MS   0x01
 
#define COMPASS7_CONTROL1_BW_2p0MS   0x02
 
#define COMPASS7_CONTROL1_BW_1p2MS   0x03
 
#define COMPASS7_CONTROL1_BW_BIT_MASK   0x03
 
#define COMPASS7_CONTROL2_HPOWER   0x80
 Compass 7 internal control 2 register settings.
 
#define COMPASS7_CONTROL2_INT_MEAS_DONE_EN   0x40
 
#define COMPASS7_CONTROL2_INT_MDT_EN   0x20
 
#define COMPASS7_CONTROL2_CMM_EN   0x10
 
#define COMPASS7_CONTROL2_EN_PRD_SET   0x08
 
#define COMPASS7_CONTROL2_PRD_SET_1_SMPL   0x00
 
#define COMPASS7_CONTROL2_PRD_SET_25_SMPL   0x01
 
#define COMPASS7_CONTROL2_PRD_SET_75_SMPL   0x02
 
#define COMPASS7_CONTROL2_PRD_SET_100_SMPL   0x03
 
#define COMPASS7_CONTROL2_PRD_SET_250_SMPL   0x04
 
#define COMPASS7_CONTROL2_PRD_SET_500_SMPL   0x05
 
#define COMPASS7_CONTROL2_PRD_SET_1000_SMPL   0x06
 
#define COMPASS7_CONTROL2_PRD_SET_2000_SMPL   0x07
 
#define COMPASS7_CONTROL2_PRD_SET_BIT_MASK   0x07
 
#define COMPASS7_ODR_DISABLE   0
 Compass 7 ODR register settings.
 
#define COMPASS7_ODR_1HZ   1
 
#define COMPASS7_ODR_2HZ   2
 
#define COMPASS7_ODR_5HZ   5
 
#define COMPASS7_ODR_10HZ   10
 
#define COMPASS7_ODR_25HZ   25
 
#define COMPASS7_ODR_50HZ   50
 
#define COMPASS7_ODR_100HZ   100
 
#define COMPASS7_MAGNETIC_OFFSET   0x080000l
 Compass 7 data calculation values.
 
#define COMPASS7_MAGNETIC_RESOLUTION   0.0625
 
#define COMPASS7_MILLIGAUSS_TO_GAUSS   0.001
 
#define COMPASS7_TEMPERATURE_OFFSET   75
 
#define COMPASS7_TEMPERATURE_RESOLUTION   0.8
 
#define COMPASS7_TIMEOUT   2000
 
#define COMPASS7_MEAS_SINGLE_T   0
 Compass 7 measurement mode settings.
 
#define COMPASS7_MEAS_SINGLE_M   1
 
#define COMPASS7_MEAS_CONTINUOUS_M_1HZ   2
 
#define COMPASS7_MEAS_CONTINUOUS_M_2HZ   3
 
#define COMPASS7_MEAS_CONTINUOUS_M_5HZ   4
 
#define COMPASS7_MEAS_CONTINUOUS_M_10HZ   5
 
#define COMPASS7_MEAS_CONTINUOUS_M_25HZ   6
 
#define COMPASS7_MEAS_CONTINUOUS_M_50HZ   7
 
#define COMPASS7_MEAS_CONTINUOUS_M_100HZ   8
 
#define COMPASS7_PRODUCT_ID   0x10
 Compass 7 product ID value.
 
#define COMPASS7_DEVICE_ADDRESS   0x30
 Compass 7 device address setting.
 

Detailed Description

Settings for registers of Compass 7 Click driver.

Macro Definition Documentation

◆ COMPASS7_CONTROL0_AUTO_SR_EN

#define COMPASS7_CONTROL0_AUTO_SR_EN   0x20

◆ COMPASS7_CONTROL0_AUTO_ST_EN

#define COMPASS7_CONTROL0_AUTO_ST_EN   0x40

◆ COMPASS7_CONTROL0_CMM_FREQ_EN

#define COMPASS7_CONTROL0_CMM_FREQ_EN   0x80

Compass 7 internal control 0 register settings.

Specified internal control 0 register settings of Compass 7 Click driver.

◆ COMPASS7_CONTROL0_DO_RESET

#define COMPASS7_CONTROL0_DO_RESET   0x10

◆ COMPASS7_CONTROL0_DO_SET

#define COMPASS7_CONTROL0_DO_SET   0x08

◆ COMPASS7_CONTROL0_START_MDT

#define COMPASS7_CONTROL0_START_MDT   0x04

◆ COMPASS7_CONTROL0_TAKE_MEAS_M

#define COMPASS7_CONTROL0_TAKE_MEAS_M   0x01

◆ COMPASS7_CONTROL0_TAKE_MEAS_T

#define COMPASS7_CONTROL0_TAKE_MEAS_T   0x02

◆ COMPASS7_CONTROL1_BW_1p2MS

#define COMPASS7_CONTROL1_BW_1p2MS   0x03

◆ COMPASS7_CONTROL1_BW_2p0MS

#define COMPASS7_CONTROL1_BW_2p0MS   0x02

◆ COMPASS7_CONTROL1_BW_3p5MS

#define COMPASS7_CONTROL1_BW_3p5MS   0x01

◆ COMPASS7_CONTROL1_BW_6p6MS

#define COMPASS7_CONTROL1_BW_6p6MS   0x00

◆ COMPASS7_CONTROL1_BW_BIT_MASK

#define COMPASS7_CONTROL1_BW_BIT_MASK   0x03

◆ COMPASS7_CONTROL1_ST_ENM

#define COMPASS7_CONTROL1_ST_ENM   0x40

◆ COMPASS7_CONTROL1_ST_ENP

#define COMPASS7_CONTROL1_ST_ENP   0x20

◆ COMPASS7_CONTROL1_SW_RESET

#define COMPASS7_CONTROL1_SW_RESET   0x80

Compass 7 internal control 1 register settings.

Specified internal control 1 register settings of Compass 7 Click driver.

◆ COMPASS7_CONTROL1_X_INHIBIT

#define COMPASS7_CONTROL1_X_INHIBIT   0x04

◆ COMPASS7_CONTROL1_Y_INHIBIT

#define COMPASS7_CONTROL1_Y_INHIBIT   0x08

◆ COMPASS7_CONTROL1_Z_INHIBIT

#define COMPASS7_CONTROL1_Z_INHIBIT   0x10

◆ COMPASS7_CONTROL2_CMM_EN

#define COMPASS7_CONTROL2_CMM_EN   0x10

◆ COMPASS7_CONTROL2_EN_PRD_SET

#define COMPASS7_CONTROL2_EN_PRD_SET   0x08

◆ COMPASS7_CONTROL2_HPOWER

#define COMPASS7_CONTROL2_HPOWER   0x80

Compass 7 internal control 2 register settings.

Specified internal control 2 register settings of Compass 7 Click driver.

◆ COMPASS7_CONTROL2_INT_MDT_EN

#define COMPASS7_CONTROL2_INT_MDT_EN   0x20

◆ COMPASS7_CONTROL2_INT_MEAS_DONE_EN

#define COMPASS7_CONTROL2_INT_MEAS_DONE_EN   0x40

◆ COMPASS7_CONTROL2_PRD_SET_1000_SMPL

#define COMPASS7_CONTROL2_PRD_SET_1000_SMPL   0x06

◆ COMPASS7_CONTROL2_PRD_SET_100_SMPL

#define COMPASS7_CONTROL2_PRD_SET_100_SMPL   0x03

◆ COMPASS7_CONTROL2_PRD_SET_1_SMPL

#define COMPASS7_CONTROL2_PRD_SET_1_SMPL   0x00

◆ COMPASS7_CONTROL2_PRD_SET_2000_SMPL

#define COMPASS7_CONTROL2_PRD_SET_2000_SMPL   0x07

◆ COMPASS7_CONTROL2_PRD_SET_250_SMPL

#define COMPASS7_CONTROL2_PRD_SET_250_SMPL   0x04

◆ COMPASS7_CONTROL2_PRD_SET_25_SMPL

#define COMPASS7_CONTROL2_PRD_SET_25_SMPL   0x01

◆ COMPASS7_CONTROL2_PRD_SET_500_SMPL

#define COMPASS7_CONTROL2_PRD_SET_500_SMPL   0x05

◆ COMPASS7_CONTROL2_PRD_SET_75_SMPL

#define COMPASS7_CONTROL2_PRD_SET_75_SMPL   0x02

◆ COMPASS7_CONTROL2_PRD_SET_BIT_MASK

#define COMPASS7_CONTROL2_PRD_SET_BIT_MASK   0x07

◆ COMPASS7_DEVICE_ADDRESS

#define COMPASS7_DEVICE_ADDRESS   0x30

Compass 7 device address setting.

Specified setting for device slave address selection of Compass 7 Click driver.

◆ COMPASS7_MAGNETIC_OFFSET

#define COMPASS7_MAGNETIC_OFFSET   0x080000l

Compass 7 data calculation values.

Specified data calculation values of Compass 7 Click driver.

◆ COMPASS7_MAGNETIC_RESOLUTION

#define COMPASS7_MAGNETIC_RESOLUTION   0.0625

◆ COMPASS7_MEAS_CONTINUOUS_M_100HZ

#define COMPASS7_MEAS_CONTINUOUS_M_100HZ   8

◆ COMPASS7_MEAS_CONTINUOUS_M_10HZ

#define COMPASS7_MEAS_CONTINUOUS_M_10HZ   5

◆ COMPASS7_MEAS_CONTINUOUS_M_1HZ

#define COMPASS7_MEAS_CONTINUOUS_M_1HZ   2

◆ COMPASS7_MEAS_CONTINUOUS_M_25HZ

#define COMPASS7_MEAS_CONTINUOUS_M_25HZ   6

◆ COMPASS7_MEAS_CONTINUOUS_M_2HZ

#define COMPASS7_MEAS_CONTINUOUS_M_2HZ   3

◆ COMPASS7_MEAS_CONTINUOUS_M_50HZ

#define COMPASS7_MEAS_CONTINUOUS_M_50HZ   7

◆ COMPASS7_MEAS_CONTINUOUS_M_5HZ

#define COMPASS7_MEAS_CONTINUOUS_M_5HZ   4

◆ COMPASS7_MEAS_SINGLE_M

#define COMPASS7_MEAS_SINGLE_M   1

◆ COMPASS7_MEAS_SINGLE_T

#define COMPASS7_MEAS_SINGLE_T   0

Compass 7 measurement mode settings.

Specified measurement mode settings of Compass 7 Click driver.

◆ COMPASS7_MILLIGAUSS_TO_GAUSS

#define COMPASS7_MILLIGAUSS_TO_GAUSS   0.001

◆ COMPASS7_ODR_100HZ

#define COMPASS7_ODR_100HZ   100

◆ COMPASS7_ODR_10HZ

#define COMPASS7_ODR_10HZ   10

◆ COMPASS7_ODR_1HZ

#define COMPASS7_ODR_1HZ   1

◆ COMPASS7_ODR_25HZ

#define COMPASS7_ODR_25HZ   25

◆ COMPASS7_ODR_2HZ

#define COMPASS7_ODR_2HZ   2

◆ COMPASS7_ODR_50HZ

#define COMPASS7_ODR_50HZ   50

◆ COMPASS7_ODR_5HZ

#define COMPASS7_ODR_5HZ   5

◆ COMPASS7_ODR_DISABLE

#define COMPASS7_ODR_DISABLE   0

Compass 7 ODR register settings.

Specified ODR register settings of Compass 7 Click driver.

◆ COMPASS7_PRODUCT_ID

#define COMPASS7_PRODUCT_ID   0x10

Compass 7 product ID value.

Specified product ID value of Compass 7 Click driver.

◆ COMPASS7_STATUS1_MDT_FLAG_INT

#define COMPASS7_STATUS1_MDT_FLAG_INT   0x04

◆ COMPASS7_STATUS1_MEAS_M_DONE

#define COMPASS7_STATUS1_MEAS_M_DONE   0x40

◆ COMPASS7_STATUS1_MEAS_M_DONE_INT

#define COMPASS7_STATUS1_MEAS_M_DONE_INT   0x01

◆ COMPASS7_STATUS1_MEAS_T_DONE

#define COMPASS7_STATUS1_MEAS_T_DONE   0x80

Compass 7 status 1 register settings.

Specified status 1 register settings of Compass 7 Click driver.

◆ COMPASS7_STATUS1_MEAS_T_DONE_INT

#define COMPASS7_STATUS1_MEAS_T_DONE_INT   0x02

◆ COMPASS7_STATUS1_OTP_READ_DONE

#define COMPASS7_STATUS1_OTP_READ_DONE   0x10

◆ COMPASS7_STATUS1_SAT_SENSOR

#define COMPASS7_STATUS1_SAT_SENSOR   0x20

◆ COMPASS7_STATUS1_ST_FAIL

#define COMPASS7_STATUS1_ST_FAIL   0x08

◆ COMPASS7_TEMPERATURE_OFFSET

#define COMPASS7_TEMPERATURE_OFFSET   75

◆ COMPASS7_TEMPERATURE_RESOLUTION

#define COMPASS7_TEMPERATURE_RESOLUTION   0.8

◆ COMPASS7_TIMEOUT

#define COMPASS7_TIMEOUT   2000