tamper2 2.0.0.0
|
This file contains API for Tamper 2 Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | tamper2_t |
Click ctx object definition. More... | |
struct | tamper2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | TAMPER2_MAP_MIKROBUS(cfg, mikrobus) |
#define | TAMPER2_RETVAL uint8_t |
#define | TAMPER2_OK 0x00 |
#define | TAMPER2_INIT_ERROR 0xFF |
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. | |
This file contains API for Tamper 2 Click driver.