USB host Communication Device Class interface. More...
#include "conf_usb_host.h"
#include "USBHDriver.h"
#include "USBDescriptors.h"
#include "USBH.h"
#include "CDCDescriptors.h"
#include "uhi_cdc.h"
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | uhi_cdc_buf_t |
Internal buffer information. More... | |
struct | uhi_cdc_line_t |
Communication line information. More... | |
struct | uhi_cdc_port_t |
Communication port information. More... | |
struct | uhi_cdc_dev_t |
USB CDC device information. More... | |
Defines | |
#define | UHI_CDC_RX_NOTIFY() |
#define | UHI_CDC_BUFFER_SIZE (5*64) |
Define the minimum internal buffer size. | |
Functions | |
bool | uhi_cdc_open (uint8_t port, CDCLineCoding *configuration) |
Open a port of UHI CDC interface. | |
void | uhi_cdc_close (uint8_t port) |
Close a port. | |
bool | uhi_cdc_is_rx_ready (uint8_t port) |
This function checks if a character has been received on the CDC line. | |
uint32_t | uhi_cdc_get_nb_received (uint8_t port) |
This function returns the number of character available on the CDC line. | |
int | uhi_cdc_getc (uint8_t port) |
Waits and gets a value on CDC line. | |
uint32_t | uhi_cdc_read_buf (uint8_t port, void *buf, uint32_t size) |
Reads a RAM buffer on CDC line. | |
bool | uhi_cdc_is_tx_ready (uint8_t port) |
This function checks if a new character sent is possible The type int is used to support scanf redirection from compiler LIB. | |
int | uhi_cdc_putc (uint8_t port, int value) |
Puts a byte on CDC line The type int is used to support printf redirection from compiler LIB. | |
uint32_t | uhi_cdc_write_buf (uint8_t port, const void *buf, uint32_t size) |
Writes a RAM buffer on CDC line. | |
Internal routines | |
Interface used by UHC module | |
USBH_enum_status_t | uhi_cdc_install (USBH_device_t *dev) |
void | uhi_cdc_enable (USBH_device_t *dev) |
void | uhi_cdc_uninstall (USBH_device_t *dev) |
void | uhi_cdc_sof (bool b_micro) |
USB host Communication Device Class interface.
Definition in file uhi_cdc.c.