adc 2.0.0.0

Data Structures

struct  adc_t
 Click context object definition. More...
 
struct  adc_cfg_t
 Click configuration structure definition. More...
 

Macros

#define ADC_RETVAL   uint8_t
 Click error code definition.
 
#define ADC_OK   0x00
 
#define ADC_INIT_ERROR   0xFF
 
#define ADC_VREF_3300MV   3300
 Click reference voltage definition.
 
#define ADC_VREF_4096MV   4096
 
#define ADC_VREF_5000MV   5000
 
#define ADC_CH0_OR_CH01   0x00
 Click channel definition.
 
#define ADC_CH1_OR_CH10   0x01
 
#define ADC_CH2_OR_CH23   0x02
 
#define ADC_CH3_OR_CH32   0x03
 

Detailed Description

Macro Definition Documentation

◆ ADC_CH0_OR_CH01

#define ADC_CH0_OR_CH01   0x00

Click channel definition.

◆ ADC_CH1_OR_CH10

#define ADC_CH1_OR_CH10   0x01

◆ ADC_CH2_OR_CH23

#define ADC_CH2_OR_CH23   0x02

◆ ADC_CH3_OR_CH32

#define ADC_CH3_OR_CH32   0x03

◆ ADC_INIT_ERROR

#define ADC_INIT_ERROR   0xFF

◆ ADC_OK

#define ADC_OK   0x00

◆ ADC_RETVAL

#define ADC_RETVAL   uint8_t

Click error code definition.

◆ ADC_VREF_3300MV

#define ADC_VREF_3300MV   3300

Click reference voltage definition.

◆ ADC_VREF_4096MV

#define ADC_VREF_4096MV   4096

◆ ADC_VREF_5000MV

#define ADC_VREF_5000MV   5000