mbusslave 2.0.0.0
|
Functions | |
void | mbusslave_cfg_setup (mbusslave_cfg_t *cfg) |
Config Object Initialization function. | |
MBUSSLAVE_RETVAL | mbusslave_init (mbusslave_t *ctx, mbusslave_cfg_t *cfg) |
Initialization function. | |
void | mbusslave_generic_write (mbusslave_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | mbusslave_generic_read (mbusslave_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void mbusslave_cfg_setup | ( | mbusslave_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t mbusslave_generic_read | ( | mbusslave_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
mbusslave | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void mbusslave_generic_write | ( | mbusslave_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
mbusslave | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
MBUSSLAVE_RETVAL mbusslave_init | ( | mbusslave_t * | ctx, |
mbusslave_cfg_t * | cfg ) |
Initialization function.
mbusslave | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.