mbusmaster
2.0.0.0
|
Functions | |
void | mbusmaster_cfg_setup (mbusmaster_cfg_t *cfg) |
Config Object Initialization function. More... | |
MBUSMASTER_RETVAL | mbusmaster_init (mbusmaster_t *ctx, mbusmaster_cfg_t *cfg) |
Initialization function. More... | |
void | mbusmaster_generic_multi_write (mbusmaster_t *ctx, char *data_buf, uint8_t len) |
Generic multi write function. More... | |
void | mbusmaster_generic_multi_read (mbusmaster_t *ctx, char *data_buf, uint8_t len) |
Generic multi read function. More... | |
char | mbusmaster_generic_single_read (mbusmaster_t *ctx) |
Generic single read function. More... | |
void | mbusmaster_generic_single_write (mbusmaster_t *ctx, char tx_data) |
Generic single write function. More... | |
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.
void mbusmaster_generic_multi_read | ( | mbusmaster_t * | ctx, |
char * | data_buf, | ||
uint8_t | len | ||
) |
Generic multi read function.
ctx | Click object. |
data_buf | Output data buffer. |
len | Number of the bytes in data buffer. |
@description This function reads data.
void mbusmaster_generic_multi_write | ( | mbusmaster_t * | ctx, |
char * | data_buf, | ||
uint8_t | len | ||
) |
Generic multi write function.
ctx | Click object. |
data_buf | Input data buffer |
len | Number of the bytes in the data buffer |
@description This function writes data.
char mbusmaster_generic_single_read | ( | mbusmaster_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void mbusmaster_generic_single_write | ( | mbusmaster_t * | ctx, |
char | tx_data | ||
) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
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.