keylock2 2.0.0.0
|
This file contains API for Key Lock 2 Click driver. More...
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | keylock2_t |
Click ctx object definition. More... | |
struct | keylock2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | KEYLOCK2_MAP_MIKROBUS(cfg, mikrobus) |
#define | KEYLOCK2_RETVAL uint8_t |
#define | KEYLOCK2_OK 0x00 |
#define | KEYLOCK2_INIT_ERROR 0xFF |
#define | KEYLOCK2_STATE_RST_PIN 0x01 |
#define | KEYLOCK2_STATE_PWM_PIN 0x02 |
#define | KEYLOCK2_STATE_INT_PIN 0x03 |
#define | KEYLOCK2_POSITION_1 0x01 |
#define | KEYLOCK2_POSITION_2 0x02 |
#define | KEYLOCK2_POSITION_3 0x03 |
Functions | |
void | keylock2_cfg_setup (keylock2_cfg_t *cfg) |
Config Object Initialization function. | |
KEYLOCK2_RETVAL | keylock2_init (keylock2_t *ctx, keylock2_cfg_t *cfg) |
Initialization function. | |
uint8_t | keylock2_get_pin_state (keylock2_t *ctx, uint8_t pin) |
Get Pin State. | |
uint8_t | keylock2_get_position (keylock2_t *ctx) |
Get Pin State. | |
This file contains API for Key Lock 2 Click driver.