c2x2key 2.0.0.0
|
This file contains API for 2x2 key Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | c2x2key_t |
Click ctx object definition. More... | |
struct | c2x2key_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | C2X2KEY_MAP_MIKROBUS(cfg, mikrobus) |
#define | C2X2KEY_RETVAL uint8_t |
#define | C2X2KEY_OK 0x00 |
#define | C2X2KEY_INIT_ERROR 0xFF |
Functions | |
void | c2x2key_cfg_setup (c2x2key_cfg_t *cfg) |
Config Object Initialization function. | |
C2X2KEY_RETVAL | c2x2key_init (c2x2key_t *ctx, c2x2key_cfg_t *cfg) |
Initialization function. | |
void | c2x2key_default_cfg (c2x2key_t *ctx) |
Click Default Configuration function. | |
uint8_t | c2x2key_t1_state (c2x2key_t *ctx) |
Taster 1 state function. | |
uint8_t | c2x2key_t2_state (c2x2key_t *ctx) |
Taster 2 state function. | |
uint8_t | c2x2key_t3_state (c2x2key_t *ctx) |
Taster 3 state function. | |
uint8_t | c2x2key_t4_state (c2x2key_t *ctx) |
Taster 4 state function. | |
uint8_t | c2x2key_taster_pressed (c2x2key_t *ctx) |
Taster Pressed function. | |
This file contains API for 2x2 key Click driver.