adc 2.0.0.0
|
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. | |
void adc_cfg_setup | ( | adc_cfg_t * | cfg | ) |
Configuration Object Setup function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to initial state.
uint16_t adc_get_differential_ch | ( | adc_t * | ctx, |
uint8_t | channel ) |
Get Pseudo-Differential Pair function.
ctx | Click object. |
channel | Differential channels selector. (CH01 means that CH0 is IN+, and CH1 is IN-). |
@description This function returns voltage level of selected pseudo-differential pair in millivolts. The voltage value will be placed also in the corresponding field of ctx object.
uint16_t adc_get_single_ended_ch | ( | adc_t * | ctx, |
uint8_t | channel ) |
Get Single-Ended Channel function.
ctx | Click object. |
channel | Single-Ended channel selector. (From CH0 to CH3). |
@description This function returns voltage level of selected single-ended channel in millivolts. The voltage value will be placed also in the corresponding field of ctx object.
ADC_RETVAL adc_init | ( | adc_t * | ctx, |
adc_cfg_t * | cfg ) |
Click Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.