Main Page | Data Structures | Directories | File List | Data Fields | Globals

cdc.h File Reference

#include "system\typedefs.h"

Go to the source code of this file.

Defines

#define SEND_ENCAPSULATED_COMMAND   0x00
#define GET_ENCAPSULATED_RESPONSE   0x01
#define SET_COMM_FEATURE   0x02
#define GET_COMM_FEATURE   0x03
#define CLEAR_COMM_FEATURE   0x04
#define SET_LINE_CODING   0x20
#define GET_LINE_CODING   0x21
#define SET_CONTROL_LINE_STATE   0x22
#define SEND_BREAK   0x23
#define NETWORK_CONNECTION   0x00
#define RESPONSE_AVAILABLE   0x01
#define SERIAL_STATE   0x20
#define CDC_DEVICE   0x02
#define COMM_INTF   0x02
#define ABSTRACT_CONTROL_MODEL   0x02
#define V25TER   0x01
#define DATA_INTF   0x0A
#define NO_PROTOCOL   0x00
#define ABSTRACT_STATE   0x01
#define COUNTRY_SETTING   0x02
#define CS_INTERFACE   0x24
#define CS_ENDPOINT   0x25
#define DSC_FN_HEADER   0x00
#define DSC_FN_CALL_MGT   0x01
#define DSC_FN_ACM   0x02
#define DSC_FN_DLM   0x03
#define DSC_FN_TELEPHONE_RINGER   0x04
#define DSC_FN_RPT_CAPABILITIES   0x05
#define DSC_FN_UNION   0x06
#define DSC_FN_COUNTRY_SELECTION   0x07
#define DSC_FN_TEL_OP_MODES   0x08
#define DSC_FN_USB_TERMINAL   0x09
#define CDC_TX_READY   0
#define CDC_TX_BUSY   1
#define CDC_TX_BUSY_ZLP   2
#define CDC_TX_COMPLETING   3
#define mUSBUSARTIsTxTrfReady()   (cdc_trf_state == CDC_TX_READY)
#define mCDCUsartRxIsBusy()   CDC_BULK_BD_OUT.Stat.UOWN
#define mCDCUsartTxIsBusy()   CDC_BULK_BD_IN.Stat.UOWN
#define mCDCGetRxLength()   cdc_rx_len
#define mUSBUSARTTxRam(pData, len)
#define mUSBUSARTTxRom(pData, len)
#define LINE_CODING_LENGTH   0x07

Typedefs

typedef _LINE_CODING LINE_CODING
typedef _CONTROL_SIGNAL_BITMAP CONTROL_SIGNAL_BITMAP
typedef _USB_CDC_HEADER_FN_DSC USB_CDC_HEADER_FN_DSC
typedef _USB_CDC_ACM_FN_DSC USB_CDC_ACM_FN_DSC
typedef _USB_CDC_UNION_FN_DSC USB_CDC_UNION_FN_DSC
typedef _USB_CDC_CALL_MGT_FN_DSC USB_CDC_CALL_MGT_FN_DSC

Functions

void USBCheckCDCRequest (void)
void CDCInitEP (void)
byte getsUSBUSART (char *buffer, byte len)
void putrsUSBUSART (const rom char *data)
void putsUSBUSART (char *data)
void CDCTxService (void)

Variables

byte cdc_rx_len
byte cdc_trf_state
POINTER pCDCSrc
byte cdc_tx_len
byte cdc_mem_type


Define Documentation

#define ABSTRACT_CONTROL_MODEL   0x02
 

Definition at line 71 of file cdc.h.

#define ABSTRACT_STATE   0x01
 

Definition at line 85 of file cdc.h.

#define CDC_DEVICE   0x02
 

Definition at line 65 of file cdc.h.

#define CDC_TX_BUSY   1
 

Definition at line 108 of file cdc.h.

#define CDC_TX_BUSY_ZLP   2
 

Definition at line 109 of file cdc.h.

#define CDC_TX_COMPLETING   3
 

Definition at line 110 of file cdc.h.

#define CDC_TX_READY   0
 

Definition at line 107 of file cdc.h.

#define CLEAR_COMM_FEATURE   0x04
 

Definition at line 49 of file cdc.h.

#define COMM_INTF   0x02
 

Definition at line 68 of file cdc.h.

#define COUNTRY_SETTING   0x02
 

Definition at line 86 of file cdc.h.

#define CS_ENDPOINT   0x25
 

Definition at line 91 of file cdc.h.

#define CS_INTERFACE   0x24
 

Definition at line 90 of file cdc.h.

#define DATA_INTF   0x0A
 

Definition at line 78 of file cdc.h.

#define DSC_FN_ACM   0x02
 

Definition at line 96 of file cdc.h.

#define DSC_FN_CALL_MGT   0x01
 

Definition at line 95 of file cdc.h.

#define DSC_FN_COUNTRY_SELECTION   0x07
 

Definition at line 101 of file cdc.h.

#define DSC_FN_DLM   0x03
 

Definition at line 97 of file cdc.h.

#define DSC_FN_HEADER   0x00
 

Definition at line 94 of file cdc.h.

#define DSC_FN_RPT_CAPABILITIES   0x05
 

Definition at line 99 of file cdc.h.

#define DSC_FN_TEL_OP_MODES   0x08
 

Definition at line 102 of file cdc.h.

#define DSC_FN_TELEPHONE_RINGER   0x04
 

Definition at line 98 of file cdc.h.

#define DSC_FN_UNION   0x06
 

Definition at line 100 of file cdc.h.

#define DSC_FN_USB_TERMINAL   0x09
 

Definition at line 103 of file cdc.h.

#define GET_COMM_FEATURE   0x03
 

Definition at line 48 of file cdc.h.

#define GET_ENCAPSULATED_RESPONSE   0x01
 

Definition at line 46 of file cdc.h.

#define GET_LINE_CODING   0x21
 

Definition at line 51 of file cdc.h.

#define LINE_CODING_LENGTH   0x07
 

S T R U C T U R E S

Definition at line 261 of file cdc.h.

 
#define mCDCGetRxLength  )     cdc_rx_len
 

Definition at line 186 of file cdc.h.

 
#define mCDCUsartRxIsBusy  )     CDC_BULK_BD_OUT.Stat.UOWN
 

Definition at line 148 of file cdc.h.

 
#define mCDCUsartTxIsBusy  )     CDC_BULK_BD_IN.Stat.UOWN
 

Definition at line 167 of file cdc.h.

 
#define mUSBUSARTIsTxTrfReady  )     (cdc_trf_state == CDC_TX_READY)
 

Definition at line 129 of file cdc.h.

Referenced by ProcessIO().

#define mUSBUSARTTxRam pData,
len   ) 
 

Value:

{                                   \
    pCDCSrc.bRam = pData;           \
    cdc_tx_len = len;               \
    cdc_mem_type = _RAM;            \
    cdc_trf_state = CDC_TX_BUSY;    \
}

Definition at line 215 of file cdc.h.

Referenced by ProcessIO().

#define mUSBUSARTTxRom pData,
len   ) 
 

Value:

{                                   \
    pCDCSrc.bRom = pData;           \
    cdc_tx_len = len;               \
    cdc_mem_type = _ROM;            \
    cdc_trf_state = CDC_TX_BUSY;    \
}

Definition at line 250 of file cdc.h.

#define NETWORK_CONNECTION   0x00
 

Definition at line 59 of file cdc.h.

#define NO_PROTOCOL   0x00
 

Definition at line 81 of file cdc.h.

#define RESPONSE_AVAILABLE   0x01
 

Definition at line 60 of file cdc.h.

#define SEND_BREAK   0x23
 

Definition at line 53 of file cdc.h.

#define SEND_ENCAPSULATED_COMMAND   0x00
 

D E F I N I T I O N S

Definition at line 45 of file cdc.h.

#define SERIAL_STATE   0x20
 

Definition at line 61 of file cdc.h.

#define SET_COMM_FEATURE   0x02
 

Definition at line 47 of file cdc.h.

#define SET_CONTROL_LINE_STATE   0x22
 

Definition at line 52 of file cdc.h.

#define SET_LINE_CODING   0x20
 

Definition at line 50 of file cdc.h.

#define V25TER   0x01
 

Definition at line 74 of file cdc.h.


Typedef Documentation

typedef union _CONTROL_SIGNAL_BITMAP CONTROL_SIGNAL_BITMAP
 

typedef union _LINE_CODING LINE_CODING
 

typedef struct _USB_CDC_ACM_FN_DSC USB_CDC_ACM_FN_DSC
 

typedef struct _USB_CDC_CALL_MGT_FN_DSC USB_CDC_CALL_MGT_FN_DSC
 

typedef struct _USB_CDC_HEADER_FN_DSC USB_CDC_HEADER_FN_DSC
 

typedef struct _USB_CDC_UNION_FN_DSC USB_CDC_UNION_FN_DSC
 


Function Documentation

void CDCInitEP void   ) 
 

Referenced by USBStdSetCfgHandler().

void CDCTxService void   ) 
 

Referenced by USBTasks().

byte getsUSBUSART char *  buffer,
byte  len
 

Referenced by ProcessIO().

void putrsUSBUSART const rom char *  data  ) 
 

void putsUSBUSART char *  data  ) 
 

void USBCheckCDCRequest void   ) 
 

P U B L I C P R O T O T Y P E S


Variable Documentation

byte cdc_mem_type
 

byte cdc_rx_len
 

E X T E R N S

byte cdc_trf_state
 

byte cdc_tx_len
 

POINTER pCDCSrc
 


Generated on Wed Jun 8 03:49:39 2005 for cdc by  doxygen 1.4.2