42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_out.h"
53#include "drv_digital_in.h"
65#define VIBRASENSE_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.en = MIKROBUS( mikrobus, MIKROBUS_RST ); \
67 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT );
73#define VIBRASENSE_RETVAL uint8_t
75#define VIBRASENSE_OK 0x00
76#define VIBRASENSE_INIT_ERROR 0xFF
83#define VIBRASENSE_DISABLE 0
84#define VIBRASENSE_ENABLE 1
130 // End constants group
138 // End variable group
#define VIBRASENSE_RETVAL
Definition vibrasense.h:73
uint8_t vibrasense_check_interrupt(vibrasense_t *ctx)
Check interrupt function.
void vibrasense_cfg_setup(vibrasense_cfg_t *cfg)
Config Object Initialization function.
VIBRASENSE_RETVAL vibrasense_init(vibrasense_t *ctx, vibrasense_cfg_t *cfg)
Initialization function.
void vibrasense_reset(vibrasense_t *ctx)
Reset vibra sense function.
void vibrasense_set_mode(vibrasense_t *ctx, uint8_t en_mode)
Set vibra sense mode function.
Click configuration structure definition.
Definition vibrasense.h:113
pin_name_t en
Definition vibrasense.h:116
pin_name_t int_pin
Definition vibrasense.h:117
Click ctx object definition.
Definition vibrasense.h:98
digital_in_t int_pin
Definition vibrasense.h:105
digital_out_t en
Definition vibrasense.h:101