touchkey 2.0.0.0
|
Functions | |
void | touchkey_cfg_setup (touchkey_cfg_t *cfg) |
Config Object Initialization function. | |
TOUCHKEY_RETVAL | touchkey_init (touchkey_t *ctx, touchkey_cfg_t *cfg) |
Initialization function. | |
uint8_t | touchkey_a (touchkey_t *ctx) |
Taster A pressed function. | |
uint8_t | touchkey_b (touchkey_t *ctx) |
Taster B pressed function. | |
uint8_t | touchkey_c (touchkey_t *ctx) |
Taster C pressed function. | |
uint8_t | touchkey_d (touchkey_t *ctx) |
Taster D pressed function. | |
uint8_t touchkey_a | ( | touchkey_t * | ctx | ) |
Taster A pressed function.
ctx | Click object. |
Function gets state of "a" (RST) pin on TouchKey Click board.
uint8_t touchkey_b | ( | touchkey_t * | ctx | ) |
Taster B pressed function.
ctx | Click object. |
@description Function gets state of "b" (AN) pin on TouchKey Click board.
uint8_t touchkey_c | ( | touchkey_t * | ctx | ) |
Taster C pressed function.
ctx | Click object. |
@description Function gets state of "c" (PWM) pin on TouchKey Click board.
void touchkey_cfg_setup | ( | touchkey_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
uint8_t touchkey_d | ( | touchkey_t * | ctx | ) |
Taster D pressed function.
ctx | Click object. |
@description Function gets state of "d" (INT) pin on TouchKey Click board.
TOUCHKEY_RETVAL touchkey_init | ( | touchkey_t * | ctx, |
touchkey_cfg_t * | cfg ) |
Initialization function.
touchkey | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.