magneto14 2.1.0.0
Magneto 14 Registers Settings

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

Macros

#define MAGNETO14_CMD_BIT_MASK   0x07
 Magneto 14 description of the command and register bit masks.
 
#define MAGNETO14_REG_BIT_MASK   0x1F
 
#define MAGNETO14_TRIMMING_X_DIS   0x00
 Magneto 14 description of trimming settings.
 
#define MAGNETO14_TRIMMING_X_EN   0x01
 
#define MAGNETO14_TRIMMING_Y_DIS   0x00
 
#define MAGNETO14_TRIMMING_Y_EN   0x02
 
#define MAGNETO14_MG_LT_LVL_0   0x00
 Magneto 14 description of magnetic field threshold settings.
 
#define MAGNETO14_MG_LT_LVL_1   0x20
 
#define MAGNETO14_MG_LT_LVL_2   0x40
 
#define MAGNETO14_MG_LT_LVL_3   0x60
 
#define MAGNETO14_MG_LT_LVL_4   0x80
 
#define MAGNETO14_MG_LT_LVL_5   0xA0
 
#define MAGNETO14_MG_LT_LVL_6   0xC0
 
#define MAGNETO14_MG_LT_LVL_7   0xE0
 
#define MAGNETO14_MG_HT_LVL_0   0x00
 
#define MAGNETO14_MG_HT_LVL_1   0x04
 
#define MAGNETO14_MG_HT_LVL_2   0x08
 
#define MAGNETO14_MG_HT_LVL_3   0x0C
 
#define MAGNETO14_MG_HT_LVL_4   0x10
 
#define MAGNETO14_MG_HT_LVL_5   0x14
 
#define MAGNETO14_MG_HT_LVL_6   0x18
 
#define MAGNETO14_MG_HT_LVL_7   0x1C
 
#define MAGNETO14_MG_BIT_MASK   0xFC
 
#define MAGNETO14_MGH_ST_OK   0x00
 Magneto 14 description of field strength level.
 
#define MAGNETO14_FLD_ST_OK   0x00
 
#define MAGNETO14_FLD_ST_MGL   0x01
 
#define MAGNETO14_FLD_ST_MGH   0x02
 
#define MAGNETO14_FLD_ST_BIT_MASK   0x03
 
#define MAGNETO14_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define MAGNETO14_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Magneto 14 Click driver.

Macro Definition Documentation

◆ MAGNETO14_CMD_BIT_MASK

#define MAGNETO14_CMD_BIT_MASK   0x07

Magneto 14 description of the command and register bit masks.

Specified command and register bit masks of Magneto 14 Click driver.

◆ MAGNETO14_FLD_ST_BIT_MASK

#define MAGNETO14_FLD_ST_BIT_MASK   0x03

◆ MAGNETO14_FLD_ST_MGH

#define MAGNETO14_FLD_ST_MGH   0x02

◆ MAGNETO14_FLD_ST_MGL

#define MAGNETO14_FLD_ST_MGL   0x01

◆ MAGNETO14_FLD_ST_OK

#define MAGNETO14_FLD_ST_OK   0x00

◆ MAGNETO14_MG_BIT_MASK

#define MAGNETO14_MG_BIT_MASK   0xFC

◆ MAGNETO14_MG_HT_LVL_0

#define MAGNETO14_MG_HT_LVL_0   0x00

◆ MAGNETO14_MG_HT_LVL_1

#define MAGNETO14_MG_HT_LVL_1   0x04

◆ MAGNETO14_MG_HT_LVL_2

#define MAGNETO14_MG_HT_LVL_2   0x08

◆ MAGNETO14_MG_HT_LVL_3

#define MAGNETO14_MG_HT_LVL_3   0x0C

◆ MAGNETO14_MG_HT_LVL_4

#define MAGNETO14_MG_HT_LVL_4   0x10

◆ MAGNETO14_MG_HT_LVL_5

#define MAGNETO14_MG_HT_LVL_5   0x14

◆ MAGNETO14_MG_HT_LVL_6

#define MAGNETO14_MG_HT_LVL_6   0x18

◆ MAGNETO14_MG_HT_LVL_7

#define MAGNETO14_MG_HT_LVL_7   0x1C

◆ MAGNETO14_MG_LT_LVL_0

#define MAGNETO14_MG_LT_LVL_0   0x00

Magneto 14 description of magnetic field threshold settings.

Specified magnetic field threshold settings of Magneto 14 Click driver.

◆ MAGNETO14_MG_LT_LVL_1

#define MAGNETO14_MG_LT_LVL_1   0x20

◆ MAGNETO14_MG_LT_LVL_2

#define MAGNETO14_MG_LT_LVL_2   0x40

◆ MAGNETO14_MG_LT_LVL_3

#define MAGNETO14_MG_LT_LVL_3   0x60

◆ MAGNETO14_MG_LT_LVL_4

#define MAGNETO14_MG_LT_LVL_4   0x80

◆ MAGNETO14_MG_LT_LVL_5

#define MAGNETO14_MG_LT_LVL_5   0xA0

◆ MAGNETO14_MG_LT_LVL_6

#define MAGNETO14_MG_LT_LVL_6   0xC0

◆ MAGNETO14_MG_LT_LVL_7

#define MAGNETO14_MG_LT_LVL_7   0xE0

◆ MAGNETO14_MGH_ST_OK

#define MAGNETO14_MGH_ST_OK   0x00

Magneto 14 description of field strength level.

Specified field strength level of Magneto 14 Click driver.

◆ MAGNETO14_REG_BIT_MASK

#define MAGNETO14_REG_BIT_MASK   0x1F

◆ MAGNETO14_SET_DATA_SAMPLE_EDGE

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

◆ MAGNETO14_SET_DATA_SAMPLE_MIDDLE

#define MAGNETO14_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ MAGNETO14_TRIMMING_X_DIS

#define MAGNETO14_TRIMMING_X_DIS   0x00

Magneto 14 description of trimming settings.

Specified trimming settings of Magneto 14 Click driver.

◆ MAGNETO14_TRIMMING_X_EN

#define MAGNETO14_TRIMMING_X_EN   0x01

◆ MAGNETO14_TRIMMING_Y_DIS

#define MAGNETO14_TRIMMING_Y_DIS   0x00

◆ MAGNETO14_TRIMMING_Y_EN

#define MAGNETO14_TRIMMING_Y_EN   0x02