usbuart
2.0.0.0
|
This file contains API for USB UART Click driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
Go to the source code of this file.
Data Structures | |
struct | usbuart_t |
Click ctx object definition. More... | |
struct | usbuart_cfg_t |
Click configuration structure definition. More... | |
Macros | |
#define | USBUART_MAP_MIKROBUS(cfg, mikrobus) |
#define | USBUART_RETVAL uint8_t |
#define | USBUART_OK 0x00 |
#define | USBUART_INIT_ERROR 0xFF |
#define | USBUART_POWER_ON 1 |
#define | USBUART_POWER_OFF 0 |
#define | USBUART_CTS_ACTIVE 1 |
#define | USBUART_CTS_NO_ACTIVE 0 |
#define | USBUART_MODE_SLEEP 1 |
#define | USBUART_MODE_NORMAL 0 |
Typedefs | |
typedef uart_data_t | usbuart_data_t |
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... | |
This file contains API for USB UART Click driver.