tilt2 2.0.0.0
|
This file contains API for Tilt 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 | tilt2_t |
Click ctx object definition. More... | |
struct | tilt2_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | TILT2_MAP_MIKROBUS(cfg, mikrobus) cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT ); |
#define | TILT2_RETVAL uint8_t |
#define | TILT2_OK 0x00 |
#define | TILT2_INIT_ERROR 0xFF |
#define | TILT2_TILT_DETECTION 0x01 |
#define | TILT2_TILT_NO_DETECTION 0x00 |
Functions | |
void | tilt2_cfg_setup (tilt2_cfg_t *cfg) |
Config Object Initialization function. | |
TILT2_RETVAL | tilt2_init (tilt2_t *ctx, tilt2_cfg_t *cfg) |
Initialization function. | |
uint8_t | tilt2_tilt_detection (tilt2_t *ctx) |
Tilt detection function. | |
This file contains API for Tilt 2 Click driver.