analogkey 2.0.0.0
|
Functions | |
void | analogkey_cfg_setup (analogkey_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | analogkey_init (analogkey_t *ctx, analogkey_cfg_t *cfg) |
Initialization function. | |
uint16_t | analogkey_generic_read (analogkey_t *ctx) |
Generic read function. | |
float | analogkey_read_voltage (analogkey_t *ctx) |
Generic read function. | |
analogkey_key_id_t | analogkey_get_key (analogkey_t *ctx, float an_value) |
Detects which button is pressed. | |
void analogkey_cfg_setup | ( | analogkey_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint16_t analogkey_generic_read | ( | analogkey_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.
analogkey_key_id_t analogkey_get_key | ( | analogkey_t * | ctx, |
float | an_value ) |
Detects which button is pressed.
ctx | Click object. |
adc_value | ADC value. |
@description This function returns which button is pressed.
err_t analogkey_init | ( | analogkey_t * | ctx, |
analogkey_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
float analogkey_read_voltage | ( | analogkey_t * | ctx | ) |
Generic read function.
ctx | Click object. |
@description This function read ADC data.