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

usbctrltrf.c File Reference

#include <p18cxxx.h>
#include "system\typedefs.h"
#include "system\usb\usb.h"

Go to the source code of this file.

Functions

void USBCtrlTrfSetupHandler (void)
void USBCtrlTrfOutHandler (void)
void USBCtrlTrfInHandler (void)
void USBCtrlEPService (void)
void USBCtrlTrfTxService (void)
void USBCtrlTrfRxService (void)
void USBCtrlEPServiceComplete (void)
void USBPrepareForNextSetupTrf (void)

Variables

byte ctrl_trf_state
byte ctrl_trf_session_owner
POINTER pSrc
POINTER pDst
WORD wCount


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 USBCtrlTrfInHandler void   ) 
 

Definition at line 221 of file usbctrltrf.c.

References _BD_STAT::_byte, _DAT0, _DAT1, _DTSEN, _USIE, ctrl_trf_state, CTRL_TRF_TX, _BD_STAT::DTS, ep0Bi, mUSBCheckAdrPendingState, _BDT::Stat, USBCtrlTrfTxService(), and USBPrepareForNextSetupTrf().

Referenced by USBCtrlEPService().

void USBCtrlTrfOutHandler void   ) 
 

Definition at line 176 of file usbctrltrf.c.

References _BD_STAT::_byte, _DAT0, _DAT1, _DTSEN, _USIE, CTRL_TRF_RX, ctrl_trf_state, _BD_STAT::DTS, ep0Bo, _BDT::Stat, USBCtrlTrfRxService(), and USBPrepareForNextSetupTrf().

Referenced by USBCtrlEPService().

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 USBCtrlTrfSetupHandler void   ) 
 

P R I V A T E P R O T O T Y P E S

Definition at line 133 of file usbctrltrf.c.

References _WORD::_word, ClassReqHandler, ctrl_trf_session_owner, ctrl_trf_state, MUID_NULL, USBCheckStdRequest(), USBCtrlEPServiceComplete(), and WAIT_SETUP.

Referenced by USBCtrlEPService().

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().

byte ctrl_trf_state
 

V A R I A B L E S

Definition at line 44 of file usbctrltrf.c.

Referenced by USBCtrlEPServiceComplete(), USBCtrlTrfInHandler(), USBCtrlTrfOutHandler(), USBCtrlTrfSetupHandler(), and USBPrepareForNextSetupTrf().

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