42#ifdef PREINIT_SUPPORTED
46#ifdef MikroCCoreVersion
47 #if MikroCCoreVersion >= 1
52#include "drv_digital_in.h"
64#define UNIHALL_MAP_MIKROBUS( cfg, mikrobus ) \
65 cfg.int_pin= MIKROBUS( mikrobus, MIKROBUS_INT );
72#define UNIHALL_RETVAL uint8_t
74#define UNIHALL_OK 0x00
75#define UNIHALL_INIT_ERROR 0xFF
82#define UNIHALL_RETVAL uint8_t
84#define UNIHALL_NORTH_POLE_DETECTED 0x00
85#define UNIHALL_NORTH_POLE_NOT_DETECTED 0x01
126 // End constants group
134 // End variable group
#define UNIHALL_RETVAL
Definition unihall.h:72
UNIHALL_RETVAL unihall_init(unihall_t *ctx, unihall_cfg_t *cfg)
Initialization function.
void unihall_cfg_setup(unihall_cfg_t *cfg)
Config Object Initialization function.
uint8_t unihall_detecting_magnetic_fields(unihall_t *ctx)
Detecting north pole magnetic fields status function.
Click configuration structure definition.
Definition unihall.h:110
pin_name_t int_pin
Definition unihall.h:113
Click ctx object definition.
Definition unihall.h:99
digital_in_t int_pin
Definition unihall.h:102