Classes | Macros | Functions | Variables
CDCDSerialDriver.h File Reference
#include <stdint.h>
#include <USBRequests.h>
#include <CDCRequests.h>
#include <CDCDescriptors.h>
#include <CDCNotifications.h>
#include <CDCDSerial.h>
Include dependency graph for CDCDSerialDriver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _CDCDSerialDriverConfigurationDescriptors
 
struct  _CDCDSerialDriverConfigurationDescriptorsOTG
 

Macros

#define CDCDSerialDriver_CC_INTERFACE   0
 
#define CDCDSerialDriver_DC_INTERFACE   1
 

Functions

struct _CDCDSerialDriverConfigurationDescriptors __attribute__ ((__packed__)) CDCDSerialDriverConfigurationDescriptors
 
void CDCDSerialDriver_ConfigurationChangedHandler (uint8_t cfgnum)
 
static uint8_t CDCDSerialDriver_GetControlLineState (void)
 
static void CDCDSerialDriver_GetLineCoding (CDCLineCoding *pLineCoding)
 
static uint16_t CDCDSerialDriver_GetSerialState (void)
 
void CDCDSerialDriver_Initialize (const USBDDriverDescriptors *pDescriptors)
 
static uint32_t CDCDSerialDriver_Read (void *data, uint32_t size, TransferCallback callback, void *argument)
 
void CDCDSerialDriver_RequestHandler (const USBGenericRequest *request)
 
static void CDCDSerialDriver_SetSerialState (uint16_t serialState)
 
static uint32_t CDCDSerialDriver_Write (void *data, uint32_t size, TransferCallback callback, void *argument)
 

Variables

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

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

◆ abstractControlManagement

CDCAbstractControlManagementDescriptor abstractControlManagement

CDC abstract control management functional descriptor.

Definition at line 111 of file CDCDSerialDriver.h.

◆ callManagement

CDCCallManagementDescriptor callManagement

CDC call management functional descriptor.

Definition at line 109 of file CDCDSerialDriver.h.

◆ communication

USBInterfaceDescriptor communication

Communication interface descriptor.

Definition at line 105 of file CDCDSerialDriver.h.

◆ configuration

USBConfigurationDescriptor configuration

Standard configuration descriptor.

Definition at line 103 of file CDCDSerialDriver.h.

◆ data

USBInterfaceDescriptor data

Data interface descriptor.

Definition at line 117 of file CDCDSerialDriver.h.

◆ dataIn

USBEndpointDescriptor dataIn

Data IN endpoint descriptor.

Definition at line 121 of file CDCDSerialDriver.h.

◆ dataOut

USBEndpointDescriptor dataOut

Data OUT endpoint descriptor.

Definition at line 119 of file CDCDSerialDriver.h.

◆ header

CDCHeaderDescriptor header

CDC header functional descriptor.

Definition at line 107 of file CDCDSerialDriver.h.

◆ notification

USBEndpointDescriptor notification

Notification endpoint descriptor.

Definition at line 115 of file CDCDSerialDriver.h.

◆ otgDescriptor

USBOtgDescriptor otgDescriptor

Definition at line 105 of file CDCDSerialDriver.h.

◆ union1

CDCUnionDescriptor union1

CDC union functional descriptor (with one slave interface).

Definition at line 113 of file CDCDSerialDriver.h.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58