pot
2.0.0.0
|
Functions | |
void | pot_cfg_setup (pot_cfg_t *cfg) |
Config Object Initialization function. More... | |
err_t | pot_init (pot_t *ctx, pot_cfg_t *cfg) |
Initialization function. More... | |
uint16_t | pot_generic_read (pot_t *ctx) |
Generic read function. More... | |
float | pot_read_voltage (pot_t *ctx) |
Generic read voltage function. More... | |
void pot_cfg_setup | ( | pot_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint16_t pot_generic_read | ( | pot_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
float pot_read_voltage | ( | pot_t * | ctx | ) |
Generic read voltage function.
ctx | Click object. |
@description This function read voltage level of AN pin.