tamper2 2.0.0.0
|
Functions | |
void | tamper2_cfg_setup (tamper2_cfg_t *cfg) |
Config Object Initialization function. | |
TAMPER2_RETVAL | tamper2_init (tamper2_t *ctx, tamper2_cfg_t *cfg) |
Initialization function. | |
uint8_t | tamper2_get_off_state (tamper2_t *ctx) |
Switch OFF detect. | |
uint8_t | tamper2_get_on_state (tamper2_t *ctx) |
Switch ON detect. | |
void tamper2_cfg_setup | ( | tamper2_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t tamper2_get_off_state | ( | tamper2_t * | ctx | ) |
Switch OFF detect.
ctx | Click object. @description This function detects if the switch is in OFF state. |
uint8_t tamper2_get_on_state | ( | tamper2_t * | ctx | ) |
Switch ON detect.
ctx | Click object. @description This function detects if the switch is in ON state. |
TAMPER2_RETVAL tamper2_init | ( | tamper2_t * | ctx, |
tamper2_cfg_t * | cfg ) |
Initialization function.
tamper2 | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.