tilt3 2.0.0.0
|
This file contains API for Tilt 3 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | tilt3_t |
Tilt 3 Click context object. More... | |
struct | tilt3_cfg_t |
Tilt 3 Click configuration object. More... | |
Macros | |
#define | TILT3_SWITCH_OFF 0 |
Tilt 3 tilt switch states. | |
#define | TILT3_SWITCH_ON 1 |
#define | TILT3_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | tilt3_return_value_t { TILT3_OK = 0 , TILT3_ERROR = -1 } |
Tilt 3 Click return value data. More... | |
Functions | |
void | tilt3_cfg_setup (tilt3_cfg_t *cfg) |
Tilt 3 configuration object setup function. | |
err_t | tilt3_init (tilt3_t *ctx, tilt3_cfg_t *cfg) |
Tilt 3 initialization function. | |
void | tilt3_enable_switch (tilt3_t *ctx) |
Tilt 3 enable switch function. | |
void | tilt3_disable_switch (tilt3_t *ctx) |
Tilt 3 disable switch function. | |
uint8_t | tilt3_get_switch_state (tilt3_t *ctx) |
Tilt 3 get switch state function. | |
This file contains API for Tilt 3 Click Driver.
enum tilt3_return_value_t |