SAMV71 Xplained Ultra Software Package 1.4

Usb_cdc

Collaboration diagram for Usb_cdc:

Data Structures

struct  _CDCHeaderDescriptor
struct  _CDCUnionDescriptor
struct  _CDCCallManagementDescriptor
struct  _CDCAbstractControlManagementDescriptor
struct  _CDCSerialState
struct  _CDCLineCoding

Modules

 USB CDC Specification Release Numbers
 CDC Descriptor Types
 CDC Descriptor Subtypes
 USB CDC Device Descriptor Values
 USB CDC Communication Interface Descriptor
 USB CDC Data Interface Values
 USB CDC CallManagement Capabilities
 USB CDC ACM Capabilities
 CDC SerialState bits
 USB CDC Request Codes
 USB CDC ControlLineState bitmap
 USB CDC LineCoding StopBits
 USB CDC LineCoding ParityCheckings

Functions

void CDCLineCoding_Initialize (CDCLineCoding *lineCoding, uint32_t bitrate, uint8_t stopbits, uint8_t parity, uint8_t databits)
uint8_t CDCSetControlLineStateRequest_IsDtePresent (const USBGenericRequest *request)
uint8_t CDCSetControlLineStateRequest_ActivateCarrier (const USBGenericRequest *request)
struct _CDCHeaderDescriptor __attribute__ ((__packed__)) CDCHeaderDescriptor

USB CDC Subclass IDs



#define CDC_SUBCLASS_DLCM   0x01
 Direct Line Control Model.
#define CDC_SUBCLASS_ACM   0x02
 Abstract Control Model.
#define CDC_SUBCLASS_TCM   0x03
 Telephone Control Model.
#define CDC_SUBCLASS_MCCM   0x04
 Multi-Channel Control Model.
#define CDC_SUBCLASS_CCM   0x05
 CAPI Control Model.
#define CDC_SUBCLASS_ETH   0x06
 Ethernet Networking Control Model.
#define CDC_SUBCLASS_ATM   0x07
 ATM Networking Control Model.

USB CDC Communication Interface Protocol IDs



#define CDC_PROTOCOL_V25TER   0x01
 Common AT commands.

USB CDC Data Interface Protocol IDs



#define CDC_PROTOCOL_I430   0x30
 ISDN BRI.
#define CDC_PROTOCOL_HDLC   0x31
 HDLC.
#define CDC_PROTOCOL_TRANS   0x32
 Transparent.
#define CDC_PROTOCOL_Q921M   0x50
 Q.921 management protocol.
#define CDC_PROTOCOL_Q921   0x51
 Q.931 [sic] Data link protocol.
#define CDC_PROTOCOL_Q921TM   0x52
 Q.921 TEI-multiplexor.
#define CDC_PROTOCOL_V42BIS   0x90
 Data compression procedures.
#define CDC_PROTOCOL_Q931   0x91
 Euro-ISDN protocol control.
#define CDC_PROTOCOL_V120   0x92
 V.24 rate adaption to ISDN.
#define CDC_PROTOCOL_CAPI20   0x93
 CAPI Commands.
#define CDC_PROTOCOL_HOST   0xFD
 Host based driver.
#define CDC_PROTOCOL_PUFD   0xFE
 Describes the Protocol Unit Functional Descriptors [sic] on Communication Class Interface.

Function Documentation

struct _CDCHeaderDescriptor __attribute__ ( (__packed__)   ) 

USB CDC SerialState struct (bitmap)

void CDCLineCoding_Initialize ( CDCLineCoding *  lineCoding,
uint32_t  bitrate,
uint8_t  stopbits,
uint8_t  parity,
uint8_t  databits 
)

Initializes the bitrate, number of stop bits, parity checking and number of data bits of a CDCLineCoding object.

Parameters:
lineCoding Pointer to a CDCLineCoding instance.
bitrate Bitrate of the virtual COM connection.
stopbits Number of stop bits (USB CDC LineCoding StopBits CDC LineCoding StopBits).
parity Parity check type (USB CDC LineCoding ParityCheckings CDC LineCoding ParityChecking).
databits Number of data bits.
uint8_t CDCSetControlLineStateRequest_ActivateCarrier ( const USBGenericRequest request  ) 

Notifies if the given request indicates that the device carrier should be activated.

Parameters:
request Pointer to a USBGenericRequest instance.
Returns:
1 is the device should activate its carrier, 0 otherwise.
uint8_t CDCSetControlLineStateRequest_IsDtePresent ( const USBGenericRequest request  ) 

Notifies if the given request indicates that the DTE signal is present.

Parameters:
request Pointer to a USBGenericRequest instance.
Returns:
1 if the DTE signal is present, otherwise 0.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines