uartmux 2.0.0.0
|
Functions | |
void | uartmux_cfg_setup (uartmux_cfg_t *cfg) |
Config Object Initialization function. | |
UARTMUX_RETVAL | uartmux_init (uartmux_t *ctx, uartmux_cfg_t *cfg) |
Initialization function. | |
void | uartmux_generic_write (uartmux_t *ctx, char *data_buf, uint16_t data_len, uartmux_channel_t *channel) |
Generic write function. | |
int32_t | uartmux_generic_read (uartmux_t *ctx, char *data_buf, uint16_t max_len, uartmux_channel_t *channel) |
Generic read function. | |
void | uartmux_set_inhibit_communication (uartmux_t *ctx, uint8_t state) |
Set INT pin. | |
void | uartmux_choose_channel (uartmux_t *ctx, uartmux_channel_t *channel) |
Choose channel. | |
void uartmux_cfg_setup | ( | uartmux_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void uartmux_choose_channel | ( | uartmux_t * | ctx, |
uartmux_channel_t * | channel ) |
Choose channel.
uartmux | Click object. |
channel | Struct of channel ( 1, 2, 3, 4 ) |
int32_t uartmux_generic_read | ( | uartmux_t * | ctx, |
char * | data_buf, | ||
uint16_t | max_len, | ||
uartmux_channel_t * | channel ) |
Generic read function.
uartmux | Click object. |
data_buf | Data buffer for read data. |
max_len | The maximum length of data that can be read. |
channel | Struct of channel ( 1, 2, 3, 4 ) |
void uartmux_generic_write | ( | uartmux_t * | ctx, |
char * | data_buf, | ||
uint16_t | data_len, | ||
uartmux_channel_t * | channel ) |
Generic write function.
uartmux | Click object. |
data_buf | Data buffer for sends. |
data_len | Data buffer len. |
channel | Struct of channel ( 1, 2, 3, 4 ) |
UARTMUX_RETVAL uartmux_init | ( | uartmux_t * | ctx, |
uartmux_cfg_t * | cfg ) |
Initialization function.
uartmux | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void uartmux_set_inhibit_communication | ( | uartmux_t * | ctx, |
uint8_t | state ) |
Set INT pin.
uartmux | Click object. |
state | State of INT pin. |