c2x2key 2.0.0.0
|
Functions | |
void | c2x2key_cfg_setup (c2x2key_cfg_t *cfg) |
Config Object Initialization function. | |
C2X2KEY_RETVAL | c2x2key_init (c2x2key_t *ctx, c2x2key_cfg_t *cfg) |
Initialization function. | |
void | c2x2key_default_cfg (c2x2key_t *ctx) |
Click Default Configuration function. | |
uint8_t | c2x2key_t1_state (c2x2key_t *ctx) |
Taster 1 state function. | |
uint8_t | c2x2key_t2_state (c2x2key_t *ctx) |
Taster 2 state function. | |
uint8_t | c2x2key_t3_state (c2x2key_t *ctx) |
Taster 3 state function. | |
uint8_t | c2x2key_t4_state (c2x2key_t *ctx) |
Taster 4 state function. | |
uint8_t | c2x2key_taster_pressed (c2x2key_t *ctx) |
Taster Pressed function. | |
void c2x2key_cfg_setup | ( | c2x2key_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void c2x2key_default_cfg | ( | c2x2key_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for 2x2 key click.
C2X2KEY_RETVAL c2x2key_init | ( | c2x2key_t * | ctx, |
c2x2key_cfg_t * | cfg ) |
Initialization function.
c2x2key | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
uint8_t c2x2key_t1_state | ( | c2x2key_t * | ctx | ) |
Taster 1 state function.
ctx | Click object. |
@description This function gets state of T1O pin on 2X2_Key Click board.
uint8_t c2x2key_t2_state | ( | c2x2key_t * | ctx | ) |
Taster 2 state function.
ctx | Click object. |
@description This function gets state of T2O pin on 2X2_Key Click board.
uint8_t c2x2key_t3_state | ( | c2x2key_t * | ctx | ) |
Taster 3 state function.
ctx | Click object. |
@description This function gets state of T3O pin on 2X2_Key Click board.
uint8_t c2x2key_t4_state | ( | c2x2key_t * | ctx | ) |
Taster 4 state function.
ctx | Click object. |
@description This function gets state of T4O pin on 2X2_Key Click board.
uint8_t c2x2key_taster_pressed | ( | c2x2key_t * | ctx | ) |
Taster Pressed function.
ctx | Click object. |
@description This function gets state of TINT pin on 2X2_Key Click board.