hallcurrent16 2.1.0.0
Hall Current 16 Registers Settings

Settings for registers of Hall Current 16 Click driver. More...

Macros

#define HALLCURRENT16_ADDR_IN_CH_SEL_1   0x00
 Hall Current 16 input channel selection.
 
#define HALLCURRENT16_ADDR_IN_CH_SEL_2   0x08
 
#define HALLCURRENT16_RESOLUTION_12BIT   0x0FFFu
 Hall Current 16 resolution and vref settings.
 
#define HALLCURRENT16_VREF_3V3   3.3f
 
#define HALLCURRENT16_VREF_5V   5.0f
 
#define HALLCURRENT16_SENS_CALC_GAIN_0   26.4f
 Hall Current 16 sensitivity.
 
#define HALLCURRENT16_SENS_CALC_GAIN_1   33.0f
 
#define HALLCURRENT16_SENS_CALC_GAIN_2   39.6f
 
#define HALLCURRENT16_SENS_CALC_GAIN_3   19.8f
 
#define HALLCURRENT16_ADC_NUM_OF_MEASURE   1000u
 Hall Current 16 data values to calculate.
 
#define HALLCURRENT16_CONV_TO_MILI   1000.0f
 
#define HALLCURRENT16_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define HALLCURRENT16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Hall Current 16 Click driver.

Macro Definition Documentation

◆ HALLCURRENT16_ADC_NUM_OF_MEASURE

#define HALLCURRENT16_ADC_NUM_OF_MEASURE   1000u

Hall Current 16 data values to calculate.

Specified data values to calculate of Hall Current 16 Click driver.

◆ HALLCURRENT16_ADDR_IN_CH_SEL_1

#define HALLCURRENT16_ADDR_IN_CH_SEL_1   0x00

Hall Current 16 input channel selection.

Specified input channel selection data values of Hall Current 16 Click driver.

◆ HALLCURRENT16_ADDR_IN_CH_SEL_2

#define HALLCURRENT16_ADDR_IN_CH_SEL_2   0x08

◆ HALLCURRENT16_CONV_TO_MILI

#define HALLCURRENT16_CONV_TO_MILI   1000.0f

◆ HALLCURRENT16_RESOLUTION_12BIT

#define HALLCURRENT16_RESOLUTION_12BIT   0x0FFFu

Hall Current 16 resolution and vref settings.

Specified resolution and vref data values of Hall Current 16 Click driver.

◆ HALLCURRENT16_SENS_CALC_GAIN_0

#define HALLCURRENT16_SENS_CALC_GAIN_0   26.4f

Hall Current 16 sensitivity.

Specified sensitivity data values of Hall Current 16 Click driver.

◆ HALLCURRENT16_SENS_CALC_GAIN_1

#define HALLCURRENT16_SENS_CALC_GAIN_1   33.0f

◆ HALLCURRENT16_SENS_CALC_GAIN_2

#define HALLCURRENT16_SENS_CALC_GAIN_2   39.6f

◆ HALLCURRENT16_SENS_CALC_GAIN_3

#define HALLCURRENT16_SENS_CALC_GAIN_3   19.8f

◆ HALLCURRENT16_SET_DATA_SAMPLE_EDGE

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

◆ HALLCURRENT16_SET_DATA_SAMPLE_MIDDLE

#define HALLCURRENT16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ HALLCURRENT16_VREF_3V3

#define HALLCURRENT16_VREF_3V3   3.3f

◆ HALLCURRENT16_VREF_5V

#define HALLCURRENT16_VREF_5V   5.0f