keylock 2.0.0.0
|
This file contains API for Keylock Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | keylock_t |
Click ctx object definition. More... | |
struct | keylock_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | KEYLOCK_MAP_MIKROBUS(cfg, mikrobus) |
#define | KEYLOCK_RETVAL uint8_t |
#define | KEYLOCK_OK 0x00 |
#define | KEYLOCK_INIT_ERROR 0xFF |
#define | KEYLOCK_KEY_POS_1 1 |
#define | KEYLOCK_KEY_POS_2 2 |
#define | KEYLOCK_KEY_POS_3 3 |
#define | KEYLOCK_ERROR_FLAG 0 |
Functions | |
void | keylock_cfg_setup (keylock_cfg_t *cfg) |
Config Object Initialization function. | |
KEYLOCK_RETVAL | keylock_init (keylock_t *ctx, keylock_cfg_t *cfg) |
Initialization function. | |
uint8_t | keylock_check_pin (keylock_t *ctx, uint8_t pin) |
Checks pin state. | |
uint8_t | keylock_get_position (keylock_t *ctx) |
Gets key position. | |
uint8_t | keylock_check_an_state (keylock_t *ctx) |
Checks AN pin state. | |
uint8_t | keylock_check_pwm_state (keylock_t *ctx) |
Checks PWM pin state. | |
uint8_t | keylock_check_int_state (keylock_t *ctx) |
Checks INT pin state. | |
This file contains API for Keylock Click driver.