SAMV71 Xplained Ultra Software Package 1.5

CDCDSerialDriver.h File Reference

#include <stdint.h>
#include <USBRequests.h>
#include <CDCRequests.h>
#include <CDCDescriptors.h>
#include <CDCNotifications.h>
#include <CDCDSerial.h>

Go to the source code of this file.

Data Structures

struct  _CDCDSerialDriverConfigurationDescriptors
struct  _CDCDSerialDriverConfigurationDescriptorsOTG

Defines

#define CDCDSerialDriver_CC_INTERFACE   0
#define CDCDSerialDriver_DC_INTERFACE   1

Functions

struct
_CDCDEEMDriverConfigurationDescriptors 
__attribute__ ((__packed__)) CDCDEEMDriverConfigurationDescriptors
void CDCDSerialDriver_Initialize (const USBDDriverDescriptors *pDescriptors)
void CDCDSerialDriver_ConfigurationChangedHandler (uint8_t cfgnum)
void CDCDSerialDriver_RequestHandler (const USBGenericRequest *request)

Variables

USBConfigurationDescriptor configuration
USBInterfaceDescriptor communication
CDCHeaderDescriptor header
CDCCallManagementDescriptor callManagement
CDCAbstractControlManagementDescriptor abstractControlManagement
CDCUnionDescriptor union1
USBEndpointDescriptor notification
USBInterfaceDescriptor data
USBEndpointDescriptor dataOut
USBEndpointDescriptor dataIn
USBOtgDescriptor otgDescriptor

Detailed Description

Purpose

Definition of a class for implementing a USB device CDC serial driver.

Usage

  1. Re-implement the USBDCallbacks_RequestReceived method to pass received requests to CDCDSerialDriver_RequestHandler. *This is automatically done unless the NOAUTOCALLBACK symbol is defined*.
  2. Initialize the CDC serial and USB drivers using CDCDSerialDriver_Initialize.
  3. Logically connect the device to the host using USBD_Connect.
  4. Send serial data to the USB host using CDCDSerialDriver_Write.
  5. Receive serial data from the USB host using CDCDSerialDriver_Read.

Definition in file CDCDSerialDriver.h.


Variable Documentation

CDCAbstractControlManagementDescriptor abstractControlManagement

CDC abstract control management functional descriptor.

Definition at line 135 of file CDCDSerialDriver.h.

CDCCallManagementDescriptor callManagement

CDC call management functional descriptor.

Definition at line 133 of file CDCDSerialDriver.h.

USBInterfaceDescriptor communication

Communication interface descriptor.

Definition at line 129 of file CDCDSerialDriver.h.

USBConfigurationDescriptor configuration

Standard configuration descriptor.

Definition at line 127 of file CDCDSerialDriver.h.

USBInterfaceDescriptor data

Data interface descriptor.

Definition at line 141 of file CDCDSerialDriver.h.

USBEndpointDescriptor dataIn

Data IN endpoint descriptor.

Definition at line 145 of file CDCDSerialDriver.h.

USBEndpointDescriptor dataOut

Data OUT endpoint descriptor.

Definition at line 143 of file CDCDSerialDriver.h.

CDCHeaderDescriptor header

CDC header functional descriptor.

Definition at line 131 of file CDCDSerialDriver.h.

USBEndpointDescriptor notification

Notification endpoint descriptor.

Definition at line 139 of file CDCDSerialDriver.h.

CDCUnionDescriptor union1

CDC union functional descriptor (with one slave interface).

Definition at line 137 of file CDCDSerialDriver.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines