hallswitch 2.0.0.0
|
Functions | |
void | hallswitch_cfg_setup (hallswitch_cfg_t *cfg) |
Config Object Initialization function. | |
HALLSWITCH_RETVAL | hallswitch_init (hallswitch_t *ctx, hallswitch_cfg_t *cfg) |
Initialization function. | |
void | hallswitch_set_npole (hallswitch_t *ctx, uint8_t state) |
Function for turn on and turn off N Pole. | |
void | hallswitch_set_spole (hallswitch_t *ctx, uint8_t state) |
Function for turn on and turn off S Pole. | |
void hallswitch_cfg_setup | ( | hallswitch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
HALLSWITCH_RETVAL hallswitch_init | ( | hallswitch_t * | ctx, |
hallswitch_cfg_t * | cfg ) |
Initialization function.
hallswitch | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void hallswitch_set_npole | ( | hallswitch_t * | ctx, |
uint8_t | state ) |
Function for turn on and turn off N Pole.
ctx | Click object. |
@description This function setst N pole
void hallswitch_set_spole | ( | hallswitch_t * | ctx, |
uint8_t | state ) |
Function for turn on and turn off S Pole.
ctx | Click object. |
@description This function sets S pole