OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
dfu_properties.h File Reference

Detailed Description

Properties of our DFU implementation.

The constants in this file are not expected to change.

Go to the source code of this file.

Enumerations

enum  { DFU_MODE_DFU_INTERFACE_INDEX = 0 }
 The DFU interface index during DFU mode. More...
 
enum  { RUNTIME_MODE_DFU_INTERFACE_INDEX = 3 }
 The DFU interface index during runtime mode. More...
 
enum  DFUInterfaceAlternateSetting { DFU_ALT_INTERFACE_FIRMWARE = 0, DFU_ALT_INTERFACE_UID = 1 }
 Alternate settings for the DFU interface. More...
 
enum  { DFU_BLOCK_SIZE = 64 }
 The maximum size of the firmware blocks. More...
 

Enumeration Type Documentation

anonymous enum

The DFU interface index during DFU mode.

This is always 0, per the spec.

anonymous enum

The DFU interface index during runtime mode.

This is typically the last interface for a configuration.

anonymous enum

The maximum size of the firmware blocks.

Per the USB spec, this should be 8, 16, 32 or 64 bytes.

Alternate settings for the DFU interface.

By using alternate interfaces we can control which memory region we write to.

Enumerator
DFU_ALT_INTERFACE_FIRMWARE 

The main application firmware.

DFU_ALT_INTERFACE_UID 

The UID region.