unihall 2.0.0.0
|
Functions | |
void | unihall_cfg_setup (unihall_cfg_t *cfg) |
Config Object Initialization function. | |
UNIHALL_RETVAL | unihall_init (unihall_t *ctx, unihall_cfg_t *cfg) |
Initialization function. | |
uint8_t | unihall_detecting_magnetic_fields (unihall_t *ctx) |
Detecting north pole magnetic fields status function. | |
void unihall_cfg_setup | ( | unihall_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t unihall_detecting_magnetic_fields | ( | unihall_t * | ctx | ) |
Detecting north pole magnetic fields status function.
ctx | Click object. |
0 - detected;
1 - not detected;
@description This function detecting north pole magnetic fields status and returns the state of the INT pin. INT pin can be configured to show are data registers updated with the new values or not.
UNIHALL_RETVAL unihall_init | ( | unihall_t * | ctx, |
unihall_cfg_t * | cfg ) |
Initialization function.
unihall | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.