38 #ifndef __DRIVERLIB_USB_H__ 39 #define __DRIVERLIB_USB_H__ 62 #define USB_INTCTRL_ALL 0x000003FF // All control interrupt sources 63 #define USB_INTCTRL_STATUS 0x000000FF // Status Interrupts 64 #define USB_INTCTRL_VBUS_ERR 0x00000080 // VBUS Error 65 #define USB_INTCTRL_SESSION 0x00000040 // Session Start Detected 66 #define USB_INTCTRL_SESSION_END 0x00000040 // Session End Detected 67 #define USB_INTCTRL_DISCONNECT 0x00000020 // Disconnect Detected 68 #define USB_INTCTRL_CONNECT 0x00000010 // Device Connect Detected 69 #define USB_INTCTRL_SOF 0x00000008 // Start of Frame Detected 70 #define USB_INTCTRL_BABBLE 0x00000004 // Babble signaled 71 #define USB_INTCTRL_RESET 0x00000004 // Reset signaled 72 #define USB_INTCTRL_RESUME 0x00000002 // Resume detected 73 #define USB_INTCTRL_SUSPEND 0x00000001 // Suspend detected 74 #define USB_INTCTRL_MODE_DETECT 0x00000200 // Mode value valid 75 #define USB_INTCTRL_POWER_FAULT 0x00000100 // Power Fault detected 84 #define USB_INTEP_ALL 0xFFFFFFFF // Host IN Interrupts 85 #define USB_INTEP_HOST_IN 0xFFFE0000 // Host IN Interrupts 86 #define USB_INTEP_HOST_IN_15 0x80000000 // Endpoint 15 Host IN Interrupt 87 #define USB_INTEP_HOST_IN_14 0x40000000 // Endpoint 14 Host IN Interrupt 88 #define USB_INTEP_HOST_IN_13 0x20000000 // Endpoint 13 Host IN Interrupt 89 #define USB_INTEP_HOST_IN_12 0x10000000 // Endpoint 12 Host IN Interrupt 90 #define USB_INTEP_HOST_IN_11 0x08000000 // Endpoint 11 Host IN Interrupt 91 #define USB_INTEP_HOST_IN_10 0x04000000 // Endpoint 10 Host IN Interrupt 92 #define USB_INTEP_HOST_IN_9 0x02000000 // Endpoint 9 Host IN Interrupt 93 #define USB_INTEP_HOST_IN_8 0x01000000 // Endpoint 8 Host IN Interrupt 94 #define USB_INTEP_HOST_IN_7 0x00800000 // Endpoint 7 Host IN Interrupt 95 #define USB_INTEP_HOST_IN_6 0x00400000 // Endpoint 6 Host IN Interrupt 96 #define USB_INTEP_HOST_IN_5 0x00200000 // Endpoint 5 Host IN Interrupt 97 #define USB_INTEP_HOST_IN_4 0x00100000 // Endpoint 4 Host IN Interrupt 98 #define USB_INTEP_HOST_IN_3 0x00080000 // Endpoint 3 Host IN Interrupt 99 #define USB_INTEP_HOST_IN_2 0x00040000 // Endpoint 2 Host IN Interrupt 100 #define USB_INTEP_HOST_IN_1 0x00020000 // Endpoint 1 Host IN Interrupt 102 #define USB_INTEP_DEV_OUT 0xFFFE0000 // Device OUT Interrupts 103 #define USB_INTEP_DEV_OUT_15 0x80000000 // Endpoint 15 Device OUT Interrupt 104 #define USB_INTEP_DEV_OUT_14 0x40000000 // Endpoint 14 Device OUT Interrupt 105 #define USB_INTEP_DEV_OUT_13 0x20000000 // Endpoint 13 Device OUT Interrupt 106 #define USB_INTEP_DEV_OUT_12 0x10000000 // Endpoint 12 Device OUT Interrupt 107 #define USB_INTEP_DEV_OUT_11 0x08000000 // Endpoint 11 Device OUT Interrupt 108 #define USB_INTEP_DEV_OUT_10 0x04000000 // Endpoint 10 Device OUT Interrupt 109 #define USB_INTEP_DEV_OUT_9 0x02000000 // Endpoint 9 Device OUT Interrupt 110 #define USB_INTEP_DEV_OUT_8 0x01000000 // Endpoint 8 Device OUT Interrupt 111 #define USB_INTEP_DEV_OUT_7 0x00800000 // Endpoint 7 Device OUT Interrupt 112 #define USB_INTEP_DEV_OUT_6 0x00400000 // Endpoint 6 Device OUT Interrupt 113 #define USB_INTEP_DEV_OUT_5 0x00200000 // Endpoint 5 Device OUT Interrupt 114 #define USB_INTEP_DEV_OUT_4 0x00100000 // Endpoint 4 Device OUT Interrupt 115 #define USB_INTEP_DEV_OUT_3 0x00080000 // Endpoint 3 Device OUT Interrupt 116 #define USB_INTEP_DEV_OUT_2 0x00040000 // Endpoint 2 Device OUT Interrupt 117 #define USB_INTEP_DEV_OUT_1 0x00020000 // Endpoint 1 Device OUT Interrupt 119 #define USB_INTEP_HOST_OUT 0x0000FFFE // Host OUT Interrupts 120 #define USB_INTEP_HOST_OUT_15 0x00008000 // Endpoint 15 Host OUT Interrupt 121 #define USB_INTEP_HOST_OUT_14 0x00004000 // Endpoint 14 Host OUT Interrupt 122 #define USB_INTEP_HOST_OUT_13 0x00002000 // Endpoint 13 Host OUT Interrupt 123 #define USB_INTEP_HOST_OUT_12 0x00001000 // Endpoint 12 Host OUT Interrupt 124 #define USB_INTEP_HOST_OUT_11 0x00000800 // Endpoint 11 Host OUT Interrupt 125 #define USB_INTEP_HOST_OUT_10 0x00000400 // Endpoint 10 Host OUT Interrupt 126 #define USB_INTEP_HOST_OUT_9 0x00000200 // Endpoint 9 Host OUT Interrupt 127 #define USB_INTEP_HOST_OUT_8 0x00000100 // Endpoint 8 Host OUT Interrupt 128 #define USB_INTEP_HOST_OUT_7 0x00000080 // Endpoint 7 Host OUT Interrupt 129 #define USB_INTEP_HOST_OUT_6 0x00000040 // Endpoint 6 Host OUT Interrupt 130 #define USB_INTEP_HOST_OUT_5 0x00000020 // Endpoint 5 Host OUT Interrupt 131 #define USB_INTEP_HOST_OUT_4 0x00000010 // Endpoint 4 Host OUT Interrupt 132 #define USB_INTEP_HOST_OUT_3 0x00000008 // Endpoint 3 Host OUT Interrupt 133 #define USB_INTEP_HOST_OUT_2 0x00000004 // Endpoint 2 Host OUT Interrupt 134 #define USB_INTEP_HOST_OUT_1 0x00000002 // Endpoint 1 Host OUT Interrupt 136 #define USB_INTEP_DEV_IN 0x0000FFFE // Device IN Interrupts 137 #define USB_INTEP_DEV_IN_15 0x00008000 // Endpoint 15 Device IN Interrupt 138 #define USB_INTEP_DEV_IN_14 0x00004000 // Endpoint 14 Device IN Interrupt 139 #define USB_INTEP_DEV_IN_13 0x00002000 // Endpoint 13 Device IN Interrupt 140 #define USB_INTEP_DEV_IN_12 0x00001000 // Endpoint 12 Device IN Interrupt 141 #define USB_INTEP_DEV_IN_11 0x00000800 // Endpoint 11 Device IN Interrupt 142 #define USB_INTEP_DEV_IN_10 0x00000400 // Endpoint 10 Device IN Interrupt 143 #define USB_INTEP_DEV_IN_9 0x00000200 // Endpoint 9 Device IN Interrupt 144 #define USB_INTEP_DEV_IN_8 0x00000100 // Endpoint 8 Device IN Interrupt 145 #define USB_INTEP_DEV_IN_7 0x00000080 // Endpoint 7 Device IN Interrupt 146 #define USB_INTEP_DEV_IN_6 0x00000040 // Endpoint 6 Device IN Interrupt 147 #define USB_INTEP_DEV_IN_5 0x00000020 // Endpoint 5 Device IN Interrupt 148 #define USB_INTEP_DEV_IN_4 0x00000010 // Endpoint 4 Device IN Interrupt 149 #define USB_INTEP_DEV_IN_3 0x00000008 // Endpoint 3 Device IN Interrupt 150 #define USB_INTEP_DEV_IN_2 0x00000004 // Endpoint 2 Device IN Interrupt 151 #define USB_INTEP_DEV_IN_1 0x00000002 // Endpoint 1 Device IN Interrupt 153 #define USB_INTEP_0 0x00000001 // Endpoint 0 Interrupt 160 #define USB_UNDEF_SPEED 0x80000000 // Current speed is undefined 161 #define USB_HIGH_SPEED 0x00000002 // Current speed is High Speed 162 #define USB_FULL_SPEED 0x00000001 // Current speed is Full Speed 163 #define USB_LOW_SPEED 0x00000000 // Current speed is Low Speed 172 #define USB_HOST_IN_STATUS 0x114F0000 // Mask of all host IN interrupts 173 #define USB_HOST_IN_PID_ERROR 0x10000000 // Stall on this endpoint received 174 #define USB_HOST_IN_NOT_COMP 0x01000000 // Device failed to respond 175 #define USB_HOST_IN_STALL 0x00400000 // Stall on this endpoint received 176 #define USB_HOST_IN_DATA_ERROR 0x00080000 // CRC or bit-stuff error 178 #define USB_HOST_IN_NAK_TO 0x00080000 // NAK received for more than the 180 #define USB_HOST_IN_ERROR 0x00040000 // Failed to communicate with a 182 #define USB_HOST_IN_FIFO_FULL 0x00020000 // RX FIFO full 183 #define USB_HOST_IN_PKTRDY 0x00010000 // Data packet ready 184 #define USB_HOST_OUT_STATUS 0x000000A7 // Mask of all host OUT interrupts 185 #define USB_HOST_OUT_NAK_TO 0x00000080 // NAK received for more than the 187 #define USB_HOST_OUT_NOT_COMP 0x00000080 // No response from device 189 #define USB_HOST_OUT_STALL 0x00000020 // Stall on this endpoint received 190 #define USB_HOST_OUT_ERROR 0x00000004 // Failed to communicate with a 192 #define USB_HOST_OUT_FIFO_NE 0x00000002 // TX FIFO is not empty 193 #define USB_HOST_OUT_PKTPEND 0x00000001 // Transmit still being transmitted 194 #define USB_HOST_EP0_NAK_TO 0x00000080 // NAK received for more than the 196 #define USB_HOST_EP0_STATUS 0x00000040 // This was a status packet 197 #define USB_HOST_EP0_ERROR 0x00000010 // Failed to communicate with a 199 #define USB_HOST_EP0_RX_STALL 0x00000004 // Stall on this endpoint received 200 #define USB_HOST_EP0_RXPKTRDY 0x00000001 // Receive data packet ready 201 #define USB_DEV_RX_PID_ERROR 0x01000000 // PID error in isochronous 203 #define USB_DEV_RX_SENT_STALL 0x00400000 // Stall was sent on this endpoint 204 #define USB_DEV_RX_DATA_ERROR 0x00080000 // CRC error on the data 205 #define USB_DEV_RX_OVERRUN 0x00040000 // OUT packet was not loaded due to 207 #define USB_DEV_RX_FIFO_FULL 0x00020000 // RX FIFO full 208 #define USB_DEV_RX_PKT_RDY 0x00010000 // Data packet ready 209 #define USB_DEV_TX_NOT_COMP 0x00000080 // Large packet split up, more data 211 #define USB_DEV_TX_SENT_STALL 0x00000020 // Stall was sent on this endpoint 212 #define USB_DEV_TX_UNDERRUN 0x00000004 // IN received with no data ready 213 #define USB_DEV_TX_FIFO_NE 0x00000002 // The TX FIFO is not empty 214 #define USB_DEV_TX_TXPKTRDY 0x00000001 // Transmit still being transmitted 215 #define USB_DEV_EP0_SETUP_END 0x00000010 // Control transaction ended before 217 #define USB_DEV_EP0_SENT_STALL 0x00000004 // Stall was sent on this endpoint 218 #define USB_DEV_EP0_IN_PKTPEND 0x00000002 // Transmit data packet pending 219 #define USB_DEV_EP0_OUT_PKTRDY 0x00000001 // Receive data packet ready 227 #define USB_EP_AUTO_SET 0x00000001 // Auto set feature enabled 228 #define USB_EP_AUTO_REQUEST 0x00000002 // Auto request feature enabled 229 #define USB_EP_AUTO_CLEAR 0x00000004 // Auto clear feature enabled 230 #define USB_EP_DMA_MODE_0 0x00000008 // Enable DMA access using mode 0 231 #define USB_EP_DMA_MODE_1 0x00000010 // Enable DMA access using mode 1 232 #define USB_EP_DIS_NYET 0x00000020 // Disable NYET response for 235 #define USB_EP_MODE_ISOC 0x00000000 // Isochronous endpoint 236 #define USB_EP_MODE_BULK 0x00000100 // Bulk endpoint 237 #define USB_EP_MODE_INT 0x00000200 // Interrupt endpoint 238 #define USB_EP_MODE_CTRL 0x00000300 // Control endpoint 239 #define USB_EP_MODE_MASK 0x00000300 // Mode Mask 240 #define USB_EP_SPEED_LOW 0x00000000 // Low Speed 241 #define USB_EP_SPEED_FULL 0x00001000 // Full Speed 242 #define USB_EP_SPEED_HIGH 0x00004000 // High Speed 243 #define USB_EP_HOST_IN 0x00000000 // Host IN endpoint 244 #define USB_EP_HOST_OUT 0x00002000 // Host OUT endpoint 245 #define USB_EP_DEV_IN 0x00002000 // Device IN endpoint 246 #define USB_EP_DEV_OUT 0x00000000 // Device OUT endpoint 254 #define USB_HOST_PWRFLT_LOW 0x00000010 255 #define USB_HOST_PWRFLT_HIGH 0x00000030 256 #define USB_HOST_PWRFLT_EP_NONE 0x00000000 257 #define USB_HOST_PWRFLT_EP_TRI 0x00000140 258 #define USB_HOST_PWRFLT_EP_LOW 0x00000240 259 #define USB_HOST_PWRFLT_EP_HIGH 0x00000340 260 #define USB_HOST_PWREN_MAN_LOW 0x00000000 261 #define USB_HOST_PWREN_MAN_HIGH 0x00000001 262 #define USB_HOST_PWREN_AUTOLOW 0x00000002 263 #define USB_HOST_PWREN_AUTOHIGH 0x00000003 264 #define USB_HOST_PWREN_FILTER 0x00010000 272 #define USB_HOST_LPM_RMTWAKE 0x00000100 273 #define USB_HOST_LPM_L1 0x00000001 281 #define USB_DEV_LPM_NAK 0x00000010 282 #define USB_DEV_LPM_NONE 0x00000000 283 #define USB_DEV_LPM_EN 0x0000000c 284 #define USB_DEV_LPM_EXTONLY 0x00000004 292 #define USB_DEV_LPM_LS_RMTWAKE 0x00000100 293 #define USB_DEV_LPM_LS_L1 0x00000001 302 #define USB_INTLPM_ERROR 0x00000020 303 #define USB_INTLPM_RESUME 0x00000010 304 #define USB_INTLPM_INCOMPLETE 0x00000008 305 #define USB_INTLPM_ACK 0x00000004 306 #define USB_INTLPM_NYET 0x00000002 307 #define USB_INTLPM_STALL 0x00000001 315 #define USB_CLOCK_INTERNAL 0x00000200 316 #define USB_CLOCK_EXTERNAL 0x00000300 323 #define USB_ULPI_EXTVBUS 0x00000001 324 #define USB_ULPI_EXTVBUS_IND 0x00000002 332 #define MAX_NAK_LIMIT 31 // Maximum NAK interval 333 #define DISABLE_NAK_LIMIT 0 // No NAK timeouts 341 #define MAX_PACKET_SIZE_EP0 64 348 #define USB_EP_0 0x00000000 // Endpoint 0 349 #define USB_EP_1 0x00000010 // Endpoint 1 350 #define USB_EP_2 0x00000020 // Endpoint 2 351 #define USB_EP_3 0x00000030 // Endpoint 3 352 #define USB_EP_4 0x00000040 // Endpoint 4 353 #define USB_EP_5 0x00000050 // Endpoint 5 354 #define USB_EP_6 0x00000060 // Endpoint 6 355 #define USB_EP_7 0x00000070 // Endpoint 7 356 #define NUM_USB_EP 8 // Number of supported endpoints 364 #define IndexToUSBEP(x) ((x) << 4) 365 #define USBEPToIndex(x) ((x) >> 4) 373 #define USB_FIFO_SZ_8 0x00000000 // 8 byte FIFO 374 #define USB_FIFO_SZ_16 0x00000001 // 16 byte FIFO 375 #define USB_FIFO_SZ_32 0x00000002 // 32 byte FIFO 376 #define USB_FIFO_SZ_64 0x00000003 // 64 byte FIFO 377 #define USB_FIFO_SZ_128 0x00000004 // 128 byte FIFO 378 #define USB_FIFO_SZ_256 0x00000005 // 256 byte FIFO 379 #define USB_FIFO_SZ_512 0x00000006 // 512 byte FIFO 380 #define USB_FIFO_SZ_1024 0x00000007 // 1024 byte FIFO 381 #define USB_FIFO_SZ_2048 0x00000008 // 2048 byte FIFO 389 #define USBFIFOSizeToBytes(x) (8 << (x)) 397 #define USB_TRANS_OUT 0x00000102 // Normal OUT transaction 398 #define USB_TRANS_IN 0x00000102 // Normal IN transaction 399 #define USB_TRANS_IN_LAST 0x0000010a // Final IN transaction (for 401 #define USB_TRANS_SETUP 0x0000110a // Setup transaction (for endpoint 403 #define USB_TRANS_STATUS 0x00000142 // Status transaction (for endpoint 411 #define USB_DUAL_MODE_HOST 0x00000001 // Dual mode controller is in Host 413 #define USB_DUAL_MODE_DEVICE 0x00000081 // Dual mode controller is in 415 #define USB_DUAL_MODE_NONE 0x00000080 // Dual mode controller mode is not 417 #define USB_OTG_MODE_ASIDE_HOST 0x0000001d // OTG controller on the A side of 419 #define USB_OTG_MODE_ASIDE_NPWR 0x00000001 // OTG controller on the A side of 421 #define USB_OTG_MODE_ASIDE_SESS 0x00000009 // OTG controller on the A side of 423 #define USB_OTG_MODE_ASIDE_AVAL 0x00000011 // OTG controller on the A side of 425 #define USB_OTG_MODE_ASIDE_DEV 0x00000019 // OTG controller on the A side of 427 #define USB_OTG_MODE_BSIDE_HOST 0x0000009d // OTG controller on the B side of 429 #define USB_OTG_MODE_BSIDE_DEV 0x00000099 // OTG controller on the B side of 431 #define USB_OTG_MODE_BSIDE_NPWR 0x00000081 // OTG controller on the B side of 433 #define USB_OTG_MODE_NONE 0x00000080 // OTG controller mode is not set. 441 #define USB_DMA_INT_CH8 0x00000080 442 #define USB_DMA_INT_CH7 0x00000040 443 #define USB_DMA_INT_CH6 0x00000020 444 #define USB_DMA_INT_CH5 0x00000010 445 #define USB_DMA_INT_CH4 0x00000008 446 #define USB_DMA_INT_CH3 0x00000004 447 #define USB_DMA_INT_CH2 0x00000002 448 #define USB_DMA_INT_CH1 0x00000001 455 #define USB_DMA_STATUS_ERROR 0x00000100 463 #define USB_DMA_CFG_BURST_NONE 0x00000000 464 #define USB_DMA_CFG_BURST_4 0x00000200 465 #define USB_DMA_CFG_BURST_8 0x00000400 466 #define USB_DMA_CFG_BURST_16 0x00000600 467 #define USB_DMA_CFG_INT_EN 0x00000008 468 #define USB_DMA_CFG_MODE_0 0x00000000 469 #define USB_DMA_CFG_MODE_1 0x00000004 470 #define USB_DMA_CFG_DIR_RX 0x00000000 471 #define USB_DMA_CFG_DIR_TX 0x00000002 472 #define USB_DMA_CFG_EN 0x00000001 480 #define USB_MODE_HOST_VBUS 0x00000004 481 #define USB_MODE_HOST 0x00000002 482 #define USB_MODE_DEV_VBUS 0x00000005 483 #define USB_MODE_DEV 0x00000003 484 #define USB_MODE_OTG 0x00000000 492 extern void USBDevAddrSet(uint32_t ui32Base, uint32_t ui32Address);
496 uint32_t ui32MaxPacketSize,
499 uint32_t *pui32MaxPacketSize,
500 uint32_t *pui32Flags);
515 uint32_t ui32Config);
517 uint8_t *pui8Data, uint32_t *pui32Size);
519 uint8_t *pui8Data, uint32_t ui32Size);
521 uint32_t ui32TransType);
523 uint32_t ui32Endpoint,
528 extern uint32_t
USBFIFOAddrGet(uint32_t ui32Base, uint32_t ui32Endpoint);
530 uint32_t *pui32FIFOAddress,
531 uint32_t *pui32FIFOSize, uint32_t ui32Flags);
533 uint32_t ui32FIFOAddress, uint32_t ui32FIFOSize,
535 extern void USBFIFOFlush(uint32_t ui32Base, uint32_t ui32Endpoint,
538 extern uint32_t
USBHostAddrGet(uint32_t ui32Base, uint32_t ui32Endpoint,
540 extern void USBHostAddrSet(uint32_t ui32Base, uint32_t ui32Endpoint,
541 uint32_t ui32Addr, uint32_t ui32Flags);
543 uint32_t ui32MaxPacketSize,
544 uint32_t ui32NAKPollInterval,
545 uint32_t ui32TargetEndpoint,
548 uint32_t ui32Endpoint);
550 bool bDataToggle, uint32_t ui32Flags);
552 uint32_t ui32Endpoint,
557 uint32_t ui32Addr, uint32_t ui32Flags);
566 extern void USBHostReset(uint32_t ui32Base,
bool bStart);
576 extern void USBIntRegister(uint32_t ui32Base,
void (*pfnHandler)(
void));
579 extern uint32_t
USBModeGet(uint32_t ui32Base);
582 uint32_t ui32Endpoint, uint32_t ui32Config);
587 uint32_t ui32Channel);
591 uint32_t ui32Channel, uint32_t ui32Flags);
598 uint32_t ui32Status);
603 extern void USBHostLPMSend(uint32_t ui32Base, uint32_t ui32Address,
604 uint32_t uiEndpoint);
606 uint32_t ui32Config);
618 extern void USBHighSpeed(uint32_t ui32Base,
bool bEnable);
623 extern void USBULPIConfig(uint32_t ui32Base, uint32_t ui32Config);
632 extern void USBModeConfig(uint32_t ui32Base, uint32_t ui32Mode);
646 #endif // __DRIVERLIB_USB_H__ void USBDevEndpointStall(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:1355
void USBModeConfig(uint32_t ui32Base, uint32_t ui32Mode)
Definition: usb.c:4026
int32_t USBEndpointDataPut(uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t ui32Size)
Definition: usb.c:2979
void USBIntEnableEndpoint(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: usb.c:738
void USBPHYPowerOn(uint32_t ui32Base)
Definition: usb.c:4072
void USBDevLPMEnable(uint32_t ui32Base)
Definition: usb.c:5241
void USBHostAddrSet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags)
Definition: usb.c:3349
void USBHostEndpointDataAck(uint32_t ui32Base, uint32_t ui32Endpoint)
Definition: usb.c:2933
uint32_t USBDMAChannelCountGet(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4709
void USBEndpointDMAEnable(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:2633
void * USBDMAChannelAddressGet(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4635
uint32_t USBModeGet(uint32_t ui32Base)
Definition: usb.c:3878
void USBDMAChannelDisable(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4388
void USBIntDisableControl(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: usb.c:505
uint32_t USBDevSpeedGet(uint32_t ui32Base)
Definition: usb.c:470
void USBHostRequestStatus(uint32_t ui32Base)
Definition: usb.c:3314
void USBHostEndpointDataToggle(uint32_t ui32Base, uint32_t ui32Endpoint, bool bDataToggle, uint32_t ui32Flags)
Definition: usb.c:1159
void USBHostEndpointStatusClear(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:1029
uint32_t USBEndpointDataAvail(uint32_t ui32Base, uint32_t ui32Endpoint)
Definition: usb.c:2716
void USBDMAChannelAddressSet(uint32_t ui32Base, uint32_t ui32Channel, void *pvAddress)
Definition: usb.c:4595
uint32_t USBFIFOAddrGet(uint32_t ui32Base, uint32_t ui32Endpoint)
Definition: usb.c:3823
void USBHostPwrEnable(uint32_t ui32Base)
Definition: usb.c:3704
uint32_t USBEndpointStatus(uint32_t ui32Base, uint32_t ui32Endpoint)
Definition: usb.c:980
void USBDMAChannelIntEnable(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4250
void USBDMAChannelStatusClear(uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Status)
Definition: usb.c:4546
void USBIntDisableEndpoint(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: usb.c:698
void USBDevMode(uint32_t ui32Base)
Definition: usb.c:3941
void USBHostPwrFaultDisable(uint32_t ui32Base)
Definition: usb.c:3676
void USBDevLPMConfig(uint32_t ui32Base, uint32_t ui32Config)
Definition: usb.c:5200
uint32_t USBDMAChannelStatus(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4507
void USBDMAChannelAssign(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Channel, uint32_t ui32Flags)
void USBHostLPMSend(uint32_t ui32Base, uint32_t ui32Address, uint32_t uiEndpoint)
Definition: usb.c:5007
uint32_t USBFrameNumberGet(uint32_t ui32Base)
Definition: usb.c:3757
void USBLPMIntEnable(uint32_t ui32Base, uint32_t ui32Ints)
Definition: usb.c:5567
void USBHostSuspend(uint32_t ui32Base)
Definition: usb.c:230
void USBFIFOFlush(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:3130
int32_t USBEndpointDataGet(uint32_t ui32Base, uint32_t ui32Endpoint, uint8_t *pui8Data, uint32_t *pui32Size)
Definition: usb.c:2780
void USBEndpointPacketCountSet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Count)
Definition: usb.c:4097
void USBDevConnect(uint32_t ui32Base)
Definition: usb.c:1485
void USBULPIRegWrite(uint32_t ui32Base, uint8_t ui8Reg, uint8_t ui8Data)
Definition: usb.c:4937
void USBClockEnable(uint32_t ui32Base, uint32_t ui32Div, uint32_t ui32Flags)
Definition: usb.c:4170
void USBHostMode(uint32_t ui32Base)
Definition: usb.c:3916
void USBHostPwrDisable(uint32_t ui32Base)
Definition: usb.c:3732
void USBDevLPMRemoteWake(uint32_t ui32Base)
Definition: usb.c:5145
void USBHostResume(uint32_t ui32Base, bool bStart)
Definition: usb.c:364
void USBULPIEnable(uint32_t ui32Base)
Definition: usb.c:4824
void USBOTGMode(uint32_t ui32Base)
Definition: usb.c:3967
void USBEndpointDataToggleClear(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:1254
void USBHostPwrConfig(uint32_t ui32Base, uint32_t ui32Flags)
Definition: usb.c:3609
uint32_t USBHostSpeedGet(uint32_t ui32Base)
Definition: usb.c:408
void USBHostEndpointPing(uint32_t ui32Base, uint32_t ui32Endpoint, bool bEnable)
Definition: usb.c:1314
void USBHighSpeed(uint32_t ui32Base, bool bEnable)
Definition: usb.c:314
uint32_t USBLPMIntStatus(uint32_t ui32Base)
Definition: usb.c:5498
void USBEndpointDMADisable(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:2673
void USBIntUnregister(uint32_t ui32Base)
Definition: usb.c:885
bool USBLPMRemoteWakeEnabled(uint32_t ui32Base)
Definition: usb.c:5415
void USBDevEndpointDataAck(uint32_t ui32Base, uint32_t ui32Endpoint, bool bIsLastPacket)
Definition: usb.c:2882
void USBClockDisable(uint32_t ui32Base)
Definition: usb.c:4202
uint32_t USBNumEndpointsGet(uint32_t ui32Base)
Definition: usb.c:4120
void USBLPMIntDisable(uint32_t ui32Base, uint32_t ui32Ints)
Definition: usb.c:5635
void USBDevEndpointStatusClear(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:1075
void USBULPIConfig(uint32_t ui32Base, uint32_t ui32Config)
Definition: usb.c:4797
void USBDMAChannelEnable(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4352
void USBHostPwrFaultEnable(uint32_t ui32Base)
Definition: usb.c:3649
void USBHostEndpointSpeed(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:1926
void USBDMAChannelCountSet(uint32_t ui32Base, uint32_t ui32Count, uint32_t ui32Channel)
Definition: usb.c:4671
uint32_t USBDMANumChannels(uint32_t ui32Base)
Definition: usb.c:4746
uint8_t USBULPIRegRead(uint32_t ui32Base, uint8_t ui8Reg)
Definition: usb.c:4884
void USBFIFOConfigGet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32FIFOAddress, uint32_t *pui32FIFOSize, uint32_t ui32Flags)
Definition: usb.c:2442
uint32_t USBLPMEndpointGet(uint32_t ui32Base)
Definition: usb.c:5375
void USBDevEndpointConfigSet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPacketSize, uint32_t ui32Flags)
Definition: usb.c:2039
void USBDevEndpointConfigGet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t *pui32MaxPacketSize, uint32_t *pui32Flags)
Definition: usb.c:2199
void USBIntEnableControl(uint32_t ui32Base, uint32_t ui32IntFlags)
Definition: usb.c:556
uint32_t USBHostHubAddrGet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:3525
void USBHostReset(uint32_t ui32Base, bool bStart)
Definition: usb.c:262
uint32_t USBIntStatusEndpoint(uint32_t ui32Base)
Definition: usb.c:779
void USBHostRequestIN(uint32_t ui32Base, uint32_t ui32Endpoint)
Definition: usb.c:3214
int32_t USBEndpointDataSend(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32TransType)
Definition: usb.c:3060
void USBOTGSessionRequest(uint32_t ui32Base, bool bStart)
Definition: usb.c:3785
uint32_t USBLPMLinkStateGet(uint32_t ui32Base)
Definition: usb.c:5336
void USBDMAChannelIntDisable(uint32_t ui32Base, uint32_t ui32Channel)
Definition: usb.c:4285
uint32_t USBHostAddrGet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:3399
void USBHostLPMResume(uint32_t ui32Base)
Definition: usb.c:5110
void USBDevLPMDisable(uint32_t ui32Base)
Definition: usb.c:5282
void USBHostRequestINClear(uint32_t ui32Base, uint32_t ui32Endpoint)
Definition: usb.c:3264
void USBHostLPMConfig(uint32_t ui32Base, uint32_t ui32ResumeTime, uint32_t ui32Config)
Definition: usb.c:5070
uint32_t USBDevAddrGet(uint32_t ui32Base)
Definition: usb.c:1571
void USBHostHubAddrSet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Addr, uint32_t ui32Flags)
Definition: usb.c:3453
void USBULPIDisable(uint32_t ui32Base)
Definition: usb.c:4852
void USBDMAChannelConfigSet(uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, uint32_t ui32Config)
Definition: usb.c:4461
void USBIntRegister(uint32_t ui32Base, void(*pfnHandler)(void))
Definition: usb.c:845
void USBDevEndpointStallClear(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Flags)
Definition: usb.c:1417
void USBDevDisconnect(uint32_t ui32Base)
Definition: usb.c:1514
void USBFIFOConfigSet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32FIFOAddress, uint32_t ui32FIFOSize, uint32_t ui32Flags)
Definition: usb.c:2379
void USBDevAddrSet(uint32_t ui32Base, uint32_t ui32Address)
Definition: usb.c:1543
uint32_t USBIntStatusControl(uint32_t ui32Base)
Definition: usb.c:631
void USBHostEndpointConfig(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32MaxPacketSize, uint32_t ui32NAKPollInterval, uint32_t ui32TargetEndpoint, uint32_t ui32Flags)
Definition: usb.c:1666
void USBEndpointDMAConfigSet(uint32_t ui32Base, uint32_t ui32Endpoint, uint32_t ui32Config)
Definition: usb.c:2560
void USBPHYPowerOff(uint32_t ui32Base)
Definition: usb.c:4050
uint32_t USBDMAChannelIntStatus(uint32_t ui32Base)
Definition: usb.c:4321