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 FLAME_MAP_MIKROBUS( cfg, mikrobus ) \
66 cfg.an = MIKROBUS( mikrobus, MIKROBUS_AN ); \
67 cfg.int_pin = MIKROBUS( mikrobus, MIKROBUS_INT );
74#define FLAME_RETVAL uint8_t
77#define FLAME_INIT_ERROR 0xFF
#define FLAME_RETVAL
Definition flame.h:74
uint8_t flame_get_interrupt(flame_t *ctx)
Get interrupt status.
uint8_t flame_check_status(flame_t *ctx)
Check the flame status function.
void flame_cfg_setup(flame_cfg_t *cfg)
Config Object Initialization function.
FLAME_RETVAL flame_init(flame_t *ctx, flame_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition flame.h:104
pin_name_t int_pin
Definition flame.h:108
pin_name_t an
Definition flame.h:107
Click ctx object definition.
Definition flame.h:91
digital_in_t int_pin
Definition flame.h:96
digital_in_t an
Definition flame.h:95