Settings for registers of AMR Angle 2 Click driver.
More...
Settings for registers of AMR Angle 2 Click driver.
◆ AMRANGLE2_ADC_RESOLUTION
#define AMRANGLE2_ADC_RESOLUTION 0x0FFF |
◆ AMRANGLE2_ADC_VREF
#define AMRANGLE2_ADC_VREF 3.3 |
AMR Angle 2 Vsin and Vcos calculation values.
Specified Vsin and Vcos calculation values of AMR Angle 2 Click driver.
◆ AMRANGLE2_ANGLE_ZERO_OFFSET
#define AMRANGLE2_ANGLE_ZERO_OFFSET 90.0 |
◆ AMRANGLE2_AVGON
#define AMRANGLE2_AVGON 0x0200 |
◆ AMRANGLE2_BCH01_BIPOLAR_FULLY_DIFF
#define AMRANGLE2_BCH01_BIPOLAR_FULLY_DIFF 0x0400 |
◆ AMRANGLE2_BCH01_UNIPOLAR
#define AMRANGLE2_BCH01_UNIPOLAR 0x0000 |
AMR Angle 2 bipolar register settings.
Specified bipolar register settings of AMR Angle 2 Click driver.
◆ AMRANGLE2_BCH23_BIPOLAR_FULLY_DIFF
#define AMRANGLE2_BCH23_BIPOLAR_FULLY_DIFF 0x0200 |
◆ AMRANGLE2_BCH23_UNIPOLAR
#define AMRANGLE2_BCH23_UNIPOLAR 0x0000 |
◆ AMRANGLE2_CHAN_ID_ENABLE
#define AMRANGLE2_CHAN_ID_ENABLE 0x0004 |
◆ AMRANGLE2_CHSEL_AIN0
#define AMRANGLE2_CHSEL_AIN0 0x0000 |
◆ AMRANGLE2_CHSEL_AIN1
#define AMRANGLE2_CHSEL_AIN1 0x0080 |
◆ AMRANGLE2_CHSEL_AIN2
#define AMRANGLE2_CHSEL_AIN2 0x0100 |
◆ AMRANGLE2_CHSEL_AIN3
#define AMRANGLE2_CHSEL_AIN3 0x0180 |
◆ AMRANGLE2_ECHO_ON
#define AMRANGLE2_ECHO_ON 0x0004 |
◆ AMRANGLE2_NAVG_16
#define AMRANGLE2_NAVG_16 0x0100 |
◆ AMRANGLE2_NAVG_32
#define AMRANGLE2_NAVG_32 0x0180 |
◆ AMRANGLE2_NAVG_4
#define AMRANGLE2_NAVG_4 0x0000 |
◆ AMRANGLE2_NAVG_8
#define AMRANGLE2_NAVG_8 0x0080 |
◆ AMRANGLE2_NSCAN_12
#define AMRANGLE2_NSCAN_12 0x0040 |
◆ AMRANGLE2_NSCAN_16
#define AMRANGLE2_NSCAN_16 0x0060 |
◆ AMRANGLE2_NSCAN_4
#define AMRANGLE2_NSCAN_4 0x0000 |
◆ AMRANGLE2_NSCAN_8
#define AMRANGLE2_NSCAN_8 0x0020 |
◆ AMRANGLE2_PM_AUTO_SHUTDOWN
#define AMRANGLE2_PM_AUTO_SHUTDOWN 0x0008 |
◆ AMRANGLE2_PM_AUTO_STANDBY
#define AMRANGLE2_PM_AUTO_STANDBY 0x0010 |
◆ AMRANGLE2_PM_NORMAL
#define AMRANGLE2_PM_NORMAL 0x0000 |
◆ AMRANGLE2_RADIANS_TO_DEGREES
#define AMRANGLE2_RADIANS_TO_DEGREES 57.295779513 |
AMR Angle 2 angle calculation values.
Specified angle calculation values of AMR Angle 2 Click driver.
◆ AMRANGLE2_RANGE01_FULL_VREF
#define AMRANGLE2_RANGE01_FULL_VREF 0x0400 |
◆ AMRANGLE2_RANGE01_HALF_VREF
#define AMRANGLE2_RANGE01_HALF_VREF 0x0000 |
AMR Angle 2 range register settings.
Specified range register settings of AMR Angle 2 Click driver.
◆ AMRANGLE2_RANGE23_FULL_VREF
#define AMRANGLE2_RANGE23_FULL_VREF 0x0200 |
◆ AMRANGLE2_RANGE23_HALF_VREF
#define AMRANGLE2_RANGE23_HALF_VREF 0x0000 |
◆ AMRANGLE2_REFSEL_EXT_DIFFERENTIAL
#define AMRANGLE2_REFSEL_EXT_DIFFERENTIAL 0x0400 |
AMR Angle 2 adc configuration register settings.
Specified adc configuration register settings of AMR Angle 2 Click driver.
◆ AMRANGLE2_RESET_ALL
#define AMRANGLE2_RESET_ALL 0x0040 |
◆ AMRANGLE2_RESET_FIFO
#define AMRANGLE2_RESET_FIFO 0x0020 |
◆ AMRANGLE2_SCAN_CUSTOM_EXT
#define AMRANGLE2_SCAN_CUSTOM_EXT 0x4000 |
◆ AMRANGLE2_SCAN_CUSTOM_INT
#define AMRANGLE2_SCAN_CUSTOM_INT 0x3800 |
◆ AMRANGLE2_SCAN_MANUAL
#define AMRANGLE2_SCAN_MANUAL 0x0800 |
◆ AMRANGLE2_SCAN_REPEAT
#define AMRANGLE2_SCAN_REPEAT 0x1000 |
◆ AMRANGLE2_SCAN_SAMPLE_SET
#define AMRANGLE2_SCAN_SAMPLE_SET 0x4800 |
◆ AMRANGLE2_SCAN_STANDARD_EXT
#define AMRANGLE2_SCAN_STANDARD_EXT 0x2000 |
◆ AMRANGLE2_SCAN_STANDARD_INT
#define AMRANGLE2_SCAN_STANDARD_INT 0x1800 |
◆ AMRANGLE2_SCAN_UNCHANGED
#define AMRANGLE2_SCAN_UNCHANGED 0x0000 |
AMR Angle 2 adc mode register settings.
Specified adc mode register settings of AMR Angle 2 Click driver.
◆ AMRANGLE2_SCAN_UPPER_EXT
#define AMRANGLE2_SCAN_UPPER_EXT 0x3000 |
◆ AMRANGLE2_SCAN_UPPER_INT
#define AMRANGLE2_SCAN_UPPER_INT 0x2800 |
◆ AMRANGLE2_SET_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 amrangle2_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.
◆ AMRANGLE2_SET_DATA_SAMPLE_MIDDLE
◆ AMRANGLE2_SPM_FULL_SHUTDOWN
#define AMRANGLE2_SPM_FULL_SHUTDOWN 0x0008 |
◆ AMRANGLE2_SPM_NORMAL
#define AMRANGLE2_SPM_NORMAL 0x0000 |
◆ AMRANGLE2_SPM_PARTIAL_SHUTDOWN
#define AMRANGLE2_SPM_PARTIAL_SHUTDOWN 0x0010 |
◆ AMRANGLE2_SWCNV_START
#define AMRANGLE2_SWCNV_START 0x0002 |
◆ AMRANGLE2_TEMP_NUM_CONVERSIONS
#define AMRANGLE2_TEMP_NUM_CONVERSIONS 100 |
◆ AMRANGLE2_TEMP_TCAL
#define AMRANGLE2_TEMP_TCAL 25.0 |
◆ AMRANGLE2_TEMP_TCO
#define AMRANGLE2_TEMP_TCO 0.003173 |
◆ AMRANGLE2_TEMP_VDD
#define AMRANGLE2_TEMP_VDD 3.3 |
AMR Angle 2 temperature calculation values.
Specified temperature calculation values of AMR Angle 2 Click driver.