waterdetect 2.0.0.0
|
Functions | |
void | waterdetect_cfg_setup (waterdetect_cfg_t *cfg) |
Config Object Initialization function. | |
WATERDETECT_RETVAL | waterdetect_init (waterdetect_t *ctx, waterdetect_cfg_t *cfg) |
Initialization function. | |
void | waterdetect_default_cfg (waterdetect_t *ctx) |
Click Default Configuration function. | |
uint8_t | waterdetect_get_status (waterdetect_t *ctx) |
Get the status of the water detection function. | |
void waterdetect_cfg_setup | ( | waterdetect_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void waterdetect_default_cfg | ( | waterdetect_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for Water Detect click.
uint8_t waterdetect_get_status | ( | waterdetect_t * | ctx | ) |
Get the status of the water detection function.
ctx | Click object. |
@description Function get the status of the water detection and return status of INT pin on Water Detect Click board.
WATERDETECT_RETVAL waterdetect_init | ( | waterdetect_t * | ctx, |
waterdetect_cfg_t * | cfg ) |
Initialization function.
waterdetect | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.