adc2 2.0.0.0
|
Functions | |
void | adc2_cfg_setup (adc2_cfg_t *cfg) |
Config Object Initialization function. | |
ADC2_RETVAL | adc2_init (adc2_t *ctx, adc2_cfg_t *cfg) |
Initialization function. | |
float | adc2_read_adc_data (adc2_t *ctx) |
Read adc data function. | |
void | adc2_set_vref (adc2_t *ctx, float vref) |
Setting reference voltage. | |
void adc2_cfg_setup | ( | adc2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
ADC2_RETVAL adc2_init | ( | adc2_t * | ctx, |
adc2_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float adc2_read_adc_data | ( | adc2_t * | ctx | ) |
Read adc data function.
ctx | Click object. |
@description Function is used to read 3 bytes from ADC convertor.
void adc2_set_vref | ( | adc2_t * | ctx, |
float | vref ) |
Setting reference voltage.
ctx | Click object. |
vref | Reference mV. |
@description Function is used to set reference voltage.