42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_in.h"
64#define BIHALL_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
72#define BIHALL_RETVAL uint8_t
75#define BIHALL_INIT_ERROR 0xFF
83#define BIHALL_MAG_POLE_NORTH 0
84#define BIHALL_MAG_POLE_SOUTH 1
125 // End constants group
133 // End variable group
#define BIHALL_RETVAL
Definition bihall.h:72
void bihall_cfg_setup(bihall_cfg_t *cfg)
Config Object Initialization function.
uint8_t bihall_det_mag_field(bihall_t *ctx)
Detecting south & north pole magnetic fields status function.
BIHALL_RETVAL bihall_init(bihall_t *ctx, bihall_cfg_t *cfg)
Initialization function.
Click configuration structure definition.
Definition bihall.h:109
pin_name_t int_pin
Definition bihall.h:112
Click ctx object definition.
Definition bihall.h:98
digital_in_t int_pin
Definition bihall.h:101