adc21 2.1.0.0
ADC 21 Settings

Settings of ADC 21 Click driver. More...

Macros

#define ADC21_CHANNEL_0   0
 ADC 21 channel selection setting.
 
#define ADC21_CHANNEL_1   1
 
#define ADC21_CHANNEL_2   2
 
#define ADC21_CHANNEL_3   3
 
#define ADC21_CHANNEL_4   4
 
#define ADC21_CHANNEL_5   5
 
#define ADC21_CHANNEL_6   6
 
#define ADC21_CHANNEL_7   7
 
#define ADC21_DATA_RESOLUTION   0x0FFF
 ADC 21 data setting.
 
#define ADC21_AVCC_3V3   3.3
 
#define ADC21_AVCC_5V   5.0
 
#define ADC21_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ADC21_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings of ADC 21 Click driver.

Macro Definition Documentation

◆ ADC21_AVCC_3V3

#define ADC21_AVCC_3V3   3.3

◆ ADC21_AVCC_5V

#define ADC21_AVCC_5V   5.0

◆ ADC21_CHANNEL_0

#define ADC21_CHANNEL_0   0

ADC 21 channel selection setting.

Specified setting for channel selection of ADC 21 Click driver.

◆ ADC21_CHANNEL_1

#define ADC21_CHANNEL_1   1

◆ ADC21_CHANNEL_2

#define ADC21_CHANNEL_2   2

◆ ADC21_CHANNEL_3

#define ADC21_CHANNEL_3   3

◆ ADC21_CHANNEL_4

#define ADC21_CHANNEL_4   4

◆ ADC21_CHANNEL_5

#define ADC21_CHANNEL_5   5

◆ ADC21_CHANNEL_6

#define ADC21_CHANNEL_6   6

◆ ADC21_CHANNEL_7

#define ADC21_CHANNEL_7   7

◆ ADC21_DATA_RESOLUTION

#define ADC21_DATA_RESOLUTION   0x0FFF

ADC 21 data setting.

Specified data settings of ADC 21 Click driver.

◆ ADC21_SET_DATA_SAMPLE_EDGE

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

◆ ADC21_SET_DATA_SAMPLE_MIDDLE

#define ADC21_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE