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

usb9.c File Reference

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

Go to the source code of this file.

Functions

void USBStdGetDscHandler (void)
void USBStdSetCfgHandler (void)
void USBStdGetStatusHandler (void)
void USBStdFeatureReqHandler (void)
void USBCheckStdRequest (void)


Function Documentation

void USBCheckStdRequest void   ) 
 

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

Definition at line 70 of file usb9.c.

References _RAM, ADR_PENDING_STATE, _CTRL_TRF_SETUP::bAltID, _CTRL_TRF_SETUP::bIntfID, _POINTER::bRam, _CTRL_TRF_SETUP::bRequest, CLR_FEATURE, _USB_DEVICE_STATUS::ctrl_trf_mem, ctrl_trf_session_owner, GET_CFG, GET_DSC, GET_INTF, GET_STATUS, LSB, MUID_USB9, pSrc, _CTRL_TRF_SETUP::RequestType, SET_ADR, SET_CFG, SET_DSC, SET_FEATURE, SET_INTF, SetupPkt, STANDARD, SYNCH_FRAME, usb_active_cfg, usb_alt_intf, usb_device_state, usb_stat, USBStdFeatureReqHandler(), USBStdGetDscHandler(), USBStdGetStatusHandler(), USBStdSetCfgHandler(), and wCount.

Referenced by USBCtrlTrfSetupHandler().

void USBStdFeatureReqHandler void   ) 
 

Definition at line 275 of file usb9.c.

References _BSTALL, _DAT0, _DTSEN, _UCPU, _USIE, _CTRL_TRF_SETUP::bFeature, _POINTER::bRam, _CTRL_TRF_SETUP::bRequest, ctrl_trf_session_owner, DEVICE_REMOTE_WAKEUP, ENDPOINT_HALT, ep0Bo, _CTRL_TRF_SETUP::EPDir, _CTRL_TRF_SETUP::EPNum, MUID_USB9, pDst, RCPT_DEV, RCPT_EP, _CTRL_TRF_SETUP::Recipient, _USB_DEVICE_STATUS::RemoteWakeup, SET_FEATURE, SetupPkt, and usb_stat.

Referenced by USBCheckStdRequest().

void USBStdGetDscHandler void   ) 
 

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

Definition at line 136 of file usb9.c.

References _ROM, _WORD::_word, _CTRL_TRF_SETUP::bDscIndex, _CTRL_TRF_SETUP::bDscType, _CTRL_TRF_SETUP::bmRequestType, _POINTER::bRom, _USB_DEVICE_STATUS::ctrl_trf_mem, ctrl_trf_session_owner, device_dsc, DSC_CFG, DSC_DEV, DSC_STR, MUID_USB9, pSrc, SetupPkt, USB_CD_Ptr, USB_SD_Ptr, usb_stat, wCount, and _POINTER::wRom.

Referenced by USBCheckStdRequest().

void USBStdGetStatusHandler void   ) 
 

Definition at line 218 of file usb9.c.

References _BSTALL, _CTRL_TRF_DATA::_byte0, _CTRL_TRF_DATA::_byte1, _RAM, _POINTER::bRam, _USB_DEVICE_STATUS::ctrl_trf_mem, ctrl_trf_session_owner, CtrlTrfData, ep0Bo, _CTRL_TRF_SETUP::EPDir, _CTRL_TRF_SETUP::EPNum, LSB, MUID_USB9, pDst, pSrc, RCPT_DEV, RCPT_EP, RCPT_INTF, _CTRL_TRF_SETUP::Recipient, _USB_DEVICE_STATUS::RemoteWakeup, self_power, SetupPkt, usb_stat, and wCount.

Referenced by USBCheckStdRequest().

void USBStdSetCfgHandler void   ) 
 

Definition at line 180 of file usb9.c.

References ADDRESS_STATE, _CTRL_TRF_SETUP::bCfgValue, CDCInitEP(), ClearArray(), CONFIGURED_STATE, ctrl_trf_session_owner, MAX_NUM_INT, mDisableEP1to15, MUID_USB9, SetupPkt, usb_active_cfg, usb_alt_intf, and usb_device_state.

Referenced by USBCheckStdRequest().


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