magneticrotary6 2.0.0.0
Magnetic Rotary 6 Registers Settings

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

Macros

#define MAGNETICROTARY6_ERRFL_CORDIC_OF   0x0400u
 Magnetic Rotary 6 ERRFL register settings.
 
#define MAGNETICROTARY6_ERRFL_OFF_COMP_NOT_FIN   0x0200u
 
#define MAGNETICROTARY6_ERRFL_BRKHALL   0x0100u
 
#define MAGNETICROTARY6_ERRFL_WDTST   0x0080u
 
#define MAGNETICROTARY6_ERRFL_CRC_ERROR   0x0040u
 
#define MAGNETICROTARY6_ERRFL_CMD_ERROR   0x0020u
 
#define MAGNETICROTARY6_ERRFL_FRAMING_ERROR   0x0010u
 
#define MAGNETICROTARY6_ERRFL_P2RAM_ERROR   0x0008u
 
#define MAGNETICROTARY6_ERRFL_P2RAM_WARNING   0x0004u
 
#define MAGNETICROTARY6_ERRFL_MAGHALF   0x0002u
 
#define MAGNETICROTARY6_ERRFL_AGC_WARNING   0x0001u
 
#define MAGNETICROTARY6_PROG_PROGVER   0x0040u
 Magnetic Rotary 6 PROG register settings.
 
#define MAGNETICROTARY6_PROG_PROGOTP   0x0008u
 
#define MAGNETICROTARY6_PROG_OTPREF   0x0004u
 
#define MAGNETICROTARY6_PROG_PROGEN   0x0001u
 
#define MAGNETICROTARY6_DIA_SPI_CNT   0x1800u
 Magnetic Rotary 6 DIA register settings.
 
#define MAGNETICROTARY6_DIA_FUSA_ERROR   0x0400u
 
#define MAGNETICROTARY6_DIA_AGC_FIN   0x0200u
 
#define MAGNETICROTARY6_DIA_OFF_COMP_FIN   0x0100u
 
#define MAGNETICROTARY6_DIA_SINOFF_FIN   0x0080u
 
#define MAGNETICROTARY6_DIA_COSOFF_FIN   0x0040u
 
#define MAGNETICROTARY6_DIA_MAGHALF_FLAG   0x0020u
 
#define MAGNETICROTARY6_DIA_COMP_H   0x0010u
 
#define MAGNETICROTARY6_DIA_COMP_L   0x0008u
 
#define MAGNETICROTARY6_DIA_CORDIC_OF   0x0004u
 
#define MAGNETICROTARY6_DIA_LOOPSFIN   0x0002u
 
#define MAGNETICROTARY6_DIA_VDD_MODE_5V   0x0001u
 
#define MAGNETICROTARY6_DIA_VDD_MODE_3V   0x0000u
 
#define MAGNETICROTARY6_DISABLE_FILTER_DISABLE   0x0040u
 Magnetic Rotary 6 DISABLE register settings.
 
#define MAGNETICROTARY6_DISABLE_BRKHALL_SET   0x003Cu
 
#define MAGNETICROTARY6_DISABLE_ABI_OFF   0x0002u
 
#define MAGNETICROTARY6_DISABLE_UVW_OFF   0x0001u
 
#define MAGNETICROTARY6_ZPOSL_DIA2_EN   0x0080u
 Magnetic Rotary 6 ZPOSL register settings.
 
#define MAGNETICROTARY6_ZPOSL_DIA1_EN   0x0040u
 
#define MAGNETICROTARY6_ZPOSL_LSB   0x003Fu
 
#define MAGNETICROTARY6_SETTINGS1_DIA3_EN   0x0040u
 Magnetic Rotary 6 SETTINGS1 register settings.
 
#define MAGNETICROTARY6_SETTINGS1_K_MIN   0x0038u
 
#define MAGNETICROTARY6_SETTINGS1_K_MAX   0x0007u
 
#define MAGNETICROTARY6_SETTINGS2_PWMON   0x0080u
 Magnetic Rotary 6 SETTINGS2 register settings.
 
#define MAGNETICROTARY6_SETTINGS2_DATA_SELECT   0x0040u
 
#define MAGNETICROTARY6_SETTINGS2_ABI_DEC   0x0020u
 
#define MAGNETICROTARY6_SETTINGS2_DAECDIS   0x0010u
 
#define MAGNETICROTARY6_SETTINGS2_UVW_ABI   0x0008u
 
#define MAGNETICROTARY6_SETTINGS2_DIR_CW   0x0000u
 
#define MAGNETICROTARY6_SETTINGS2_DIR_CCW   0x0004u
 
#define MAGNETICROTARY6_SETTINGS2_DIR_MASK   0x0004u
 
#define MAGNETICROTARY6_SETTINGS2_NOISESET   0x0002u
 
#define MAGNETICROTARY6_SETTINGS2_IWIDTH   0x0001u
 
#define MAGNETICROTARY6_SETTINGS3_ABIRES_MASK   0x00E0u
 Magnetic Rotary 6 SETTINGS3 register settings.
 
#define MAGNETICROTARY6_SETTINGS3_HYS_MASK   0x0018u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_1PP   0x0000u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_2PP   0x0001u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_3PP   0x0002u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_4PP   0x0003u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_5PP   0x0004u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_6PP   0x0005u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_7PP   0x0006u
 
#define MAGNETICROTARY6_SETTINGS3_UVWPP_MASK   0x0007u
 
#define MAGNETICROTARY6_ECC_EN   0x0080u
 Magnetic Rotary 6 ECC register settings.
 
#define MAGNETICROTARY6_ECC_CHSUM_MASK   0x007Fu
 
#define MAGNETICROTARY6_DIE_BOTTOM   0
 Magnetic Rotary 6 die selection values.
 
#define MAGNETICROTARY6_DIE_TOP   1
 
#define MAGNETICROTARY6_DATA_RESOLUTION   0x3FFFu
 Magnetic Rotary 6 angle calculation values.
 
#define MAGNETICROTARY6_FULL_CIRCLE   360u
 
#define MAGNETICROTARY6_DIR_CW   0
 Magnetic Rotary 6 rotation direction settings.
 
#define MAGNETICROTARY6_DIR_CCW   1
 
#define MAGNETICROTARY6_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define MAGNETICROTARY6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Magnetic Rotary 6 Click driver.

Macro Definition Documentation

◆ MAGNETICROTARY6_DATA_RESOLUTION

#define MAGNETICROTARY6_DATA_RESOLUTION   0x3FFFu

Magnetic Rotary 6 angle calculation values.

Specified angle calculation values of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_DIA_AGC_FIN

#define MAGNETICROTARY6_DIA_AGC_FIN   0x0200u

◆ MAGNETICROTARY6_DIA_COMP_H

#define MAGNETICROTARY6_DIA_COMP_H   0x0010u

◆ MAGNETICROTARY6_DIA_COMP_L

#define MAGNETICROTARY6_DIA_COMP_L   0x0008u

◆ MAGNETICROTARY6_DIA_CORDIC_OF

#define MAGNETICROTARY6_DIA_CORDIC_OF   0x0004u

◆ MAGNETICROTARY6_DIA_COSOFF_FIN

#define MAGNETICROTARY6_DIA_COSOFF_FIN   0x0040u

◆ MAGNETICROTARY6_DIA_FUSA_ERROR

#define MAGNETICROTARY6_DIA_FUSA_ERROR   0x0400u

◆ MAGNETICROTARY6_DIA_LOOPSFIN

#define MAGNETICROTARY6_DIA_LOOPSFIN   0x0002u

◆ MAGNETICROTARY6_DIA_MAGHALF_FLAG

#define MAGNETICROTARY6_DIA_MAGHALF_FLAG   0x0020u

◆ MAGNETICROTARY6_DIA_OFF_COMP_FIN

#define MAGNETICROTARY6_DIA_OFF_COMP_FIN   0x0100u

◆ MAGNETICROTARY6_DIA_SINOFF_FIN

#define MAGNETICROTARY6_DIA_SINOFF_FIN   0x0080u

◆ MAGNETICROTARY6_DIA_SPI_CNT

#define MAGNETICROTARY6_DIA_SPI_CNT   0x1800u

Magnetic Rotary 6 DIA register settings.

Specified settings for DIA register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_DIA_VDD_MODE_3V

#define MAGNETICROTARY6_DIA_VDD_MODE_3V   0x0000u

◆ MAGNETICROTARY6_DIA_VDD_MODE_5V

#define MAGNETICROTARY6_DIA_VDD_MODE_5V   0x0001u

◆ MAGNETICROTARY6_DIE_BOTTOM

#define MAGNETICROTARY6_DIE_BOTTOM   0

Magnetic Rotary 6 die selection values.

Specified die selection values of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_DIE_TOP

#define MAGNETICROTARY6_DIE_TOP   1

◆ MAGNETICROTARY6_DIR_CCW

#define MAGNETICROTARY6_DIR_CCW   1

◆ MAGNETICROTARY6_DIR_CW

#define MAGNETICROTARY6_DIR_CW   0

Magnetic Rotary 6 rotation direction settings.

Specified settings for rotation direction of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_DISABLE_ABI_OFF

#define MAGNETICROTARY6_DISABLE_ABI_OFF   0x0002u

◆ MAGNETICROTARY6_DISABLE_BRKHALL_SET

#define MAGNETICROTARY6_DISABLE_BRKHALL_SET   0x003Cu

◆ MAGNETICROTARY6_DISABLE_FILTER_DISABLE

#define MAGNETICROTARY6_DISABLE_FILTER_DISABLE   0x0040u

Magnetic Rotary 6 DISABLE register settings.

Specified settings for DISABLE register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_DISABLE_UVW_OFF

#define MAGNETICROTARY6_DISABLE_UVW_OFF   0x0001u

◆ MAGNETICROTARY6_ECC_CHSUM_MASK

#define MAGNETICROTARY6_ECC_CHSUM_MASK   0x007Fu

◆ MAGNETICROTARY6_ECC_EN

#define MAGNETICROTARY6_ECC_EN   0x0080u

Magnetic Rotary 6 ECC register settings.

Specified settings for ECC register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_ERRFL_AGC_WARNING

#define MAGNETICROTARY6_ERRFL_AGC_WARNING   0x0001u

◆ MAGNETICROTARY6_ERRFL_BRKHALL

#define MAGNETICROTARY6_ERRFL_BRKHALL   0x0100u

◆ MAGNETICROTARY6_ERRFL_CMD_ERROR

#define MAGNETICROTARY6_ERRFL_CMD_ERROR   0x0020u

◆ MAGNETICROTARY6_ERRFL_CORDIC_OF

#define MAGNETICROTARY6_ERRFL_CORDIC_OF   0x0400u

Magnetic Rotary 6 ERRFL register settings.

Specified settings for ERRFL register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_ERRFL_CRC_ERROR

#define MAGNETICROTARY6_ERRFL_CRC_ERROR   0x0040u

◆ MAGNETICROTARY6_ERRFL_FRAMING_ERROR

#define MAGNETICROTARY6_ERRFL_FRAMING_ERROR   0x0010u

◆ MAGNETICROTARY6_ERRFL_MAGHALF

#define MAGNETICROTARY6_ERRFL_MAGHALF   0x0002u

◆ MAGNETICROTARY6_ERRFL_OFF_COMP_NOT_FIN

#define MAGNETICROTARY6_ERRFL_OFF_COMP_NOT_FIN   0x0200u

◆ MAGNETICROTARY6_ERRFL_P2RAM_ERROR

#define MAGNETICROTARY6_ERRFL_P2RAM_ERROR   0x0008u

◆ MAGNETICROTARY6_ERRFL_P2RAM_WARNING

#define MAGNETICROTARY6_ERRFL_P2RAM_WARNING   0x0004u

◆ MAGNETICROTARY6_ERRFL_WDTST

#define MAGNETICROTARY6_ERRFL_WDTST   0x0080u

◆ MAGNETICROTARY6_FULL_CIRCLE

#define MAGNETICROTARY6_FULL_CIRCLE   360u

◆ MAGNETICROTARY6_PROG_OTPREF

#define MAGNETICROTARY6_PROG_OTPREF   0x0004u

◆ MAGNETICROTARY6_PROG_PROGEN

#define MAGNETICROTARY6_PROG_PROGEN   0x0001u

◆ MAGNETICROTARY6_PROG_PROGOTP

#define MAGNETICROTARY6_PROG_PROGOTP   0x0008u

◆ MAGNETICROTARY6_PROG_PROGVER

#define MAGNETICROTARY6_PROG_PROGVER   0x0040u

Magnetic Rotary 6 PROG register settings.

Specified settings for PROG register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_SET_DATA_SAMPLE_EDGE

#define MAGNETICROTARY6_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.

◆ MAGNETICROTARY6_SET_DATA_SAMPLE_MIDDLE

#define MAGNETICROTARY6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ MAGNETICROTARY6_SETTINGS1_DIA3_EN

#define MAGNETICROTARY6_SETTINGS1_DIA3_EN   0x0040u

Magnetic Rotary 6 SETTINGS1 register settings.

Specified settings for SETTINGS1 register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_SETTINGS1_K_MAX

#define MAGNETICROTARY6_SETTINGS1_K_MAX   0x0007u

◆ MAGNETICROTARY6_SETTINGS1_K_MIN

#define MAGNETICROTARY6_SETTINGS1_K_MIN   0x0038u

◆ MAGNETICROTARY6_SETTINGS2_ABI_DEC

#define MAGNETICROTARY6_SETTINGS2_ABI_DEC   0x0020u

◆ MAGNETICROTARY6_SETTINGS2_DAECDIS

#define MAGNETICROTARY6_SETTINGS2_DAECDIS   0x0010u

◆ MAGNETICROTARY6_SETTINGS2_DATA_SELECT

#define MAGNETICROTARY6_SETTINGS2_DATA_SELECT   0x0040u

◆ MAGNETICROTARY6_SETTINGS2_DIR_CCW

#define MAGNETICROTARY6_SETTINGS2_DIR_CCW   0x0004u

◆ MAGNETICROTARY6_SETTINGS2_DIR_CW

#define MAGNETICROTARY6_SETTINGS2_DIR_CW   0x0000u

◆ MAGNETICROTARY6_SETTINGS2_DIR_MASK

#define MAGNETICROTARY6_SETTINGS2_DIR_MASK   0x0004u

◆ MAGNETICROTARY6_SETTINGS2_IWIDTH

#define MAGNETICROTARY6_SETTINGS2_IWIDTH   0x0001u

◆ MAGNETICROTARY6_SETTINGS2_NOISESET

#define MAGNETICROTARY6_SETTINGS2_NOISESET   0x0002u

◆ MAGNETICROTARY6_SETTINGS2_PWMON

#define MAGNETICROTARY6_SETTINGS2_PWMON   0x0080u

Magnetic Rotary 6 SETTINGS2 register settings.

Specified settings for SETTINGS2 register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_SETTINGS2_UVW_ABI

#define MAGNETICROTARY6_SETTINGS2_UVW_ABI   0x0008u

◆ MAGNETICROTARY6_SETTINGS3_ABIRES_MASK

#define MAGNETICROTARY6_SETTINGS3_ABIRES_MASK   0x00E0u

Magnetic Rotary 6 SETTINGS3 register settings.

Specified settings for SETTINGS3 register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_SETTINGS3_HYS_MASK

#define MAGNETICROTARY6_SETTINGS3_HYS_MASK   0x0018u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_1PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_1PP   0x0000u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_2PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_2PP   0x0001u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_3PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_3PP   0x0002u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_4PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_4PP   0x0003u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_5PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_5PP   0x0004u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_6PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_6PP   0x0005u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_7PP

#define MAGNETICROTARY6_SETTINGS3_UVWPP_7PP   0x0006u

◆ MAGNETICROTARY6_SETTINGS3_UVWPP_MASK

#define MAGNETICROTARY6_SETTINGS3_UVWPP_MASK   0x0007u

◆ MAGNETICROTARY6_ZPOSL_DIA1_EN

#define MAGNETICROTARY6_ZPOSL_DIA1_EN   0x0040u

◆ MAGNETICROTARY6_ZPOSL_DIA2_EN

#define MAGNETICROTARY6_ZPOSL_DIA2_EN   0x0080u

Magnetic Rotary 6 ZPOSL register settings.

Specified settings for ZPOSL register of Magnetic Rotary 6 Click driver.

◆ MAGNETICROTARY6_ZPOSL_LSB

#define MAGNETICROTARY6_ZPOSL_LSB   0x003Fu