geomagnetic 2.0.0.0
Geomagnetic Macros

Macros

#define GEOMAG_DUMMY   0x00
 
#define GEOMAG_SPI_INTERFACE   0x00
 
#define GEOMAG_I2C_INTERFACE   0x01
 
#define GEOMAG_READ_CMD   0x80
 
#define GEOMAG_DEV_ADDR   0x10
 
#define GEOMAG_ID_REG   0x40
 
#define GEOMAG_RESERVED1_REG   0x41
 
#define GEOMAG_DATAX_LSB_REG   0x42
 
#define GEOMAG_DATAX_MSB_REG   0x43
 
#define GEOMAG_DATAY_LSB_REG   0x44
 
#define GEOMAG_DATAY_MSB_REG   0x45
 
#define GEOMAG_DATAZ_LSB_REG   0x46
 
#define GEOMAG_DATAZ_MSB_REG   0x47
 
#define GEOMAG_RHALL_LSB_REG   0x48
 
#define GEOMAG_RHALL_MSB_REG   0x49
 
#define GEOMAG_INTERRUPT_STATUS_REG   0x4A
 
#define GEOMAG_POWER_AND_RESET_CON_REG   0x4B
 
#define GEOMAG_DATARATE_AND_OPMODE_CON_REG   0x4C
 
#define GEOMAG_INTERR_AND_AXIS_EN_REG   0x4D
 
#define GEOMAG_INTERR_AND_CHANNEL_EN_REG   0x4E
 
#define GEOMAG_LOW_THRESHOLD_REG   0x4F
 
#define GEOMAG_HIGH_THRESHOLD_REG   0x50
 
#define GEOMAG_REPETITION_XY_CON_REG   0x51
 
#define GEOMAG_REPETITION_Z_CON_REG   0x52
 
#define GEOMAG_RESERVED2_REG   0x53
 
#define GEOMAG_RESERVED3_REG   0x54
 
#define GEOMAG_RESERVED4_REG   0x55
 
#define GEOMAG_RESERVED5_REG   0x56
 
#define GEOMAG_RESERVED6_REG   0x57
 
#define GEOMAG_RESERVED7_REG   0x58
 
#define GEOMAG_RESERVED8_REG   0x59
 
#define GEOMAG_RESERVED9_REG   0x5A
 
#define GEOMAG_RESERVED10_REG   0x5B
 
#define GEOMAG_RESERVED11_REG   0x5C
 
#define GEOMAG_RESERVED12_REG   0x5D
 
#define GEOMAG_RESERVED13_REG   0x5E
 
#define GEOMAG_RESERVED14_REG   0x5F
 
#define GEOMAG_RESERVED15_REG   0x60
 
#define GEOMAG_RESERVED16_REG   0x61
 
#define GEOMAG_RESERVED17_REG   0x62
 
#define GEOMAG_RESERVED18_REG   0x63
 
#define GEOMAG_RESERVED19_REG   0x64
 
#define GEOMAG_RESERVED20_REG   0x65
 
#define GEOMAG_RESERVED21_REG   0x66
 
#define GEOMAG_RESERVED22_REG   0x67
 
#define GEOMAG_RESERVED23_REG   0x68
 
#define GEOMAG_RESERVED24_REG   0x69
 
#define GEOMAG_RESERVED25_REG   0x6A
 
#define GEOMAG_RESERVED26_REG   0x6B
 
#define GEOMAG_RESERVED27_REG   0x6C
 
#define GEOMAG_RESERVED28_REG   0x6D
 
#define GEOMAG_RESERVED29_REG   0x6E
 
#define GEOMAG_RESERVED30_REG   0x6F
 
#define GEOMAG_RESERVED31_REG   0x70
 
#define GEOMAG_RESERVED32_REG   0x71
 
#define GEOMAG_OK   0x00
 
#define GEOMAG_ADDR_ERR   0x01
 
#define GEOMAG_INTERRUPT_OCCURED   0x02
 
#define GEOMAG_NBYTES_ERR   0x03
 
#define GEOMAG_DATA_READY   0x01
 
#define GEOMAG_DATA_NOT_READY   0x00
 
#define GEOMAG_SUSPEND_MODE_SPI4_EN   0x00
 
#define GEOMAG_SLEEP_MODE   0x01
 
#define GEOMAG_SOFT_RESET_EN   0x82
 
#define GEOMAG_SPI3_EN   0x04
 
#define GEOMAG_NORMAL_OPMODE_DR_10HZ   0x00
 
#define GEOMAG_FORCED_OPMODE   0x02
 
#define GEOMAG_SLEEP_OPMODE   0x06
 
#define GEOMAG_DR_2HZ   0x08
 
#define GEOMAG_DR_6HZ   0x10
 
#define GEOMAG_DR_8HZ   0x18
 
#define GEOMAG_DR_15HZ   0x20
 
#define GEOMAG_DR_20HZ   0x28
 
#define GEOMAG_DR_25HZ   0x30
 
#define GEOMAG_DR_30HZ   0x38
 
#define GEOMAG_INTERR_DISABLED_THRESHOLDS_ENABLED   0x00
 
#define GEOMAG_LOWTHRESHOLD_X_DISABLED   0x01
 
#define GEOMAG_LOWTHRESHOLD_Y_DISABLED   0x02
 
#define GEOMAG_LOWTHRESHOLD_Z_DISABLED   0x04
 
#define GEOMAG_HIGHTHRESHOLD_X_DISABLED   0x08
 
#define GEOMAG_HIGHTHRESHOLD_Y_DISABLED   0x10
 
#define GEOMAG_HIGHTHRESHOLD_Z_DISABLED   0x20
 
#define GEOMAG_OVERFLOW_PIN_IND_EN   0x40
 
#define GEOMAG_DATAOVERRUN_IND_EN   0x80
 
#define GEOMAG_CHANNELS_ENABLED_INTERR_DATAREADY_ACTIVE_LOW   0x00
 
#define GEOMAG_INTERR_PIN_ACTIVE_HIGH   0x01
 
#define GEOMAG_INTERR_LATCHED   0x02
 
#define GEOMAG_DATAREADY_ACTIVE_HIGH   0x04
 
#define GEOMAG_CHANNEL_X_DISABLED   0x08
 
#define GEOMAG_CHANNEL_Y_DISABLED   0x10
 
#define GEOMAG_CHANNEL_Z_DISABLED   0x20
 
#define GEOMAG_INTERR_PIN_EN   0x40
 
#define GEOMAG_DATAREADY_PIN_EN   0x80
 

Detailed Description

Macro Definition Documentation

◆ GEOMAG_ADDR_ERR

#define GEOMAG_ADDR_ERR   0x01

◆ GEOMAG_CHANNEL_X_DISABLED

#define GEOMAG_CHANNEL_X_DISABLED   0x08

◆ GEOMAG_CHANNEL_Y_DISABLED

#define GEOMAG_CHANNEL_Y_DISABLED   0x10

◆ GEOMAG_CHANNEL_Z_DISABLED

#define GEOMAG_CHANNEL_Z_DISABLED   0x20

◆ GEOMAG_CHANNELS_ENABLED_INTERR_DATAREADY_ACTIVE_LOW

#define GEOMAG_CHANNELS_ENABLED_INTERR_DATAREADY_ACTIVE_LOW   0x00

◆ GEOMAG_DATA_NOT_READY

#define GEOMAG_DATA_NOT_READY   0x00

◆ GEOMAG_DATA_READY

#define GEOMAG_DATA_READY   0x01

◆ GEOMAG_DATAOVERRUN_IND_EN

#define GEOMAG_DATAOVERRUN_IND_EN   0x80

◆ GEOMAG_DATARATE_AND_OPMODE_CON_REG

#define GEOMAG_DATARATE_AND_OPMODE_CON_REG   0x4C

◆ GEOMAG_DATAREADY_ACTIVE_HIGH

#define GEOMAG_DATAREADY_ACTIVE_HIGH   0x04

◆ GEOMAG_DATAREADY_PIN_EN

#define GEOMAG_DATAREADY_PIN_EN   0x80

◆ GEOMAG_DATAX_LSB_REG

#define GEOMAG_DATAX_LSB_REG   0x42

◆ GEOMAG_DATAX_MSB_REG

#define GEOMAG_DATAX_MSB_REG   0x43

◆ GEOMAG_DATAY_LSB_REG

#define GEOMAG_DATAY_LSB_REG   0x44

◆ GEOMAG_DATAY_MSB_REG

#define GEOMAG_DATAY_MSB_REG   0x45

◆ GEOMAG_DATAZ_LSB_REG

#define GEOMAG_DATAZ_LSB_REG   0x46

◆ GEOMAG_DATAZ_MSB_REG

#define GEOMAG_DATAZ_MSB_REG   0x47

◆ GEOMAG_DEV_ADDR

#define GEOMAG_DEV_ADDR   0x10

◆ GEOMAG_DR_15HZ

#define GEOMAG_DR_15HZ   0x20

◆ GEOMAG_DR_20HZ

#define GEOMAG_DR_20HZ   0x28

◆ GEOMAG_DR_25HZ

#define GEOMAG_DR_25HZ   0x30

◆ GEOMAG_DR_2HZ

#define GEOMAG_DR_2HZ   0x08

◆ GEOMAG_DR_30HZ

#define GEOMAG_DR_30HZ   0x38

◆ GEOMAG_DR_6HZ

#define GEOMAG_DR_6HZ   0x10

◆ GEOMAG_DR_8HZ

#define GEOMAG_DR_8HZ   0x18

◆ GEOMAG_DUMMY

#define GEOMAG_DUMMY   0x00

◆ GEOMAG_FORCED_OPMODE

#define GEOMAG_FORCED_OPMODE   0x02

◆ GEOMAG_HIGH_THRESHOLD_REG

#define GEOMAG_HIGH_THRESHOLD_REG   0x50

◆ GEOMAG_HIGHTHRESHOLD_X_DISABLED

#define GEOMAG_HIGHTHRESHOLD_X_DISABLED   0x08

◆ GEOMAG_HIGHTHRESHOLD_Y_DISABLED

#define GEOMAG_HIGHTHRESHOLD_Y_DISABLED   0x10

◆ GEOMAG_HIGHTHRESHOLD_Z_DISABLED

#define GEOMAG_HIGHTHRESHOLD_Z_DISABLED   0x20

◆ GEOMAG_I2C_INTERFACE

#define GEOMAG_I2C_INTERFACE   0x01

◆ GEOMAG_ID_REG

#define GEOMAG_ID_REG   0x40

◆ GEOMAG_INTERR_AND_AXIS_EN_REG

#define GEOMAG_INTERR_AND_AXIS_EN_REG   0x4D

◆ GEOMAG_INTERR_AND_CHANNEL_EN_REG

#define GEOMAG_INTERR_AND_CHANNEL_EN_REG   0x4E

◆ GEOMAG_INTERR_DISABLED_THRESHOLDS_ENABLED

#define GEOMAG_INTERR_DISABLED_THRESHOLDS_ENABLED   0x00

◆ GEOMAG_INTERR_LATCHED

#define GEOMAG_INTERR_LATCHED   0x02

◆ GEOMAG_INTERR_PIN_ACTIVE_HIGH

#define GEOMAG_INTERR_PIN_ACTIVE_HIGH   0x01

◆ GEOMAG_INTERR_PIN_EN

#define GEOMAG_INTERR_PIN_EN   0x40

◆ GEOMAG_INTERRUPT_OCCURED

#define GEOMAG_INTERRUPT_OCCURED   0x02

◆ GEOMAG_INTERRUPT_STATUS_REG

#define GEOMAG_INTERRUPT_STATUS_REG   0x4A

◆ GEOMAG_LOW_THRESHOLD_REG

#define GEOMAG_LOW_THRESHOLD_REG   0x4F

◆ GEOMAG_LOWTHRESHOLD_X_DISABLED

#define GEOMAG_LOWTHRESHOLD_X_DISABLED   0x01

◆ GEOMAG_LOWTHRESHOLD_Y_DISABLED

#define GEOMAG_LOWTHRESHOLD_Y_DISABLED   0x02

◆ GEOMAG_LOWTHRESHOLD_Z_DISABLED

#define GEOMAG_LOWTHRESHOLD_Z_DISABLED   0x04

◆ GEOMAG_NBYTES_ERR

#define GEOMAG_NBYTES_ERR   0x03

◆ GEOMAG_NORMAL_OPMODE_DR_10HZ

#define GEOMAG_NORMAL_OPMODE_DR_10HZ   0x00

◆ GEOMAG_OK

#define GEOMAG_OK   0x00

◆ GEOMAG_OVERFLOW_PIN_IND_EN

#define GEOMAG_OVERFLOW_PIN_IND_EN   0x40

◆ GEOMAG_POWER_AND_RESET_CON_REG

#define GEOMAG_POWER_AND_RESET_CON_REG   0x4B

◆ GEOMAG_READ_CMD

#define GEOMAG_READ_CMD   0x80

◆ GEOMAG_REPETITION_XY_CON_REG

#define GEOMAG_REPETITION_XY_CON_REG   0x51

◆ GEOMAG_REPETITION_Z_CON_REG

#define GEOMAG_REPETITION_Z_CON_REG   0x52

◆ GEOMAG_RESERVED10_REG

#define GEOMAG_RESERVED10_REG   0x5B

◆ GEOMAG_RESERVED11_REG

#define GEOMAG_RESERVED11_REG   0x5C

◆ GEOMAG_RESERVED12_REG

#define GEOMAG_RESERVED12_REG   0x5D

◆ GEOMAG_RESERVED13_REG

#define GEOMAG_RESERVED13_REG   0x5E

◆ GEOMAG_RESERVED14_REG

#define GEOMAG_RESERVED14_REG   0x5F

◆ GEOMAG_RESERVED15_REG

#define GEOMAG_RESERVED15_REG   0x60

◆ GEOMAG_RESERVED16_REG

#define GEOMAG_RESERVED16_REG   0x61

◆ GEOMAG_RESERVED17_REG

#define GEOMAG_RESERVED17_REG   0x62

◆ GEOMAG_RESERVED18_REG

#define GEOMAG_RESERVED18_REG   0x63

◆ GEOMAG_RESERVED19_REG

#define GEOMAG_RESERVED19_REG   0x64

◆ GEOMAG_RESERVED1_REG

#define GEOMAG_RESERVED1_REG   0x41

◆ GEOMAG_RESERVED20_REG

#define GEOMAG_RESERVED20_REG   0x65

◆ GEOMAG_RESERVED21_REG

#define GEOMAG_RESERVED21_REG   0x66

◆ GEOMAG_RESERVED22_REG

#define GEOMAG_RESERVED22_REG   0x67

◆ GEOMAG_RESERVED23_REG

#define GEOMAG_RESERVED23_REG   0x68

◆ GEOMAG_RESERVED24_REG

#define GEOMAG_RESERVED24_REG   0x69

◆ GEOMAG_RESERVED25_REG

#define GEOMAG_RESERVED25_REG   0x6A

◆ GEOMAG_RESERVED26_REG

#define GEOMAG_RESERVED26_REG   0x6B

◆ GEOMAG_RESERVED27_REG

#define GEOMAG_RESERVED27_REG   0x6C

◆ GEOMAG_RESERVED28_REG

#define GEOMAG_RESERVED28_REG   0x6D

◆ GEOMAG_RESERVED29_REG

#define GEOMAG_RESERVED29_REG   0x6E

◆ GEOMAG_RESERVED2_REG

#define GEOMAG_RESERVED2_REG   0x53

◆ GEOMAG_RESERVED30_REG

#define GEOMAG_RESERVED30_REG   0x6F

◆ GEOMAG_RESERVED31_REG

#define GEOMAG_RESERVED31_REG   0x70

◆ GEOMAG_RESERVED32_REG

#define GEOMAG_RESERVED32_REG   0x71

◆ GEOMAG_RESERVED3_REG

#define GEOMAG_RESERVED3_REG   0x54

◆ GEOMAG_RESERVED4_REG

#define GEOMAG_RESERVED4_REG   0x55

◆ GEOMAG_RESERVED5_REG

#define GEOMAG_RESERVED5_REG   0x56

◆ GEOMAG_RESERVED6_REG

#define GEOMAG_RESERVED6_REG   0x57

◆ GEOMAG_RESERVED7_REG

#define GEOMAG_RESERVED7_REG   0x58

◆ GEOMAG_RESERVED8_REG

#define GEOMAG_RESERVED8_REG   0x59

◆ GEOMAG_RESERVED9_REG

#define GEOMAG_RESERVED9_REG   0x5A

◆ GEOMAG_RHALL_LSB_REG

#define GEOMAG_RHALL_LSB_REG   0x48

◆ GEOMAG_RHALL_MSB_REG

#define GEOMAG_RHALL_MSB_REG   0x49

◆ GEOMAG_SLEEP_MODE

#define GEOMAG_SLEEP_MODE   0x01

◆ GEOMAG_SLEEP_OPMODE

#define GEOMAG_SLEEP_OPMODE   0x06

◆ GEOMAG_SOFT_RESET_EN

#define GEOMAG_SOFT_RESET_EN   0x82

◆ GEOMAG_SPI3_EN

#define GEOMAG_SPI3_EN   0x04

◆ GEOMAG_SPI_INTERFACE

#define GEOMAG_SPI_INTERFACE   0x00

◆ GEOMAG_SUSPEND_MODE_SPI4_EN

#define GEOMAG_SUSPEND_MODE_SPI4_EN   0x00