Go to the documentation of this file.
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
185 #endif // _UNIHALL_H_
#define UNIHALL_RETVAL
Definition: unihall.h:82
Click configuration structure definition.
Definition: unihall.h:110
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.
UNIHALL_RETVAL unihall_init(unihall_t *ctx, unihall_cfg_t *cfg)
Initialization function.
pin_name_t int_pin
Definition: unihall.h:113
digital_in_t int_pin
Definition: unihall.h:102
Click ctx object definition.
Definition: unihall.h:99