captouch 2.0.0.0
|
Functions | |
void | captouch_cfg_setup (captouch_cfg_t *cfg) |
Config Object Initialization function. | |
CAPTOUCH_RETVAL | captouch_init (captouch_t *ctx, captouch_cfg_t *cfg) |
Initialization function. | |
void | captouch_default_cfg (captouch_t *ctx) |
Click Default Configuration function. | |
void | captouch_set_mode (captouch_t *ctx, uint8_t mode) |
Select mode. | |
uint8_t | captouch_get_touch (captouch_t *ctx) |
Get touch state. | |
void captouch_cfg_setup | ( | captouch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void captouch_default_cfg | ( | captouch_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for CapTouch click.
uint8_t captouch_get_touch | ( | captouch_t * | ctx | ) |
Get touch state.
ctx | Click object. |
CAPTOUCH_RETVAL captouch_init | ( | captouch_t * | ctx, |
captouch_cfg_t * | cfg ) |
Initialization function.
captouch | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void captouch_set_mode | ( | captouch_t * | ctx, |
uint8_t | mode ) |
Select mode.
ctx | Click object. |
mode | Sensor mode (Low power mode or Fast mode(default)). |