#include "system\typedefs.h"
#include "system\usb\usb.h"
Go to the source code of this file.
Defines | |
#define | _PPBM0 0x00 |
#define | _PPBM1 0x01 |
#define | _PPBM2 0x02 |
#define | _LS 0x00 |
#define | _FS 0x04 |
#define | _TRINT 0x00 |
#define | _TREXT 0x08 |
#define | _PUEN 0x10 |
#define | _OEMON 0x40 |
#define | _UTEYE 0x80 |
#define | EP_CTRL 0x06 |
#define | EP_OUT 0x0C |
#define | EP_IN 0x0A |
#define | EP_OUT_IN 0x0E |
#define | HSHK_EN 0x10 |
#define | OUT 0 |
#define | IN 1 |
#define | PIC_EP_NUM_MASK 0b01111000 |
#define | PIC_EP_DIR_MASK 0b00000100 |
#define | EP00_OUT (0x00<<3)|(OUT<<2) |
#define | EP00_IN (0x00<<3)|(IN<<2) |
#define | EP01_OUT (0x01<<3)|(OUT<<2) |
#define | EP01_IN (0x01<<3)|(IN<<2) |
#define | EP02_OUT (0x02<<3)|(OUT<<2) |
#define | EP02_IN (0x02<<3)|(IN<<2) |
#define | EP03_OUT (0x03<<3)|(OUT<<2) |
#define | EP03_IN (0x03<<3)|(IN<<2) |
#define | EP04_OUT (0x04<<3)|(OUT<<2) |
#define | EP04_IN (0x04<<3)|(IN<<2) |
#define | EP05_OUT (0x05<<3)|(OUT<<2) |
#define | EP05_IN (0x05<<3)|(IN<<2) |
#define | EP06_OUT (0x06<<3)|(OUT<<2) |
#define | EP06_IN (0x06<<3)|(IN<<2) |
#define | EP07_OUT (0x07<<3)|(OUT<<2) |
#define | EP07_IN (0x07<<3)|(IN<<2) |
#define | EP08_OUT (0x08<<3)|(OUT<<2) |
#define | EP08_IN (0x08<<3)|(IN<<2) |
#define | EP09_OUT (0x09<<3)|(OUT<<2) |
#define | EP09_IN (0x09<<3)|(IN<<2) |
#define | EP10_OUT (0x0A<<3)|(OUT<<2) |
#define | EP10_IN (0x0A<<3)|(IN<<2) |
#define | EP11_OUT (0x0B<<3)|(OUT<<2) |
#define | EP11_IN (0x0B<<3)|(IN<<2) |
#define | EP12_OUT (0x0C<<3)|(OUT<<2) |
#define | EP12_IN (0x0C<<3)|(IN<<2) |
#define | EP13_OUT (0x0D<<3)|(OUT<<2) |
#define | EP13_IN (0x0D<<3)|(IN<<2) |
#define | EP14_OUT (0x0E<<3)|(OUT<<2) |
#define | EP14_IN (0x0E<<3)|(IN<<2) |
#define | EP15_OUT (0x0F<<3)|(OUT<<2) |
#define | EP15_IN (0x0F<<3)|(IN<<2) |
#define | mInitializeUSBDriver() |
#define | mDisableEP1to15() ClearArray((byte*)&UEP1,15); |
#define | mUSBBufferReady(buffer_dsc) |
Functions | |
void | USBCheckBusStatus (void) |
void | USBDriverService (void) |
void | USBRemoteWakeup (void) |
void | USBSoftDetach (void) |
void | ClearArray (byte *startAdr, byte count) |
|
|
|
|
|
|
|
D E F I N I T I O N S |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 82 of file usbdrv.h. Referenced by USBCtrlEPService(). |
|
Definition at line 81 of file usbdrv.h. Referenced by USBCtrlEPService(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 59 of file usbdrv.h. Referenced by USBProtocolResetHandler(). |
|
|
|
|
|
|
|
Definition at line 63 of file usbdrv.h. Referenced by USBProtocolResetHandler(). |
|
|
|
Definition at line 157 of file usbdrv.h. Referenced by USBProtocolResetHandler(), and USBStdSetCfgHandler(). |
|
Value: {UCFG = UCFG_VAL; \ usb_device_state = DETACHED_STATE; \ usb_stat._byte = 0x00; \ usb_active_cfg = 0x00;} Definition at line 135 of file usbdrv.h. Referenced by InitializeSystem(). |
|
Value: |
|
|
|
|
|
|
|
Definition at line 575 of file usbdrv.c. Referenced by USBStdSetCfgHandler(). |
|
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(). |
|
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(). |
|
Definition at line 404 of file usbdrv.c. References _USB_DEVICE_STATUS::RemoteWakeup, usb_stat, and USBWakeFromSuspend(). |
|
Definition at line 192 of file usbdrv.c. References USBModuleDisable(). |