magneticrotary2 2.0.0.0
Magnetic Rotary 2 Registers Settings

Settings for registers of Magnetic Rotary 2 Click driver. More...

Macros

#define MAGNETICROTARY2_UNLOCK_VALUE   0xAB
 Magnetic Rotary 2 register settings.
 
#define MAGNETICROTARY2_LOCK_VALUE   0xFF
 
#define MAGNETICROTARY2_PROGRAM_VALUE   0xA1
 
#define MAGNETICROTARY2_ODD_PARITY   0x01
 Magnetic Rotary 2 ODD parity flag.
 
#define MAGNETICROTARY2_MSEL1_READ_BIT   0x40
 Magnetic Rotary 2 read write bits.
 
#define MAGNETICROTARY2_MSEL0_WRITE_BIT   0x80
 
#define MAGNETICROTARY2_CC0_MSB_HW_ST_ZERO_EN   0x80
 Magnetic Rotary 2 custom config 0 registers settings.
 
#define MAGNETICROTARY2_CC0_MSB_HW_ACC_CALIB_EN   0x40
 
#define MAGNETICROTARY2_CC0_MSB_AXIS_MODE_OFF   0x20
 
#define MAGNETICROTARY2_CC0_MSB_IWIDTH_90   0x00
 
#define MAGNETICROTARY2_CC0_MSB_IWIDTH_180   0x04
 
#define MAGNETICROTARY2_CC0_MSB_IWIDTH_270   0x08
 
#define MAGNETICROTARY2_CC0_MSB_IWIDTH_360   0x0C
 
#define MAGNETICROTARY2_CC0_MSB_IPHASE_90   0x00
 
#define MAGNETICROTARY2_CC0_MSB_IPHASE_180   0x01
 
#define MAGNETICROTARY2_CC0_MSB_IPHASE_270   0x02
 
#define MAGNETICROTARY2_CC0_MSB_IPHASE_360   0x03
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_00   0x00
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_01   0x20
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_02   0x40
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_04   0x60
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_08   0x80
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_17   0xA0
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_35   0xC0
 
#define MAGNETICROTARY2_CC0_LSB_HYST_0_70   0xE0
 
#define MAGNETICROTARY2_CC0_LSB_DIR_CCW   0x10
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_18BIT   0x00
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_17BIT   0x01
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_16BIT   0x02
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_15BIT   0x03
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_14BIT   0x04
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_13BIT   0x05
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_12BIT   0x06
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_11BIT   0x07
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_10BIT   0x08
 
#define MAGNETICROTARY2_CC0_LSB_ABS_RES_MASK   0x0F
 
#define MAGNETICROTARY2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define MAGNETICROTARY2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Magnetic Rotary 2 Click driver.

Macro Definition Documentation

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_10BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_10BIT   0x08

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_11BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_11BIT   0x07

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_12BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_12BIT   0x06

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_13BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_13BIT   0x05

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_14BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_14BIT   0x04

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_15BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_15BIT   0x03

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_16BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_16BIT   0x02

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_17BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_17BIT   0x01

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_18BIT

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_18BIT   0x00

◆ MAGNETICROTARY2_CC0_LSB_ABS_RES_MASK

#define MAGNETICROTARY2_CC0_LSB_ABS_RES_MASK   0x0F

◆ MAGNETICROTARY2_CC0_LSB_DIR_CCW

#define MAGNETICROTARY2_CC0_LSB_DIR_CCW   0x10

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_00

#define MAGNETICROTARY2_CC0_LSB_HYST_0_00   0x00

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_01

#define MAGNETICROTARY2_CC0_LSB_HYST_0_01   0x20

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_02

#define MAGNETICROTARY2_CC0_LSB_HYST_0_02   0x40

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_04

#define MAGNETICROTARY2_CC0_LSB_HYST_0_04   0x60

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_08

#define MAGNETICROTARY2_CC0_LSB_HYST_0_08   0x80

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_17

#define MAGNETICROTARY2_CC0_LSB_HYST_0_17   0xA0

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_35

#define MAGNETICROTARY2_CC0_LSB_HYST_0_35   0xC0

◆ MAGNETICROTARY2_CC0_LSB_HYST_0_70

#define MAGNETICROTARY2_CC0_LSB_HYST_0_70   0xE0

◆ MAGNETICROTARY2_CC0_MSB_AXIS_MODE_OFF

#define MAGNETICROTARY2_CC0_MSB_AXIS_MODE_OFF   0x20

◆ MAGNETICROTARY2_CC0_MSB_HW_ACC_CALIB_EN

#define MAGNETICROTARY2_CC0_MSB_HW_ACC_CALIB_EN   0x40

◆ MAGNETICROTARY2_CC0_MSB_HW_ST_ZERO_EN

#define MAGNETICROTARY2_CC0_MSB_HW_ST_ZERO_EN   0x80

Magnetic Rotary 2 custom config 0 registers settings.

Specified settings for custom config 0 registers of Magnetic Rotary 2 Click driver.

◆ MAGNETICROTARY2_CC0_MSB_IPHASE_180

#define MAGNETICROTARY2_CC0_MSB_IPHASE_180   0x01

◆ MAGNETICROTARY2_CC0_MSB_IPHASE_270

#define MAGNETICROTARY2_CC0_MSB_IPHASE_270   0x02

◆ MAGNETICROTARY2_CC0_MSB_IPHASE_360

#define MAGNETICROTARY2_CC0_MSB_IPHASE_360   0x03

◆ MAGNETICROTARY2_CC0_MSB_IPHASE_90

#define MAGNETICROTARY2_CC0_MSB_IPHASE_90   0x00

◆ MAGNETICROTARY2_CC0_MSB_IWIDTH_180

#define MAGNETICROTARY2_CC0_MSB_IWIDTH_180   0x04

◆ MAGNETICROTARY2_CC0_MSB_IWIDTH_270

#define MAGNETICROTARY2_CC0_MSB_IWIDTH_270   0x08

◆ MAGNETICROTARY2_CC0_MSB_IWIDTH_360

#define MAGNETICROTARY2_CC0_MSB_IWIDTH_360   0x0C

◆ MAGNETICROTARY2_CC0_MSB_IWIDTH_90

#define MAGNETICROTARY2_CC0_MSB_IWIDTH_90   0x00

◆ MAGNETICROTARY2_LOCK_VALUE

#define MAGNETICROTARY2_LOCK_VALUE   0xFF

◆ MAGNETICROTARY2_MSEL0_WRITE_BIT

#define MAGNETICROTARY2_MSEL0_WRITE_BIT   0x80

◆ MAGNETICROTARY2_MSEL1_READ_BIT

#define MAGNETICROTARY2_MSEL1_READ_BIT   0x40

Magnetic Rotary 2 read write bits.

Specified bits for read/write operation of Magnetic Rotary 2 Click driver.

◆ MAGNETICROTARY2_ODD_PARITY

#define MAGNETICROTARY2_ODD_PARITY   0x01

Magnetic Rotary 2 ODD parity flag.

Specified flag for ODD parity of Magnetic Rotary 2 Click driver.

◆ MAGNETICROTARY2_PROGRAM_VALUE

#define MAGNETICROTARY2_PROGRAM_VALUE   0xA1

◆ MAGNETICROTARY2_SET_DATA_SAMPLE_EDGE

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

◆ MAGNETICROTARY2_SET_DATA_SAMPLE_MIDDLE

#define MAGNETICROTARY2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ MAGNETICROTARY2_UNLOCK_VALUE

#define MAGNETICROTARY2_UNLOCK_VALUE   0xAB

Magnetic Rotary 2 register settings.

Specified setting for registers of Magnetic Rotary 2 Click driver.