keylock 2.0.0.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. | |
void keylock_cfg_setup | ( | keylock_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t keylock_check_an_state | ( | keylock_t * | ctx | ) |
Checks AN pin state.
ctx | Click object. |
@description Function checks the state of AN pin.
uint8_t keylock_check_int_state | ( | keylock_t * | ctx | ) |
Checks INT pin state.
ctx | Click object. |
@description Function checks the state of INT pin.
uint8_t keylock_check_pin | ( | keylock_t * | ctx, |
uint8_t | pin ) |
Checks pin state.
ctx | Click object. |
pin | 8-bit data that defines which pins state should be checked. |
@description Function is used to check the state of the pin chosen by the user.
uint8_t keylock_check_pwm_state | ( | keylock_t * | ctx | ) |
Checks PWM pin state.
ctx | Click object. |
@description Function checks the state of PWM pin.
uint8_t keylock_get_position | ( | keylock_t * | ctx | ) |
Gets key position.
ctx | Click object. |
@description Function is used to check in which position the key currently is.
KEYLOCK_RETVAL keylock_init | ( | keylock_t * | ctx, |
keylock_cfg_t * | cfg ) |
Initialization function.
keylock | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.