usbuart
2.0.0.0
|
Functions | |
void | usbuart_cfg_setup (usbuart_cfg_t *cfg) |
Config Object Initialization function. More... | |
USBUART_RETVAL | usbuart_init (usbuart_t *ctx, usbuart_cfg_t *cfg) |
Initialization function. More... | |
void | usbuart_default_cfg (usbuart_t *ctx) |
Click Default Configuration function. More... | |
void | usbuart_generic_multi_write (usbuart_t *ctx, usbuart_data_t *data_buf, uart_length_t len) |
Generic multi write function. More... | |
void | usbuart_generic_multi_read (usbuart_t *ctx, usbuart_data_t *data_buf, uart_length_t len) |
Generic multi read function. More... | |
usbuart_data_t | usbuart_generic_single_read (usbuart_t *ctx) |
Generic single read function. More... | |
void | usbuart_generic_single_write (usbuart_t *ctx, usbuart_data_t tx_data) |
Generic single write function. More... | |
void | usbuart_pwr_ctrl (usbuart_t *ctx, uint8_t state) |
Power control. More... | |
void | usbuart_set_cts (usbuart_t *ctx, uint8_t state) |
Set CTS (Clear to send) More... | |
void | usbuart_set_mode (usbuart_t *ctx, uint8_t mode) |
Set device mode. More... | |
uint8_t | usbuart_get_rts (usbuart_t *ctx) |
Set device mode. More... | |
void usbuart_cfg_setup | ( | usbuart_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void usbuart_default_cfg | ( | usbuart_t * | ctx | ) |
Click Default Configuration function.
ctx | Click object. |
@description This function executes default configuration for USB_UART click.
void usbuart_generic_multi_read | ( | usbuart_t * | ctx, |
usbuart_data_t * | data_buf, | ||
uart_length_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 usbuart_generic_multi_write | ( | usbuart_t * | ctx, |
usbuart_data_t * | data_buf, | ||
uart_length_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.
usbuart_data_t usbuart_generic_single_read | ( | usbuart_t * | ctx | ) |
Generic single read function.
ctx | Click object. |
@description This function read one byte data.
void usbuart_generic_single_write | ( | usbuart_t * | ctx, |
usbuart_data_t | tx_data | ||
) |
Generic single write function.
ctx | Click object. |
tx_data | Input data |
@description This function write one byte data.
uint8_t usbuart_get_rts | ( | usbuart_t * | ctx | ) |
Set device mode.
ctx | Click object. |
USBUART_RETVAL usbuart_init | ( | usbuart_t * | ctx, |
usbuart_cfg_t * | cfg | ||
) |
Initialization function.
usbuart | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.
void usbuart_pwr_ctrl | ( | usbuart_t * | ctx, |
uint8_t | state | ||
) |
Power control.
ctx | Click object. |
state | PWR pin state |
void usbuart_set_cts | ( | usbuart_t * | ctx, |
uint8_t | state | ||
) |
Set CTS (Clear to send)
ctx | Click object. |
state | CTS pin state |
void usbuart_set_mode | ( | usbuart_t * | ctx, |
uint8_t | mode | ||
) |
Set device mode.
ctx | Click object. |
mode | Device mode (Sleep or Normal) |