Module nrf52840_hal::pac::usbd[][src]

Expand description

Universal serial bus device

Modules

SETUP data, byte 0, bmRequestType

SETUP data, byte 1, bRequest

State D+ and D- lines will be forced into by the DPDMDRIVE task. The DPDMNODRIVE task reverts the control of the lines to MAC IP (no forcing).

Data toggle control and status

Enable USB

Provides information on which endpoint(s) an acknowledged data transfer has occurred (EPDATA event)

Register block Unspecified

Endpoint IN enable

Register block Unspecified

Endpoint OUT enable

STALL endpoints

Provides information on which endpoint’s EasyDMA registers have been captured

Details on what caused the USBEVENT event

Description collection[n]: The whole EPIN[n] buffer has been consumed. The RAM buffer can be accessed safely by software.

Description collection[n]: The whole EPOUT[n] buffer has been consumed. The RAM buffer can be accessed safely by software.

The whole ISOIN buffer has been consumed. The RAM buffer can be accessed safely by software.

The whole ISOOUT buffer has been consumed. The RAM buffer can be accessed safely by software.

An acknowledged data transfer has taken place on the control endpoint

A valid SETUP token has been received (and acknowledged) on the control endpoint

A data transfer has occurred on a data endpoint, indicated by the EPDATASTATUS register

Signals that a SOF (start of frame) condition has been detected on USB lines

Confirms that the EPIN[n].PTR and EPIN[n].MAXCNT, or EPOUT[n].PTR and EPOUT[n].MAXCNT registers have been captured on all endpoints reported in the EPSTATUS register

An event or an error not covered by specific events has occurred. Check EVENTCAUSE register to find the cause.

Signals that a USB reset condition has been detected on USB lines

Returns the current value of the start of frame counter

Register block Unspecified

Enable or disable interrupt

Disable interrupt

Enable interrupt

Register block Unspecified

Controls the response of the ISO IN endpoint to an IN token when no data is ready to be sent

Register block Unspecified

Controls the split of ISO buffers

Controls USBD peripheral low power mode during USB suspend

Shortcut register

Register block Unspecified

Forces D+ and D- lines into the state defined in the DPDMVALUE register

Stops forcing D+ and D- lines into any state (USB engine takes control)

Allows OUT data stage on control endpoint 0

Stalls data and status stage on control endpoint 0

Allows status stage on control endpoint 0

Description collection[n]: Captures the EPIN[n].PTR and EPIN[n].MAXCNT registers values, and enables endpoint IN n to respond to traffic from host

Description collection[n]: Captures the EPOUT[n].PTR and EPOUT[n].MAXCNT registers values, and enables endpoint n to respond to traffic from host

Captures the ISOIN.PTR and ISOIN.MAXCNT registers values, and enables sending data on ISO endpoint

Captures the ISOOUT.PTR and ISOOUT.MAXCNT registers values, and enables receiving of data on ISO endpoint

Device USB address

Control of the USB pull-up

SETUP data, byte 5, MSB of wIndex

SETUP data, byte 4, LSB of wIndex

SETUP data, byte 7, MSB of wLength

SETUP data, byte 6, LSB of wLength

SETUP data, byte 3, MSB of wValue

SETUP data, byte 2, LSB of wValue

Structs

Register block

Register block

Register block

Register block

Register block

Register block

Register block

Type Definitions

SETUP data, byte 0, bmRequestType

SETUP data, byte 1, bRequest

State D+ and D- lines will be forced into by the DPDMDRIVE task. The DPDMNODRIVE task reverts the control of the lines to MAC IP (no forcing).

Data toggle control and status

Enable USB

Provides information on which endpoint(s) an acknowledged data transfer has occurred (EPDATA event)

Endpoint IN enable

Endpoint OUT enable

STALL endpoints

Provides information on which endpoint’s EasyDMA registers have been captured

Details on what caused the USBEVENT event

Description collection[n]: The whole EPIN[n] buffer has been consumed. The RAM buffer can be accessed safely by software.

Description collection[n]: The whole EPOUT[n] buffer has been consumed. The RAM buffer can be accessed safely by software.

The whole ISOIN buffer has been consumed. The RAM buffer can be accessed safely by software.

The whole ISOOUT buffer has been consumed. The RAM buffer can be accessed safely by software.

An acknowledged data transfer has taken place on the control endpoint

A valid SETUP token has been received (and acknowledged) on the control endpoint

A data transfer has occurred on a data endpoint, indicated by the EPDATASTATUS register

Signals that a SOF (start of frame) condition has been detected on USB lines

Confirms that the EPIN[n].PTR and EPIN[n].MAXCNT, or EPOUT[n].PTR and EPOUT[n].MAXCNT registers have been captured on all endpoints reported in the EPSTATUS register

An event or an error not covered by specific events has occurred. Check EVENTCAUSE register to find the cause.

Signals that a USB reset condition has been detected on USB lines

Returns the current value of the start of frame counter

Enable or disable interrupt

Disable interrupt

Enable interrupt

Controls the response of the ISO IN endpoint to an IN token when no data is ready to be sent

Controls the split of ISO buffers

Controls USBD peripheral low power mode during USB suspend

Shortcut register

Forces D+ and D- lines into the state defined in the DPDMVALUE register

Stops forcing D+ and D- lines into any state (USB engine takes control)

Allows OUT data stage on control endpoint 0

Stalls data and status stage on control endpoint 0

Allows status stage on control endpoint 0

Description collection[n]: Captures the EPIN[n].PTR and EPIN[n].MAXCNT registers values, and enables endpoint IN n to respond to traffic from host

Description collection[n]: Captures the EPOUT[n].PTR and EPOUT[n].MAXCNT registers values, and enables endpoint n to respond to traffic from host

Captures the ISOIN.PTR and ISOIN.MAXCNT registers values, and enables sending data on ISO endpoint

Captures the ISOOUT.PTR and ISOOUT.MAXCNT registers values, and enables receiving of data on ISO endpoint

Device USB address

Control of the USB pull-up

SETUP data, byte 5, MSB of wIndex

SETUP data, byte 4, LSB of wIndex

SETUP data, byte 7, MSB of wLength

SETUP data, byte 6, LSB of wLength

SETUP data, byte 3, MSB of wValue

SETUP data, byte 2, LSB of wValue