USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros
max3421e.h File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

#define bmBUSEVENTIE   0x01

Definition at line 156 of file max3421e.h.

#define bmBUSEVENTIRQ   0x01

Definition at line 144 of file max3421e.h.

#define bmBUSRST   0x01

Definition at line 181 of file max3421e.h.

#define bmCHIPRES   0x20

Definition at line 62 of file max3421e.h.

#define bmCONDETIE   0x20

Definition at line 161 of file max3421e.h.

#define bmCONDETIRQ   0x20

Definition at line 149 of file max3421e.h.

#define bmDELAYISO   0x20

Definition at line 173 of file max3421e.h.

#define bmDMPULLDN   0x40

Definition at line 174 of file max3421e.h.

#define bmDPPULLDN   0x80

Definition at line 175 of file max3421e.h.

#define bmFDUPSPI   0x10

Definition at line 73 of file max3421e.h.

#define bmFRAMEIE   0x40

Definition at line 162 of file max3421e.h.

#define bmFRAMEIRQ   0x40

Definition at line 150 of file max3421e.h.

#define bmFRMRST   0x02

Definition at line 182 of file max3421e.h.

#define bmGPIN0   0x10

Definition at line 93 of file max3421e.h.

#define bmGPIN1   0x20

Definition at line 94 of file max3421e.h.

#define bmGPIN2   0x40

Definition at line 95 of file max3421e.h.

#define bmGPIN3   0x80

Definition at line 96 of file max3421e.h.

#define bmGPIN4   0x10

Definition at line 104 of file max3421e.h.

#define bmGPIN5   0x20

Definition at line 105 of file max3421e.h.

#define bmGPIN6   0x40

Definition at line 106 of file max3421e.h.

#define bmGPIN7   0x80

Definition at line 107 of file max3421e.h.

#define bmGPINIEN0   0x01

Definition at line 122 of file max3421e.h.

#define bmGPINIEN1   0x02

Definition at line 123 of file max3421e.h.

#define bmGPINIEN2   0x04

Definition at line 124 of file max3421e.h.

#define bmGPINIEN3   0x08

Definition at line 125 of file max3421e.h.

#define bmGPINIEN4   0x10

Definition at line 126 of file max3421e.h.

#define bmGPINIEN5   0x20

Definition at line 127 of file max3421e.h.

#define bmGPINIEN6   0x40

Definition at line 128 of file max3421e.h.

#define bmGPINIEN7   0x80

Definition at line 129 of file max3421e.h.

#define bmGPINIRQ0   0x01

Definition at line 111 of file max3421e.h.

#define bmGPINIRQ1   0x02

Definition at line 112 of file max3421e.h.

#define bmGPINIRQ2   0x04

Definition at line 113 of file max3421e.h.

#define bmGPINIRQ3   0x08

Definition at line 114 of file max3421e.h.

#define bmGPINIRQ4   0x10

Definition at line 115 of file max3421e.h.

#define bmGPINIRQ5   0x20

Definition at line 116 of file max3421e.h.

#define bmGPINIRQ6   0x40

Definition at line 117 of file max3421e.h.

#define bmGPINIRQ7   0x80

Definition at line 118 of file max3421e.h.

#define bmGPINPOL0   0x01

Definition at line 133 of file max3421e.h.

#define bmGPINPOL1   0x02

Definition at line 134 of file max3421e.h.

#define bmGPINPOL2   0x04

Definition at line 135 of file max3421e.h.

#define bmGPINPOL3   0x08

Definition at line 136 of file max3421e.h.

#define bmGPINPOL4   0x10

Definition at line 137 of file max3421e.h.

#define bmGPINPOL5   0x20

Definition at line 138 of file max3421e.h.

#define bmGPINPOL6   0x40

Definition at line 139 of file max3421e.h.

#define bmGPINPOL7   0x80

Definition at line 140 of file max3421e.h.

#define bmGPOUT0   0x01

Definition at line 89 of file max3421e.h.

#define bmGPOUT1   0x02

Definition at line 90 of file max3421e.h.

#define bmGPOUT2   0x04

Definition at line 91 of file max3421e.h.

#define bmGPOUT3   0x08

Definition at line 92 of file max3421e.h.

#define bmGPOUT4   0x01

Definition at line 100 of file max3421e.h.

#define bmGPOUT5   0x02

Definition at line 101 of file max3421e.h.

#define bmGPOUT6   0x04

Definition at line 102 of file max3421e.h.

#define bmGPOUT7   0x08

Definition at line 103 of file max3421e.h.

#define bmGPXA   0x01

Definition at line 77 of file max3421e.h.

#define bmGPXB   0x02

Definition at line 76 of file max3421e.h.

#define bmHOST   0x01

Definition at line 168 of file max3421e.h.

#define bmHUBPRE   0x04

Definition at line 170 of file max3421e.h.

#define bmHXFRDNIE   0x80

Definition at line 163 of file max3421e.h.

#define bmHXFRDNIRQ   0x80

Definition at line 151 of file max3421e.h.

#define bmIE   0x01

Definition at line 69 of file max3421e.h.

#define bmINTLEVEL   0x08

Definition at line 74 of file max3421e.h.

#define bmJSTATUS   0x80

Definition at line 207 of file max3421e.h.

#define bmKSTATUS   0x40

Definition at line 206 of file max3421e.h.

#define bmLOWSPEED   0x02

Definition at line 169 of file max3421e.h.

#define bmNOVBUSIE   0x20

Definition at line 57 of file max3421e.h.

#define bmNOVBUSIRQ   0x20

Definition at line 51 of file max3421e.h.

#define bmOSCOKIE   0x01

Definition at line 58 of file max3421e.h.

#define bmOSCOKIRQ   0x01

Definition at line 52 of file max3421e.h.

#define bmPOSINT   0x04

Definition at line 75 of file max3421e.h.

#define bmPULSEWID0   0x40

Definition at line 68 of file max3421e.h.

#define bmPUSLEWID1   0x80

Definition at line 67 of file max3421e.h.

#define bmPWRDOWN   0x10

Definition at line 63 of file max3421e.h.

#define bmRCVDAVIE   0x04

Definition at line 158 of file max3421e.h.

#define bmRCVDAVIRQ   0x04

Definition at line 146 of file max3421e.h.

#define bmRCVTOG0   0x10

Definition at line 185 of file max3421e.h.

#define bmRCVTOG1   0x20

Definition at line 186 of file max3421e.h.

#define bmRCVTOGRD   0x10

Definition at line 204 of file max3421e.h.

#define bmRWUIE   0x02

Definition at line 157 of file max3421e.h.

#define bmRWUIRQ   0x02

Definition at line 145 of file max3421e.h.

#define bmSAMPLEBUS   0x04

Definition at line 183 of file max3421e.h.

#define bmSE0   0x00

Definition at line 208 of file max3421e.h.

#define bmSE1   0xc0

Definition at line 209 of file max3421e.h.

#define bmSEPIRQ   0x10

Definition at line 172 of file max3421e.h.

#define bmSIGRSM   0x08

Definition at line 184 of file max3421e.h.

#define bmSNDBAVIE   0x08

Definition at line 159 of file max3421e.h.

#define bmSNDBAVIRQ   0x08

Definition at line 147 of file max3421e.h.

#define bmSNDTOG0   0x40

Definition at line 187 of file max3421e.h.

#define bmSNDTOG1   0x80

Definition at line 188 of file max3421e.h.

#define bmSNDTOGRD   0x20

Definition at line 205 of file max3421e.h.

#define bmSOFKAENAB   0x08

Definition at line 171 of file max3421e.h.

#define bmSUSDNIE   0x10

Definition at line 160 of file max3421e.h.

#define bmSUSDNIRQ   0x10

Definition at line 148 of file max3421e.h.

#define bmVBUSIE   0x40

Definition at line 56 of file max3421e.h.

#define bmVBUSIRQ   0x40

Definition at line 50 of file max3421e.h.

#define FSHOST   2

Definition at line 35 of file max3421e.h.

#define GPX_BUSACT   0x02

Definition at line 81 of file max3421e.h.

#define GPX_OPERATE   0x00

Definition at line 79 of file max3421e.h.

#define GPX_SOF   0x03

Definition at line 82 of file max3421e.h.

#define GPX_VBDET   0x01

Definition at line 80 of file max3421e.h.

#define hrBABBLE   0x0F

Definition at line 227 of file max3421e.h.

#define hrBADBC   0x08

Definition at line 220 of file max3421e.h.

#define hrBADREQ   0x02

Definition at line 214 of file max3421e.h.

#define hrBUSY   0x01

Definition at line 213 of file max3421e.h.

#define hrCRCERR   0x0B

Definition at line 223 of file max3421e.h.

#define hrJERR   0x0D

Definition at line 225 of file max3421e.h.

#define hrKERR   0x0C

Definition at line 224 of file max3421e.h.

#define hrNAK   0x04

Definition at line 216 of file max3421e.h.

#define hrPIDERR   0x09

Definition at line 221 of file max3421e.h.

#define hrPKTERR   0x0A

Definition at line 222 of file max3421e.h.

#define hrSTALL   0x05

Definition at line 217 of file max3421e.h.

#define hrSUCCESS   0x00

Definition at line 212 of file max3421e.h.

#define hrTIMEOUT   0x0E

Definition at line 226 of file max3421e.h.

#define hrTOGERR   0x06

Definition at line 218 of file max3421e.h.

#define hrUNDEF   0x03

Definition at line 215 of file max3421e.h.

#define hrWRONGPID   0x07

Definition at line 219 of file max3421e.h.

#define LSHOST   3

Definition at line 36 of file max3421e.h.

#define MODE_FS_HOST   (bmDPPULLDN|bmDMPULLDN|bmHOST|bmSOFKAENAB)

Definition at line 229 of file max3421e.h.

#define MODE_LS_HOST   (bmDPPULLDN|bmDMPULLDN|bmHOST|bmLOWSPEED|bmSOFKAENAB)

Definition at line 230 of file max3421e.h.

#define OFF   false

Definition at line 31 of file max3421e.h.

#define ON   true

Definition at line 30 of file max3421e.h.

#define rCPUCTL   0x80

Definition at line 65 of file max3421e.h.

#define rGPINIEN   0xb8

Definition at line 120 of file max3421e.h.

#define rGPINIRQ   0xb0

Definition at line 109 of file max3421e.h.

#define rGPINPOL   0xc0

Definition at line 131 of file max3421e.h.

#define rHCTL   0xe8

Definition at line 179 of file max3421e.h.

#define rHIEN   0xd0

Definition at line 153 of file max3421e.h.

#define rHIRQ   0xc8

Definition at line 142 of file max3421e.h.

#define rHRSL   0xf8

Definition at line 201 of file max3421e.h.

#define rHXFR   0xf0

Definition at line 190 of file max3421e.h.

#define rIOPINS1   0xa0

Definition at line 86 of file max3421e.h.

#define rIOPINS2   0xa8

Definition at line 98 of file max3421e.h.

#define rMODE   0xd8

Definition at line 165 of file max3421e.h.

#define rPERADDR   0xe0

Definition at line 177 of file max3421e.h.

#define rPINCTL   0x88

Definition at line 71 of file max3421e.h.

#define rRCVBC   0x30

Definition at line 45 of file max3421e.h.

#define rRCVFIFO   0x08

Definition at line 42 of file max3421e.h.

#define rREVISION   0x90

Definition at line 84 of file max3421e.h.

#define rSNDBC   0x38

Definition at line 46 of file max3421e.h.

#define rSNDFIFO   0x10

Definition at line 43 of file max3421e.h.

#define rSUDFIFO   0x20

Definition at line 44 of file max3421e.h.

#define rUSBCTL   0x78

Definition at line 60 of file max3421e.h.

#define rUSBIEN   0x70

Definition at line 54 of file max3421e.h.

#define rUSBIRQ   0x68

Definition at line 48 of file max3421e.h.

#define SE0   0

Definition at line 33 of file max3421e.h.

#define SE1   1

Definition at line 34 of file max3421e.h.

#define tokIN   0x00

Definition at line 194 of file max3421e.h.

#define tokINHS   0x80

Definition at line 196 of file max3421e.h.

#define tokISOIN   0x40

Definition at line 198 of file max3421e.h.

#define tokISOOUT   0x60

Definition at line 199 of file max3421e.h.

#define tokOUT   0x20

Definition at line 195 of file max3421e.h.

#define tokOUTHS   0xA0

Definition at line 197 of file max3421e.h.

#define tokSETUP   0x10

Definition at line 193 of file max3421e.h.