tilt4 2.1.0.0
|
This file contains API for Tilt 4 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | tilt4_t |
Tilt 4 Click context object. More... | |
struct | tilt4_cfg_t |
Tilt 4 Click configuration object. More... | |
Macros | |
#define | TILT4_PIN_STATE_HIGH 0x01 |
Tilt 4 description setting. More... | |
#define | TILT4_PIN_STATE_LOW 0x00 |
#define | TILT4_SWITCH_OFF 0x00 |
Tilt 4 tilt switch states. More... | |
#define | TILT4_SWITCH_ON 0x01 |
#define | TILT4_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. More... | |
Enumerations | |
enum | tilt4_return_value_t { TILT4_OK = 0 , TILT4_ERROR = -1 } |
Tilt 4 Click return value data. More... | |
Functions | |
void | tilt4_cfg_setup (tilt4_cfg_t *cfg) |
Tilt 4 configuration object setup function. More... | |
err_t | tilt4_init (tilt4_t *ctx, tilt4_cfg_t *cfg) |
Tilt 4 initialization function. More... | |
uint8_t | tilt4_read_int_state (tilt4_t *ctx) |
Tilt 4 Interrupt pin reading function. More... | |
void | tilt4_set_led_state (tilt4_t *ctx, uint8_t pin_state) |
Tilt 4 LED pin setting function. More... | |
This file contains API for Tilt 4 Click Driver.
enum tilt4_return_value_t |