SAMV71 Xplained Ultra Software Package 1.3

CDCRequests.h File Reference

#include <stdint.h>
#include <USBRequests.h>

Go to the source code of this file.

Data Structures

struct  _CDCLineCoding

Defines

#define CDCGenericRequest_SETLINECODING   0x20
#define CDCGenericRequest_GETLINECODING   0x21
#define CDCGenericRequest_SETCONTROLLINESTATE   0x22
#define CDCControlLineState_DTE_PRESENT   (1 << 0)
#define CDCControlLineState_DTR   (1 << 0)
#define CDCControlLineState_CARRIER_ON   (1 << 1)
#define CDCControlLineState_RTS   (1 << 1)
#define CDCLineCoding_ONESTOPBIT   0
#define CDCLineCoding_ONE5STOPBIT   1
#define CDCLineCoding_TWOSTOPBITS   2
#define CDCLineCoding_NOPARITY   0
#define CDCLineCoding_ODDPARITY   1
#define CDCLineCoding_EVENPARITY   2
#define CDCLineCoding_MARKPARITY   3
#define CDCLineCoding_SPACEPARITY   4

Functions

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

Variables

uint32_t dwDTERate
uint8_t bCharFormat
uint8_t bParityType
uint8_t bDataBits

Detailed Description

Definitions and classes for USB CDC class requests (mostly for ACM).

CDCLineCoding

  1. Initialize a CDCLineCoding instance using CDCLineCoding_Initialize.
  2. Send a CDCLineCoding object to the host in response to a GetLineCoding request.
  3. Receive a CDCLineCoding object from the host after a SetLineCoding request.

Definition in file CDCRequests.h.


Variable Documentation

uint8_t bCharFormat

Number of stop bits.

See also:
USB CDC LineCoding StopBits CDC LineCoding StopBits.

Definition at line 165 of file CDCRequests.h.

uint8_t bDataBits

Number of data bits (5, 6, 7, 8 or 16).

Definition at line 170 of file CDCRequests.h.

uint8_t bParityType

Type of parity checking used.

See also:
USB CDC LineCoding ParityCheckings CDC LineCoding ParityCheckings.

Definition at line 168 of file CDCRequests.h.

uint32_t dwDTERate

Data terminal rate in bits per second.

Definition at line 162 of file CDCRequests.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines