reed 2.0.0.0
|
Functions | |
void | reed_cfg_setup (reed_cfg_t *cfg) |
Config Object Initialization function. | |
err_t | reed_init (reed_t *ctx, reed_cfg_t *cfg) |
Initialization function. | |
uint8_t | reed_get_status (reed_t *ctx) |
Get sensor magnetic detected status function. | |
void reed_cfg_setup | ( | reed_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t reed_get_status | ( | reed_t * | ctx | ) |
Get sensor magnetic detected status function.
ctx | Click object. |
0 : no magnetic field
1 : magnetic field detected
@description This will return 1 if a magnetic field detected and 0 if not detected.
err_t reed_init | ( | reed_t * | ctx, |
reed_cfg_t * | cfg ) |
Initialization function.
ctx | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.