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

usbctrltrf.h File Reference

#include "system\typedefs.h"

Go to the source code of this file.

Defines

#define WAIT_SETUP   0
#define CTRL_TRF_TX   1
#define CTRL_TRF_RX   2
#define SETUP_TOKEN   0b00001101
#define OUT_TOKEN   0b00000001
#define IN_TOKEN   0b00001001
#define HOST_TO_DEV   0
#define DEV_TO_HOST   1
#define STANDARD   0x00
#define CLASS   0x01
#define VENDOR   0x02
#define RCPT_DEV   0
#define RCPT_INTF   1
#define RCPT_EP   2
#define RCPT_OTH   3

Functions

void USBCtrlEPService (void)
void USBCtrlTrfTxService (void)
void USBCtrlTrfRxService (void)
void USBCtrlEPServiceComplete (void)
void USBPrepareForNextSetupTrf (void)

Variables

byte ctrl_trf_session_owner
POINTER pSrc
POINTER pDst
WORD wCount


Define Documentation

#define CLASS   0x01
 

Definition at line 59 of file usbctrltrf.h.

#define CTRL_TRF_RX   2
 

Definition at line 47 of file usbctrltrf.h.

Referenced by USBCtrlEPServiceComplete(), and USBCtrlTrfOutHandler().

#define CTRL_TRF_TX   1
 

Definition at line 46 of file usbctrltrf.h.

Referenced by USBCtrlEPServiceComplete(), and USBCtrlTrfInHandler().

#define DEV_TO_HOST   1
 

Definition at line 56 of file usbctrltrf.h.

Referenced by USBCtrlEPServiceComplete().

#define HOST_TO_DEV   0
 

Definition at line 55 of file usbctrltrf.h.

#define IN_TOKEN   0b00001001
 

Definition at line 52 of file usbctrltrf.h.

#define OUT_TOKEN   0b00000001
 

Definition at line 51 of file usbctrltrf.h.

#define RCPT_DEV   0
 

Definition at line 62 of file usbctrltrf.h.

Referenced by USBStdFeatureReqHandler(), and USBStdGetStatusHandler().

#define RCPT_EP   2
 

Definition at line 64 of file usbctrltrf.h.

Referenced by USBStdFeatureReqHandler(), and USBStdGetStatusHandler().

#define RCPT_INTF   1
 

Definition at line 63 of file usbctrltrf.h.

Referenced by USBStdGetStatusHandler().

#define RCPT_OTH   3
 

Definition at line 65 of file usbctrltrf.h.

#define SETUP_TOKEN   0b00001101
 

Definition at line 50 of file usbctrltrf.h.

Referenced by USBCtrlEPService().

#define STANDARD   0x00
 

Definition at line 58 of file usbctrltrf.h.

Referenced by USBCheckStdRequest().

#define VENDOR   0x02
 

Definition at line 60 of file usbctrltrf.h.

#define WAIT_SETUP   0
 

D E F I N I T I O N S

Definition at line 45 of file usbctrltrf.h.

Referenced by USBCtrlTrfSetupHandler(), and USBPrepareForNextSetupTrf().


Function Documentation

void USBCtrlEPService void   ) 
 

D E C L A R A T I O N S

Definition at line 78 of file usbctrltrf.c.

References EP00_IN, EP00_OUT, ep0Bo, _BD_STAT::PID, SETUP_TOKEN, _BDT::Stat, USBCtrlTrfInHandler(), USBCtrlTrfOutHandler(), and USBCtrlTrfSetupHandler().

Referenced by USBDriverService().

void USBCtrlEPServiceComplete void   ) 
 

Definition at line 382 of file usbctrltrf.c.

References _BSTALL, _BD_STAT::_byte, _DAT1, _DTSEN, _USIE, _WORD::_word, _BDT::ADR, _BDT::Cnt, CTRL_TRF_RX, ctrl_trf_session_owner, ctrl_trf_state, CTRL_TRF_TX, CtrlTrfData, _CTRL_TRF_SETUP::DataDir, DEV_TO_HOST, EP0_BUFF_SIZE, ep0Bi, ep0Bo, MUID_NULL, SetupPkt, _BDT::Stat, USBCtrlTrfTxService(), and _CTRL_TRF_SETUP::wLength.

Referenced by USBCtrlTrfSetupHandler().

void USBCtrlTrfRxService void   ) 
 

Definition at line 330 of file usbctrltrf.c.

References _BD_STAT::_byte, _WORD::_word, _POINTER::bRam, _BDT::Cnt, CtrlTrfData, ep0Bo, LSB, MSB, and _BDT::Stat.

Referenced by USBCtrlTrfOutHandler().

void USBCtrlTrfTxService void   ) 
 

Definition at line 260 of file usbctrltrf.c.

References _BD_STAT::_byte, _ROM, _WORD::_word, _BD_STAT::BC8, _BD_STAT::BC9, _POINTER::bRam, _POINTER::bRom, _BDT::Cnt, _USB_DEVICE_STATUS::ctrl_trf_mem, CtrlTrfData, EP0_BUFF_SIZE, ep0Bi, LSB, MSB, _BDT::Stat, and usb_stat.

Referenced by USBCtrlEPServiceComplete(), and USBCtrlTrfInHandler().

void USBPrepareForNextSetupTrf void   ) 
 

Definition at line 490 of file usbctrltrf.c.

References _BD_STAT::_byte, _DAT0, _DTSEN, _UCPU, _USIE, _BDT::ADR, _BDT::Cnt, ctrl_trf_state, EP0_BUFF_SIZE, ep0Bi, ep0Bo, SetupPkt, _BDT::Stat, and WAIT_SETUP.

Referenced by USBCtrlTrfInHandler(), USBCtrlTrfOutHandler(), USBProtocolResetHandler(), and USBStallHandler().


Variable Documentation

byte ctrl_trf_session_owner
 

E X T E R N S

Definition at line 45 of file usbctrltrf.c.

Referenced by USBCheckStdRequest(), USBCtrlEPServiceComplete(), USBCtrlTrfSetupHandler(), USBStdFeatureReqHandler(), USBStdGetDscHandler(), USBStdGetStatusHandler(), and USBStdSetCfgHandler().

POINTER pDst
 

Definition at line 48 of file usbctrltrf.c.

Referenced by USBStdFeatureReqHandler(), and USBStdGetStatusHandler().

POINTER pSrc
 

Definition at line 47 of file usbctrltrf.c.

Referenced by USBCheckStdRequest(), USBStdGetDscHandler(), and USBStdGetStatusHandler().

WORD wCount
 

Definition at line 49 of file usbctrltrf.c.

Referenced by USBCheckStdRequest(), USBStdGetDscHandler(), and USBStdGetStatusHandler().


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