Module rp2040_pac2::usb::regs [−][src]
Structs
AddrEndp | Device address and endpoint control |
AddrEndpX | Interrupt endpoint 15. Only valid for HOST mode. |
BuffCpuShouldHandle | Which of the double buffers should be handled. Only valid if using an interrupt per buffer (i.e. not per 2 buffers). Not valid for host interrupt endpoint polling because they are only single buffered. |
BuffStatus | Buffer status register. A bit set here indicates that a buffer has completed on the endpoint (if the buffer interrupt is enabled). It is possible for 2 buffers to be completed, so clearing the buffer status bit may instantly re set it on the next clock cycle. |
EpAbort | Device only: Can be set to ignore the buffer control register for this endpoint in case you would like to revoke a buffer. A NAK will be sent for every access to the endpoint until this bit is cleared. A corresponding bit in |
EpAbortDone | Device only: Used in conjunction with |
EpStallArm | Device: this bit must be set in conjunction with the |
EpStatusStallNak | Device: bits are set when the |
Int | Raw Interrupts |
IntEpCtrl | interrupt endpoint control register |
MainCtrl | Main control register |
NakPoll | Used by the host controller. Sets the wait time in microseconds before trying again if the device replies with a NAK. |
SieCtrl | SIE control register |
SieStatus | SIE status register |
SofRd | Read the last SOF (Start of Frame) frame number seen. In device mode the last SOF received from the host. In host mode the last SOF sent by the host. |
SofWr | Set the SOF (Start of Frame) frame number in the host controller. The SOF packet is sent every 1ms and the host will increment the frame number by 1 each time. |
UsbMuxing | Where to connect the USB controller. Should be to_phy by default. |
UsbPwr | Overrides for the power signals in the event that the VBUS signals are not hooked up to GPIO. Set the value of the override and then the override enable to switch over to the override value. |
UsbphyDirect | This register allows for direct control of the USB phy. Use in conjunction with usbphy_direct_override register to enable each override bit. |
UsbphyDirectOverride | Override enable for each control in usbphy_direct |
UsbphyTrim | Used to adjust trim values of USB phy pull down resistors. |