magneto9 2.0.0.0
Magneto 9 Registers Settings

Settings for registers of Magneto 9 Click driver. More...

Macros

#define MAGNETO9_SET_DEV_ADDR   0x4D
 Magneto 9 device address setting.
 
#define MAGNETO9_ADC_RESOLUTION   0x0FFF
 Magneto 9 ADC setting.
 
#define MAGNETO9_VREF_5V   5.0
 
#define MAGNETO9_QUIESCENT_VOUT   2.5
 Magneto 9 magnetic field strength constants.
 
#define MAGNETO9_AN_SENSITIVITY_V_PER_G   0.009
 
#define MAGNETO9_GAUSS_TO_MILITESLA   0.1
 
#define MAGNETO9_VOLTAGE_TO_FIELD_STRENGTH(voltage)
 Magneto 9 voltage to magnetic field strength macro.
 

Detailed Description

Settings for registers of Magneto 9 Click driver.

Macro Definition Documentation

◆ MAGNETO9_ADC_RESOLUTION

#define MAGNETO9_ADC_RESOLUTION   0x0FFF

Magneto 9 ADC setting.

Specified settings for ADC of Magneto 9 Click driver.

◆ MAGNETO9_AN_SENSITIVITY_V_PER_G

#define MAGNETO9_AN_SENSITIVITY_V_PER_G   0.009

◆ MAGNETO9_GAUSS_TO_MILITESLA

#define MAGNETO9_GAUSS_TO_MILITESLA   0.1

◆ MAGNETO9_QUIESCENT_VOUT

#define MAGNETO9_QUIESCENT_VOUT   2.5

Magneto 9 magnetic field strength constants.

Specified constants for magnetic field strength of Magneto 9 Click driver.

◆ MAGNETO9_SET_DEV_ADDR

#define MAGNETO9_SET_DEV_ADDR   0x4D

Magneto 9 device address setting.

Specified setting for device slave address selection of Magneto 9 Click driver.

◆ MAGNETO9_VOLTAGE_TO_FIELD_STRENGTH

#define MAGNETO9_VOLTAGE_TO_FIELD_STRENGTH ( voltage)
Value:
( ( ( voltage - MAGNETO9_QUIESCENT_VOUT ) / \
#define MAGNETO9_GAUSS_TO_MILITESLA
Definition magneto9.h:90
#define MAGNETO9_QUIESCENT_VOUT
Magneto 9 magnetic field strength constants.
Definition magneto9.h:88
#define MAGNETO9_AN_SENSITIVITY_V_PER_G
Definition magneto9.h:89

Magneto 9 voltage to magnetic field strength macro.

This macro calculates magnetic field strength (militesla) based on the voltage input.

Parameters
[in]voltage: Voltage from VOUT (volts).
Returns
Magnetic field strength in militesla.
Note
A negative value indicates the North Pole magnetic field, whereas a positive value indicates the South Pole.

◆ MAGNETO9_VREF_5V

#define MAGNETO9_VREF_5V   5.0