nRF5 SDK v17.1.0
Data Structures | Macros | Enumerations
USB Nordic DFU Trigger types

nRF52840 only: Types used in the USB Nordic DFU Trigger class. More...

Data Structures

struct  app_usbd_nrf_dfu_trigger_desc_func_t
 Nordic DFU Trigger Functional Descriptor. More...
 
struct  app_usbd_nrf_dfu_trigger_nordic_info_t
 Nordic custom DFU information. More...
 

Macros

#define APP_USBD_NRF_DFU_TRIGGER_CLASS   0xFF
 Nordic DFU Trigger class definition in interface descriptor. More...
 

Enumerations

enum  app_usbd_nrf_dfu_trigger_subclass_t { APP_USBD_NRF_DFU_TRIGGER_SUBCLASS = 0x01 }
 Nordic DFU Trigger subclass possible value. More...
 
enum  app_usbd_nrf_dfu_trigger_protocol_t { APP_USBD_NRF_DFU_TRIGGER_PROTOCOL_RUNTIME = 0x01 }
 Nordic DFU Trigger protocol possible value. More...
 
enum  app_usbd_nrf_dfu_trigger_req_t {
  APP_USBD_NRF_DFU_TRIGGER_REQ_DETACH = 0x00,
  APP_USBD_NRF_DFU_TRIGGER_REQ_NORDIC_INFO = 0x07,
  APP_USBD_NRF_DFU_TRIGGER_REQ_SEM_VER = 0x08
}
 Nordic DFU Trigger USB requests nrf_drv_usbd_setup_t::bmRequestType. More...
 
enum  app_usbd_nrf_dfu_trigger_func_type_t { APP_USBD_NRF_DFU_TRIGGER_CS_FUNCTIONAL = 0x21 }
 Nordic DFU Trigger Functional Descriptor types. More...
 
enum  app_usbd_nrf_dfu_trigger_bm_attributes_t {
  APP_USBD_NRF_DFU_TRIGGER_BIT_CAN_DNLOAD = 0x01,
  APP_USBD_NRF_DFU_TRIGGER_BIT_CAB_UPLOAD = 0x02,
  APP_USBD_NRF_DFU_TRIGGER_BIT_MANI_TOLERANT = 0x04,
  APP_USBD_NRF_DFU_TRIGGER_BIT_WILL_DETACH = 0x08
}
 Nordic DFU Trigger functional descriptor bmAttributes bit masks. More...
 

Detailed Description

nRF52840 only: Types used in the USB Nordic DFU Trigger class.

Macro Definition Documentation

#define APP_USBD_NRF_DFU_TRIGGER_CLASS   0xFF

Nordic DFU Trigger class definition in interface descriptor.

app_usbd_descriptor_iface_t::bInterfaceClass

Enumeration Type Documentation

Nordic DFU Trigger functional descriptor bmAttributes bit masks.

Note
For future compatibility with DFU class.
Enumerator
APP_USBD_NRF_DFU_TRIGGER_BIT_CAN_DNLOAD 

bitCanDnload

APP_USBD_NRF_DFU_TRIGGER_BIT_CAB_UPLOAD 

bitCanUpload

APP_USBD_NRF_DFU_TRIGGER_BIT_MANI_TOLERANT 

bitManifestationTolerant

APP_USBD_NRF_DFU_TRIGGER_BIT_WILL_DETACH 

bitWillDetach

Nordic DFU Trigger Functional Descriptor types.

Enumerator
APP_USBD_NRF_DFU_TRIGGER_CS_FUNCTIONAL 

Functional descriptor type.

Nordic DFU Trigger protocol possible value.

Note
Only Run-time protocol is implemented, as DFU mode is covered by Nordic DFU.
Enumerator
APP_USBD_NRF_DFU_TRIGGER_PROTOCOL_RUNTIME 

Run-time Protocol

Nordic DFU Trigger USB requests nrf_drv_usbd_setup_t::bmRequestType.

Note
Requests are limited only to APP_USBD_NRF_DFU_TRIGGER_PROTOCOL_RUNTIME protocol type.
Enumerator
APP_USBD_NRF_DFU_TRIGGER_REQ_DETACH 

Switch to DFU mode

APP_USBD_NRF_DFU_TRIGGER_REQ_NORDIC_INFO 

Request Nordic DFU information

APP_USBD_NRF_DFU_TRIGGER_REQ_SEM_VER 

Request semantic version information

Nordic DFU Trigger subclass possible value.

Enumerator
APP_USBD_NRF_DFU_TRIGGER_SUBCLASS 

Device Firmware Upgrade Code


Documentation feedback | Developer Zone | Subscribe | Updated