adc23 2.1.0.0
ADC 23 Registers Settings

Settings for registers of ADC 23 Click driver. More...

Macros

#define ADC23_INT_VREF_2_5V   2.5f
 ADC 23 default value of the internal voltage reference.
 
#define ADC23_SET_CTRL_STOP   0x01
 ADC 23 description of CONTROL register data values.
 
#define ADC23_SET_CTRL_START   0x02
 
#define ADC23_SET_CTRL_SW_RESET   0x58
 
#define ADC23_MAX_REG_ADDR   0x0F
 
#define ADC23_CONV_V_TO_MV   1000.0f
 ADC 23 description of calculation data values.
 
#define ADC23_FULL_SCALE_OUT_DATA_RANGE   0x7FFFFFul
 ADC 23 description of the ADC data range.
 
#define ADC23_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ADC23_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of ADC 23 Click driver.

Macro Definition Documentation

◆ ADC23_CONV_V_TO_MV

#define ADC23_CONV_V_TO_MV   1000.0f

ADC 23 description of calculation data values.

Specified calculation data values of ADC 23 Click driver.

◆ ADC23_FULL_SCALE_OUT_DATA_RANGE

#define ADC23_FULL_SCALE_OUT_DATA_RANGE   0x7FFFFFul

ADC 23 description of the ADC data range.

Specified ADC data range of ADC 23 Click driver.

◆ ADC23_INT_VREF_2_5V

#define ADC23_INT_VREF_2_5V   2.5f

ADC 23 default value of the internal voltage reference.

Default value of the internal voltage reference of ADC 23 Click driver.

◆ ADC23_MAX_REG_ADDR

#define ADC23_MAX_REG_ADDR   0x0F

◆ ADC23_SET_CTRL_START

#define ADC23_SET_CTRL_START   0x02

◆ ADC23_SET_CTRL_STOP

#define ADC23_SET_CTRL_STOP   0x01

ADC 23 description of CONTROL register data values.

Specified CONTROL register data values of ADC 23 Click driver.

◆ ADC23_SET_CTRL_SW_RESET

#define ADC23_SET_CTRL_SW_RESET   0x58

◆ ADC23_SET_DATA_SAMPLE_EDGE

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

◆ ADC23_SET_DATA_SAMPLE_MIDDLE

#define ADC23_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE