samltouch 2.0.0.0
|
Functions | |
void | samltouch_cfg_setup (samltouch_cfg_t *cfg) |
Config Object Initialization function. | |
SAMLTOUCH_RETVAL | samltouch_init (samltouch_t *ctx, samltouch_cfg_t *cfg) |
Initialization function. | |
void | samltouch_generic_write (samltouch_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | samltouch_generic_read (samltouch_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void | samltouch_parser (char *data_in, samltouch_state_t *state) |
Generic parser function. | |
void samltouch_cfg_setup | ( | samltouch_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t samltouch_generic_read | ( | samltouch_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
ctx | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void samltouch_generic_write | ( | samltouch_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
ctx | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
SAMLTOUCH_RETVAL samltouch_init | ( | samltouch_t * | ctx, |
samltouch_cfg_t * | cfg ) |
Initialization function.
samltouch | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void samltouch_parser | ( | char * | data_in, |
samltouch_state_t * | state ) |
Generic parser function.
data_in | pointer to response buffer |
state | pointer to the structure. |
@description The function parses the response it receives - restores the state of the button 1, button 2, the slider status and the slider position.