adc19 2.0.0.0
|
This file contains API for ADC 19 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | adc19_t |
ADC 19 Click context object. More... | |
struct | adc19_cfg_t |
ADC 19 Click configuration object. More... | |
Macros | |
#define | ADC19_INPUT_CHANNEL_1 1 |
ADC 19 input channel selection. | |
#define | ADC19_INPUT_CHANNEL_2 2 |
#define | ADC19_RESOLUTION_12BIT 0x0FFF |
ADC 19 resolution and vref settings. | |
#define | ADC19_VREF_3V3 3.3 |
#define | ADC19_VREF_5V 5.0 |
#define | ADC19_SET_DATA_SAMPLE_EDGE SET_SPI_DATA_SAMPLE_EDGE |
Data sample selection. | |
#define | ADC19_SET_DATA_SAMPLE_MIDDLE SET_SPI_DATA_SAMPLE_MIDDLE |
#define | ADC19_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | adc19_return_value_t { ADC19_OK = 0 , ADC19_ERROR = -1 } |
ADC 19 Click return value data. More... | |
Functions | |
void | adc19_cfg_setup (adc19_cfg_t *cfg) |
ADC 19 configuration object setup function. | |
err_t | adc19_init (adc19_t *ctx, adc19_cfg_t *cfg) |
ADC 19 initialization function. | |
void | adc19_set_vref (adc19_t *ctx, float vref) |
ADC 19 set vref function. | |
err_t | adc19_set_input_channel (adc19_t *ctx, uint8_t input_ch) |
ADC 19 set input channel function. | |
err_t | adc19_get_voltage (adc19_t *ctx, float *voltage) |
ADC 19 get voltage function. | |
This file contains API for ADC 19 Click Driver.
enum adc19_return_value_t |