mbusmaster 2.0.0.0
|
Functions | |
void | mbusmaster_cfg_setup (mbusmaster_cfg_t *cfg) |
Config Object Initialization function. | |
MBUSMASTER_RETVAL | mbusmaster_init (mbusmaster_t *ctx, mbusmaster_cfg_t *cfg) |
Initialization function. | |
void | mbusmaster_generic_write (mbusmaster_t *ctx, char *data_buf, uint16_t len) |
Generic write function. | |
int32_t | mbusmaster_generic_read (mbusmaster_t *ctx, char *data_buf, uint16_t max_len) |
Generic read function. | |
void mbusmaster_cfg_setup | ( | mbusmaster_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
int32_t mbusmaster_generic_read | ( | mbusmaster_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len ) |
Generic read function.
mbusmaster | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
void mbusmaster_generic_write | ( | mbusmaster_t * | ctx, |
char * | data_buf, | ||
uint16_t | len ) |
Generic write function.
mbusmaster | Click object. |
data_buf | Data buffer for sends. |
len | Number of bytes for sends. |
MBUSMASTER_RETVAL mbusmaster_init | ( | mbusmaster_t * | ctx, |
mbusmaster_cfg_t * | cfg ) |
Initialization function.
mbusmaster | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.