SAMV71 Xplained Ultra Software Package 1.3

uhi_cdc.h File Reference

USB host driver for Communication Device Class interface. More...

#include "conf_usb_host.h"
#include "CDCRequests.h"
#include "USBRequests.h"
#include "USBH.h"
#include "uhi.h"

Go to the source code of this file.

Defines

#define UHI_CDC

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.
Functions required by UHC

See uhi_api_t for the function descriptions

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)

Detailed Description

USB host driver for Communication Device Class interface.

Copyright (C) 2012-2015 Atmel Corporation. All rights reserved.

Definition in file uhi_cdc.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines