bihall 2.0.0.0
|
Functions | |
void | bihall_cfg_setup (bihall_cfg_t *cfg) |
Config Object Initialization function. | |
BIHALL_RETVAL | bihall_init (bihall_t *ctx, bihall_cfg_t *cfg) |
Initialization function. | |
uint8_t | bihall_det_mag_field (bihall_t *ctx) |
Detecting south & north pole magnetic fields status function. | |
void bihall_cfg_setup | ( | bihall_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t bihall_det_mag_field | ( | bihall_t * | ctx | ) |
Detecting south & north pole magnetic fields status function.
ctx | Click object. |
0 : north pole magnetic fields;
1 : south pole magnetic fields;
@description This function detecting south & 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.
BIHALL_RETVAL bihall_init | ( | bihall_t * | ctx, |
bihall_cfg_t * | cfg ) |
Initialization function.
bihall | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.