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

usbdrv.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.

Defines

#define USB_BUS_ATTACHED   1
#define USB_BUS_DETACHED   0

Functions

void USBModuleEnable (void)
void USBModuleDisable (void)
void USBSuspend (void)
void USBWakeFromSuspend (void)
void USBProtocolResetHandler (void)
void USB_SOF_Handler (void)
void USBStallHandler (void)
void USBErrorHandler (void)
void USBCheckBusStatus (void)
void USBSoftDetach (void)
void USBDriverService (void)
void USBRemoteWakeup (void)
void ClearArray (byte *startAdr, byte count)


Define Documentation

#define USB_BUS_ATTACHED   1
 

Referenced by USBCheckBusStatus().

#define USB_BUS_DETACHED   0
 


Function Documentation

void ClearArray byte startAdr,
byte  count
 

Definition at line 575 of file usbdrv.c.

Referenced by USBStdSetCfgHandler().

void USB_SOF_Handler void   ) 
 

Definition at line 445 of file usbdrv.c.

Referenced by USBDriverService().

void USBCheckBusStatus void   ) 
 

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

Definition at line 76 of file usbdrv.c.

References ATTACHED_STATE, POWERED_STATE, USB_BUS_ATTACHED, usb_bus_sense, usb_device_state, USBModuleDisable(), and USBModuleEnable().

Referenced by USBTasks().

void USBDriverService void   ) 
 

Definition at line 215 of file usbdrv.c.

References DEFAULT_STATE, DETACHED_STATE, usb_device_state, USB_SOF_Handler(), USBCtrlEPService(), USBErrorHandler(), USBProtocolResetHandler(), USBStallHandler(), USBSuspend(), and USBWakeFromSuspend().

Referenced by USBTasks().

void USBErrorHandler void   ) 
 

Definition at line 524 of file usbdrv.c.

Referenced by USBDriverService().

void USBModuleDisable void   ) 
 

Definition at line 161 of file usbdrv.c.

References DETACHED_STATE, and usb_device_state.

Referenced by USBCheckBusStatus(), and USBSoftDetach().

void USBModuleEnable void   ) 
 

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

Definition at line 135 of file usbdrv.c.

References ATTACHED_STATE, and usb_device_state.

Referenced by USBCheckBusStatus().

void USBProtocolResetHandler void   ) 
 

Definition at line 551 of file usbdrv.c.

References DEFAULT_STATE, EP_CTRL, HSHK_EN, mDisableEP1to15, _USB_DEVICE_STATUS::RemoteWakeup, usb_active_cfg, usb_device_state, usb_stat, and USBPrepareForNextSetupTrf().

Referenced by USBDriverService().

void USBRemoteWakeup void   ) 
 

Definition at line 404 of file usbdrv.c.

References _USB_DEVICE_STATUS::RemoteWakeup, usb_stat, and USBWakeFromSuspend().

void USBSoftDetach void   ) 
 

Definition at line 192 of file usbdrv.c.

References USBModuleDisable().

void USBStallHandler void   ) 
 

Definition at line 488 of file usbdrv.c.

References USBPrepareForNextSetupTrf().

Referenced by USBDriverService().

void USBSuspend void   ) 
 

Definition at line 297 of file usbdrv.c.

Referenced by USBDriverService().

void USBWakeFromSuspend void   ) 
 

Definition at line 355 of file usbdrv.c.

Referenced by USBDriverService(), and USBRemoteWakeup().


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