nRF5 SDK v17.1.0
Macros
Software Component configuration

Macros

#define USBD_ENABLED
 Enable USB driver. More...
 
#define USBD_CONFIG_IRQ_PRIORITY
 Interrupt priority. More...
 
#define USBD_CONFIG_DMASCHEDULER_MODE
 USBD SMA scheduler working scheme. More...
 
#define USBD_CONFIG_DMASCHEDULER_ISO_BOOST
 Give priority to isochronous transfers. More...
 
#define USBD_CONFIG_ISO_IN_ZLP
 Respond to an IN token on ISO IN endpoint with ZLP when no data is ready. More...
 

Detailed Description

Macro Definition Documentation

#define 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 USBD_CONFIG_DMASCHEDULER_MODE

USBD SMA scheduler working scheme.

Following options are available:

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

Interrupt priority.

Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice

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 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. NOTE: This option does not work on Engineering A chip.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define USBD_ENABLED

Enable USB driver.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated