analogkey 2.0.0.0
|
This file contains API for Analog Key Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_analog_in.h"
Go to the source code of this file.
Data Structures | |
struct | analogkey_t |
Click ctx object definition. More... | |
struct | analogkey_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | ANALOGKEY_MAP_MIKROBUS(cfg, mikrobus) cfg.an_pin = MIKROBUS( mikrobus, MIKROBUS_AN ) |
Enumerations | |
enum | analogkey_key_id_t { ANALOGKEY_TOUCH_KEY_NONE , ANALOGKEY_TOUCH_KEY_1 , ANALOGKEY_TOUCH_KEY_2 , ANALOGKEY_TOUCH_KEY_3 , ANALOGKEY_TOUCH_KEY_4 , ANALOGKEY_TOUCH_KEY_5 , ANALOGKEY_TOUCH_KEY_6 } |
Click touch key definition. More... | |
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. | |
This file contains API for Analog Key Click driver.