USB_Host_Shield_2.0
|
Go to the source code of this file.
Macros | |
#define | ON true |
#define | OFF false |
#define | SE0 0 |
#define | SE1 1 |
#define | FSHOST 2 |
#define | LSHOST 3 |
#define | rRCVFIFO 0x08 |
#define | rSNDFIFO 0x10 |
#define | rSUDFIFO 0x20 |
#define | rRCVBC 0x30 |
#define | rSNDBC 0x38 |
#define | rUSBIRQ 0x68 |
#define | bmVBUSIRQ 0x40 |
#define | bmNOVBUSIRQ 0x20 |
#define | bmOSCOKIRQ 0x01 |
#define | rUSBIEN 0x70 |
#define | bmVBUSIE 0x40 |
#define | bmNOVBUSIE 0x20 |
#define | bmOSCOKIE 0x01 |
#define | rUSBCTL 0x78 |
#define | bmCHIPRES 0x20 |
#define | bmPWRDOWN 0x10 |
#define | rCPUCTL 0x80 |
#define | bmPUSLEWID1 0x80 |
#define | bmPULSEWID0 0x40 |
#define | bmIE 0x01 |
#define | rPINCTL 0x88 |
#define | bmFDUPSPI 0x10 |
#define | bmINTLEVEL 0x08 |
#define | bmPOSINT 0x04 |
#define | bmGPXB 0x02 |
#define | bmGPXA 0x01 |
#define | GPX_OPERATE 0x00 |
#define | GPX_VBDET 0x01 |
#define | GPX_BUSACT 0x02 |
#define | GPX_SOF 0x03 |
#define | rREVISION 0x90 |
#define | rIOPINS1 0xa0 |
#define | bmGPOUT0 0x01 |
#define | bmGPOUT1 0x02 |
#define | bmGPOUT2 0x04 |
#define | bmGPOUT3 0x08 |
#define | bmGPIN0 0x10 |
#define | bmGPIN1 0x20 |
#define | bmGPIN2 0x40 |
#define | bmGPIN3 0x80 |
#define | rIOPINS2 0xa8 |
#define | bmGPOUT4 0x01 |
#define | bmGPOUT5 0x02 |
#define | bmGPOUT6 0x04 |
#define | bmGPOUT7 0x08 |
#define | bmGPIN4 0x10 |
#define | bmGPIN5 0x20 |
#define | bmGPIN6 0x40 |
#define | bmGPIN7 0x80 |
#define | rGPINIRQ 0xb0 |
#define | bmGPINIRQ0 0x01 |
#define | bmGPINIRQ1 0x02 |
#define | bmGPINIRQ2 0x04 |
#define | bmGPINIRQ3 0x08 |
#define | bmGPINIRQ4 0x10 |
#define | bmGPINIRQ5 0x20 |
#define | bmGPINIRQ6 0x40 |
#define | bmGPINIRQ7 0x80 |
#define | rGPINIEN 0xb8 |
#define | bmGPINIEN0 0x01 |
#define | bmGPINIEN1 0x02 |
#define | bmGPINIEN2 0x04 |
#define | bmGPINIEN3 0x08 |
#define | bmGPINIEN4 0x10 |
#define | bmGPINIEN5 0x20 |
#define | bmGPINIEN6 0x40 |
#define | bmGPINIEN7 0x80 |
#define | rGPINPOL 0xc0 |
#define | bmGPINPOL0 0x01 |
#define | bmGPINPOL1 0x02 |
#define | bmGPINPOL2 0x04 |
#define | bmGPINPOL3 0x08 |
#define | bmGPINPOL4 0x10 |
#define | bmGPINPOL5 0x20 |
#define | bmGPINPOL6 0x40 |
#define | bmGPINPOL7 0x80 |
#define | rHIRQ 0xc8 |
#define | bmBUSEVENTIRQ 0x01 |
#define | bmRWUIRQ 0x02 |
#define | bmRCVDAVIRQ 0x04 |
#define | bmSNDBAVIRQ 0x08 |
#define | bmSUSDNIRQ 0x10 |
#define | bmCONDETIRQ 0x20 |
#define | bmFRAMEIRQ 0x40 |
#define | bmHXFRDNIRQ 0x80 |
#define | rHIEN 0xd0 |
#define | bmBUSEVENTIE 0x01 |
#define | bmRWUIE 0x02 |
#define | bmRCVDAVIE 0x04 |
#define | bmSNDBAVIE 0x08 |
#define | bmSUSDNIE 0x10 |
#define | bmCONDETIE 0x20 |
#define | bmFRAMEIE 0x40 |
#define | bmHXFRDNIE 0x80 |
#define | rMODE 0xd8 |
#define | bmHOST 0x01 |
#define | bmLOWSPEED 0x02 |
#define | bmHUBPRE 0x04 |
#define | bmSOFKAENAB 0x08 |
#define | bmSEPIRQ 0x10 |
#define | bmDELAYISO 0x20 |
#define | bmDMPULLDN 0x40 |
#define | bmDPPULLDN 0x80 |
#define | rPERADDR 0xe0 |
#define | rHCTL 0xe8 |
#define | bmBUSRST 0x01 |
#define | bmFRMRST 0x02 |
#define | bmSAMPLEBUS 0x04 |
#define | bmSIGRSM 0x08 |
#define | bmRCVTOG0 0x10 |
#define | bmRCVTOG1 0x20 |
#define | bmSNDTOG0 0x40 |
#define | bmSNDTOG1 0x80 |
#define | rHXFR 0xf0 |
#define | tokSETUP 0x10 |
#define | tokIN 0x00 |
#define | tokOUT 0x20 |
#define | tokINHS 0x80 |
#define | tokOUTHS 0xA0 |
#define | tokISOIN 0x40 |
#define | tokISOOUT 0x60 |
#define | rHRSL 0xf8 |
#define | bmRCVTOGRD 0x10 |
#define | bmSNDTOGRD 0x20 |
#define | bmKSTATUS 0x40 |
#define | bmJSTATUS 0x80 |
#define | bmSE0 0x00 |
#define | bmSE1 0xc0 |
#define | hrSUCCESS 0x00 |
#define | hrBUSY 0x01 |
#define | hrBADREQ 0x02 |
#define | hrUNDEF 0x03 |
#define | hrNAK 0x04 |
#define | hrSTALL 0x05 |
#define | hrTOGERR 0x06 |
#define | hrWRONGPID 0x07 |
#define | hrBADBC 0x08 |
#define | hrPIDERR 0x09 |
#define | hrPKTERR 0x0A |
#define | hrCRCERR 0x0B |
#define | hrKERR 0x0C |
#define | hrJERR 0x0D |
#define | hrTIMEOUT 0x0E |
#define | hrBABBLE 0x0F |
#define | MODE_FS_HOST (bmDPPULLDN|bmDMPULLDN|bmHOST|bmSOFKAENAB) |
#define | MODE_LS_HOST (bmDPPULLDN|bmDMPULLDN|bmHOST|bmLOWSPEED|bmSOFKAENAB) |
#define bmBUSEVENTIE 0x01 |
#define bmBUSEVENTIRQ 0x01 |
#define bmBUSRST 0x01 |
#define bmCHIPRES 0x20 |
#define bmCONDETIE 0x20 |
#define bmCONDETIRQ 0x20 |
#define bmDELAYISO 0x20 |
#define bmDMPULLDN 0x40 |
#define bmDPPULLDN 0x80 |
#define bmFDUPSPI 0x10 |
#define bmFRAMEIE 0x40 |
#define bmFRAMEIRQ 0x40 |
#define bmFRMRST 0x02 |
#define bmGPIN0 0x10 |
#define bmGPIN1 0x20 |
#define bmGPIN2 0x40 |
#define bmGPIN3 0x80 |
#define bmGPIN4 0x10 |
#define bmGPIN5 0x20 |
#define bmGPIN6 0x40 |
#define bmGPIN7 0x80 |
#define bmGPINIEN0 0x01 |
#define bmGPINIEN1 0x02 |
#define bmGPINIEN2 0x04 |
#define bmGPINIEN3 0x08 |
#define bmGPINIEN4 0x10 |
#define bmGPINIEN5 0x20 |
#define bmGPINIEN6 0x40 |
#define bmGPINIEN7 0x80 |
#define bmGPINIRQ0 0x01 |
#define bmGPINIRQ1 0x02 |
#define bmGPINIRQ2 0x04 |
#define bmGPINIRQ3 0x08 |
#define bmGPINIRQ4 0x10 |
#define bmGPINIRQ5 0x20 |
#define bmGPINIRQ6 0x40 |
#define bmGPINIRQ7 0x80 |
#define bmGPINPOL0 0x01 |
#define bmGPINPOL1 0x02 |
#define bmGPINPOL2 0x04 |
#define bmGPINPOL3 0x08 |
#define bmGPINPOL4 0x10 |
#define bmGPINPOL5 0x20 |
#define bmGPINPOL6 0x40 |
#define bmGPINPOL7 0x80 |
#define bmGPOUT0 0x01 |
#define bmGPOUT1 0x02 |
#define bmGPOUT2 0x04 |
#define bmGPOUT3 0x08 |
#define bmGPOUT4 0x01 |
#define bmGPOUT5 0x02 |
#define bmGPOUT6 0x04 |
#define bmGPOUT7 0x08 |
#define bmGPXA 0x01 |
#define bmGPXB 0x02 |
#define bmHOST 0x01 |
#define bmHUBPRE 0x04 |
#define bmHXFRDNIE 0x80 |
#define bmHXFRDNIRQ 0x80 |
#define bmIE 0x01 |
#define bmINTLEVEL 0x08 |
#define bmJSTATUS 0x80 |
#define bmKSTATUS 0x40 |
#define bmLOWSPEED 0x02 |
#define bmNOVBUSIE 0x20 |
#define bmNOVBUSIRQ 0x20 |
#define bmOSCOKIE 0x01 |
#define bmOSCOKIRQ 0x01 |
#define bmPOSINT 0x04 |
#define bmPULSEWID0 0x40 |
#define bmPUSLEWID1 0x80 |
#define bmPWRDOWN 0x10 |
#define bmRCVDAVIE 0x04 |
#define bmRCVDAVIRQ 0x04 |
#define bmRCVTOG0 0x10 |
#define bmRCVTOG1 0x20 |
#define bmRCVTOGRD 0x10 |
#define bmRWUIE 0x02 |
#define bmRWUIRQ 0x02 |
#define bmSAMPLEBUS 0x04 |
#define bmSE0 0x00 |
#define bmSE1 0xc0 |
#define bmSEPIRQ 0x10 |
#define bmSIGRSM 0x08 |
#define bmSNDBAVIE 0x08 |
#define bmSNDBAVIRQ 0x08 |
#define bmSNDTOG0 0x40 |
#define bmSNDTOG1 0x80 |
#define bmSNDTOGRD 0x20 |
#define bmSOFKAENAB 0x08 |
#define bmSUSDNIE 0x10 |
#define bmSUSDNIRQ 0x10 |
#define bmVBUSIE 0x40 |
#define bmVBUSIRQ 0x40 |
#define FSHOST 2 |
#define GPX_BUSACT 0x02 |
#define GPX_OPERATE 0x00 |
#define GPX_SOF 0x03 |
#define GPX_VBDET 0x01 |
#define hrBABBLE 0x0F |
#define hrBADBC 0x08 |
#define hrBADREQ 0x02 |
#define hrBUSY 0x01 |
#define hrCRCERR 0x0B |
#define hrJERR 0x0D |
#define hrKERR 0x0C |
#define hrNAK 0x04 |
#define hrPIDERR 0x09 |
#define hrPKTERR 0x0A |
#define hrSTALL 0x05 |
#define hrSUCCESS 0x00 |
#define hrTIMEOUT 0x0E |
#define hrTOGERR 0x06 |
#define hrUNDEF 0x03 |
#define hrWRONGPID 0x07 |
#define LSHOST 3 |
#define MODE_FS_HOST (bmDPPULLDN|bmDMPULLDN|bmHOST|bmSOFKAENAB) |
#define MODE_LS_HOST (bmDPPULLDN|bmDMPULLDN|bmHOST|bmLOWSPEED|bmSOFKAENAB) |
#define OFF false |
#define ON true |
#define rCPUCTL 0x80 |
#define rGPINIEN 0xb8 |
#define rGPINIRQ 0xb0 |
#define rGPINPOL 0xc0 |
#define rHCTL 0xe8 |
#define rHIEN 0xd0 |
#define rHIRQ 0xc8 |
#define rHRSL 0xf8 |
#define rHXFR 0xf0 |
#define rIOPINS1 0xa0 |
#define rIOPINS2 0xa8 |
#define rMODE 0xd8 |
#define rPERADDR 0xe0 |
#define rPINCTL 0x88 |
#define rRCVBC 0x30 |
#define rRCVFIFO 0x08 |
#define rREVISION 0x90 |
#define rSNDBC 0x38 |
#define rSNDFIFO 0x10 |
#define rSUDFIFO 0x20 |
#define rUSBCTL 0x78 |
#define rUSBIEN 0x70 |
#define rUSBIRQ 0x68 |
#define SE0 0 |
#define SE1 1 |
#define tokIN 0x00 |
#define tokINHS 0x80 |
#define tokISOIN 0x40 |
#define tokISOOUT 0x60 |
#define tokOUT 0x20 |
#define tokOUTHS 0xA0 |
#define tokSETUP 0x10 |