adc 2.0.0.0
|
This file contains API for ADC Click driver. More...
#include "drv_digital_out.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | adc_t |
Click context object definition. More... | |
struct | adc_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | ADC_MAP_MIKROBUS(cfg, mikrobus) |
#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 |
Functions | |
void | adc_cfg_setup (adc_cfg_t *cfg) |
Configuration Object Setup function. | |
ADC_RETVAL | adc_init (adc_t *ctx, adc_cfg_t *cfg) |
Click Initialization function. | |
uint16_t | adc_get_single_ended_ch (adc_t *ctx, uint8_t channel) |
Get Single-Ended Channel function. | |
uint16_t | adc_get_differential_ch (adc_t *ctx, uint8_t channel) |
Get Pseudo-Differential Pair function. | |
This file contains API for ADC Click driver.