usbuart2 2.0.0.0
|
This file contains API for USB UART 2 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 | usbuart2_t |
USB UART 2 Click context object. More... | |
struct | usbuart2_cfg_t |
USB UART 2 Click configuration object. More... | |
Macros | |
#define | USBUART2_MODE_SLEEP 1 |
USB UART 2 description setting. | |
#define | USBUART2_MODE_NORMAL 0 |
#define | USBUART2_CTS_ACTIVE 1 |
#define | USBUART2_CTS_NO_ACTIVE 0 |
#define | USBUART2_POWER_ON 1 |
#define | USBUART2_POWER_OFF 0 |
#define | DRV_BUFFER_SIZE 500 |
USB UART 2 driver buffer size. | |
#define | USBUART2_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. | |
Enumerations | |
enum | usbuart2_return_value_t { USBUART2_OK = 0 , USBUART2_ERROR = -1 } |
USB UART 2 Click return value data. More... | |
Functions | |
void | usbuart2_cfg_setup (usbuart2_cfg_t *cfg) |
USB UART 2 configuration object setup function. | |
err_t | usbuart2_init (usbuart2_t *ctx, usbuart2_cfg_t *cfg) |
USB UART 2 initialization function. | |
void | usbuart2_generic_write (usbuart2_t *ctx, char *data_buf, uint16_t len) |
USB UART 2 data writing function. | |
uint32_t | usbuart2_generic_read (usbuart2_t *ctx, char *data_buf, uint16_t max_len) |
USB UART 2 data reading function. | |
void | usbuart2_pwr_ctrl (usbuart2_t *ctx, uint8_t state) |
Power control. | |
void | usbuart2_set_cts (usbuart2_t *ctx, uint8_t state) |
Set CTS (Clear to send) | |
void | usbuart2_set_mode (usbuart2_t *ctx, uint8_t mode) |
Set device mode. | |
uint8_t | usbuart2_get_rts (usbuart2_t *ctx) |
Set device mode. | |
void | usbuart2_send_command (usbuart2_t *ctx, char *command) |
Function for send command. | |
This file contains API for USB UART 2 Click Driver.