39#ifdef PREINIT_SUPPORTED
43#ifdef MikroCCoreVersion
44 #if MikroCCoreVersion >= 1
49#include "drv_digital_out.h"
50#include "drv_digital_in.h"
72#define TILT3_SWITCH_OFF 0
73#define TILT3_SWITCH_ON 1
92#define TILT3_MAP_MIKROBUS( cfg, mikrobus ) \
93 cfg.en = MIKROBUS( mikrobus, MIKROBUS_CS ); \
94 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT )
uint8_t tilt3_get_switch_state(tilt3_t *ctx)
Tilt 3 get switch state function.
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.
Tilt 3 Click configuration object.
Definition tilt3.h:115
pin_name_t en
Definition tilt3.h:116
pin_name_t int_pin
Definition tilt3.h:117
Tilt 3 Click context object.
Definition tilt3.h:104
digital_in_t int_pin
Definition tilt3.h:106
digital_out_t en
Definition tilt3.h:105
tilt3_return_value_t
Tilt 3 Click return value data.
Definition tilt3.h:126
@ TILT3_ERROR
Definition tilt3.h:128
@ TILT3_OK
Definition tilt3.h:127