nRF5 SDK v17.1.0
Macros
USBD peripheral driver configuration

Macros

#define NRFX_USBD_ENABLED
 Enable USB driver. More...
 
#define NRFX_USBD_CONFIG_IRQ_PRIORITY
 Interrupt priority. More...
 
#define NRFX_USBD_CONFIG_DMASCHEDULER_MODE
 USBD DMA scheduler working scheme. More...
 
#define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST
 Give priority to isochronous transfers. More...
 
#define NRFX_USBD_CONFIG_ISO_IN_ZLP
 Respond to an IN token on ISO IN endpoint with ZLP when no data is ready. More...
 
#define NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211
 Use workaround for anomaly 211. More...
 

Detailed Description

Macro Definition Documentation

#define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST

Give priority to isochronous transfers.

This option gives priority to isochronous transfers. Enabling it assures that isochronous transfers are always processed, even if multiple other transfers are pending. Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm function is called, so the option is independent of the algorithm chosen.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRFX_USBD_CONFIG_DMASCHEDULER_MODE

USBD DMA scheduler working scheme.

Following options are available:

  • 0 - Prioritized access
  • 1 - Round Robin
Note
This is an NRF_CONFIG macro.
#define NRFX_USBD_CONFIG_IRQ_PRIORITY

Interrupt priority.

Following options are available:

  • 0 - 0 (highest)
  • 1 - 1
  • 2 - 2
  • 3 - 3
  • 4 - 4 (Applicable devices only)
  • 5 - 5 (Applicable devices only)
  • 6 - 6 (Applicable devices only)
  • 7 - 7 (Applicable devices only)
Note
This is an NRF_CONFIG macro.
#define NRFX_USBD_CONFIG_ISO_IN_ZLP

Respond to an IN token on ISO IN endpoint with ZLP when no data is ready.

If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent. Else, there will be no response.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRFX_USBD_ENABLED

Enable USB driver.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211

Use workaround for anomaly 211.

If set, workaround for anomaly 211 will be enabled. Anomaly 211 - Device remains in SUSPEND too long when host resumes bus activity (sending SOF packets) without a RESUME condition.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated