SAMV71 Xplained Ultra Software Package 1.5

CDCDEEMDriver.h File Reference

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

Go to the source code of this file.

Data Structures

struct  _CDCDEEMDriverConfigurationDescriptors
struct  _CDCDEEMDriverConfigurationDescriptorsOTG

Defines

#define CDCDEEMDriver_CC_INTERFACE   0

Functions

struct
_CDCDEEMDriverConfigurationDescriptors 
__attribute__ ((__packed__)) CDCDEEMDriverConfigurationDescriptors
void CDCDEEMDriver_Initialize (const USBDDriverDescriptors *pDescriptors)
void CDCDEEMDriver_ConfigurationChangedHandler (uint8_t cfgnum)
void CDCDEEMDriver_RequestHandler (const USBGenericRequest *request)

Variables

USBConfigurationDescriptor configuration
USBInterfaceDescriptor communication
USBEndpointDescriptor dataOut
USBEndpointDescriptor dataIn
USBOtgDescriptor otgDescriptor

Detailed Description

Purpose

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

Usage

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

Definition in file CDCDEEMDriver.h.


Variable Documentation

USBInterfaceDescriptor communication

Communication interface descriptor.

Definition at line 115 of file CDCDEEMDriver.h.

USBConfigurationDescriptor configuration

Standard configuration descriptor.

Definition at line 113 of file CDCDEEMDriver.h.

USBEndpointDescriptor dataIn

Data IN endpoint descriptor.

Definition at line 119 of file CDCDEEMDriver.h.

USBEndpointDescriptor dataOut

Data OUT endpoint descriptor.

Definition at line 117 of file CDCDEEMDriver.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines