tilt 2.0.0.0
|
This file contains API for Tilt Click driver. More...
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | tilt_t |
Click ctx object definition. More... | |
struct | tilt_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | TILT_MAP_MIKROBUS(cfg, mikrobus) |
#define | TILT_RETVAL uint8_t |
#define | TILT_OK 0x00 |
#define | TILT_INIT_ERROR 0xFF |
#define | TILT_NO_DETECTION 0 |
#define | TILT_DETECTION 1 |
#define | TILT_LEFT_DETECTION 2 |
#define | TILT_RIGHT_DETECTION 3 |
#define | TILT_UP_DETECTION 4 |
#define | TILT_DOWN_DETECTION 5 |
Functions | |
void | tilt_cfg_setup (tilt_cfg_t *cfg) |
Config Object Initialization function. | |
TILT_RETVAL | tilt_init (tilt_t *ctx, tilt_cfg_t *cfg) |
Initialization function. | |
uint8_t | tilt_left (tilt_t *ctx) |
Check the tilt left movement's direction function. | |
uint8_t | tilt_right (tilt_t *ctx) |
Check the tilt right movement's direction function. | |
uint8_t | tilt_up (tilt_t *ctx) |
Check the tilt up movement's direction function. | |
uint8_t | tilt_down (tilt_t *ctx) |
Check the tilt down movement's direction function. | |
uint8_t | tilt_direction (tilt_t *ctx) |
Check the tilt movement's direction function. | |
This file contains API for Tilt Click driver.