19#ifndef USB_USBUS_DFU_H
20#define USB_USBUS_DFU_H
37#ifdef MODULE_RIOTBOOT_USB_DFU
Definition for USB DFU interfaces.
usb_dfu_state_t
USBUS DFU internal state.
struct usbus_dfu_device usbus_dfu_device_t
USBUS DFU device interface context.
void usbus_dfu_init(usbus_t *usbus, usbus_dfu_device_t *handler, unsigned mode)
DFU initialization function.
riotboot flash writing module
firmware update state structure
USBUS descriptor generator.
USBUS DFU device interface context.
usbus_interface_t iface
Control interface.
usb_dfu_state_t dfu_state
Internal DFU state machine.
usbus_string_t slot0_str
Descriptor string for Slot 0.
unsigned mode
0 - APP mode, 1 DFU mode
bool skip_signature
Skip RIOTBOOT signature status.
unsigned selected_slot
Slot used for upgrade.
usbus_handler_t handler_ctrl
Control interface handler.
usbus_descr_gen_t dfu_descr
DFU descriptor generator.
usbus_t * usbus
Ptr to the USBUS context.
USBUS interface alternative setting.