pot2 2.0.0.0
|
Functions | |
void | pot2_cfg_setup (pot2_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | pot2_init (pot2_t *ctx, pot2_cfg_t *cfg) |
Initialization function. | |
err_t | pot2_read_adc (pot2_t *ctx, uint16_t *data_out) |
Generic read function. | |
err_t | pot2_read_pin_voltage (pot2_t *ctx, float *data_out) |
Generic read function. | |
void pot2_cfg_setup | ( | pot2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
err_t pot2_init | ( | pot2_t * | ctx, |
pot2_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.
err_t pot2_read_adc | ( | pot2_t * | ctx, |
uint16_t * | data_out ) |
Generic read function.
ctx | Click object. |
data_out | ADC data value on the pin. |
@description This function reads ADC data value on the pin.
err_t pot2_read_pin_voltage | ( | pot2_t * | ctx, |
float * | data_out ) |
Generic read function.
ctx | Click object. |
data_out | Voltage value on the pin. |
@description This function reads voltage value on the pin.