c4x4key 2.0.0.0
|
This file contains API for 4x4 Key Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_spi_master.h"
Go to the source code of this file.
Data Structures | |
struct | c4x4key_t |
Click ctx object definition. More... | |
struct | c4x4key_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | C4X4KEY_MAP_MIKROBUS(cfg, mikrobus) |
#define | C4X4KEY_RETVAL uint8_t |
#define | C4X4KEY_OK 0x00 |
#define | C4X4KEY_INIT_ERROR 0xFF |
#define | C4X4KEY_BUTTON_0 0xEFFF |
#define | C4X4KEY_BUTTON_1 0xFFFE |
#define | C4X4KEY_BUTTON_2 0xFFFD |
#define | C4X4KEY_BUTTON_3 0xFFFB |
#define | C4X4KEY_BUTTON_4 0xFFEF |
#define | C4X4KEY_BUTTON_5 0xFFDF |
#define | C4X4KEY_BUTTON_6 0xFFBF |
#define | C4X4KEY_BUTTON_7 0xFEFF |
#define | C4X4KEY_BUTTON_8 0xFDFF |
#define | C4X4KEY_BUTTON_9 0xFBFF |
#define | C4X4KEY_BUTTON_A 0xFFF7 |
#define | C4X4KEY_BUTTON_B 0xFF7F |
#define | C4X4KEY_BUTTON_C 0xF7FF |
#define | C4X4KEY_BUTTON_D 0xBFFF |
#define | C4X4KEY_BUTTON_STAR 0x7FFF |
#define | C4X4KEY_BUTTON_HASH 0xDFFF |
#define | C4X4KEY_MAX_16_BIT 0xFFFF |
Functions | |
void | c4x4key_cfg_setup (c4x4key_cfg_t *cfg) |
Config Object Initialization function. | |
C4X4KEY_RETVAL | c4x4key_init (c4x4key_t *ctx, c4x4key_cfg_t *cfg) |
Initialization function. | |
void | c4x4key_generic_transfer (c4x4key_t *ctx, uint8_t *wr_buf, uint16_t wr_len, uint8_t *rd_buf, uint16_t rd_len) |
Generic transfer function. | |
uint16_t | c4x4key_get_data (c4x4key_t *ctx) |
Get 16-bit data function. | |
uint8_t | c4x4key_get_btn_position (c4x4key_t *ctx) |
Get position pressed button function. | |
This file contains API for 4x4 Key Click driver.