USBIP C library 0.7.0
Virtual USB devices & host drivers over USB/IP
Loading...
Searching...
No Matches
dfu_opts Struct Reference

DFU configuration: the target table + DFU functional-descriptor parameters. More...

#include <classes/dfu.h>

+ Collaboration diagram for dfu_opts:

Data Fields

const dfu_targettargets
 Target table (one entry per alternate setting)
 
int n_targets
 Number of targets.
 
uint16_t transfer_size
 DFU wTransferSize (0 -> 1024)
 
uint8_t attributes
 DFU bmAttributes (0 -> 0x07: dnload|upload|manifest-tolerant)
 
int winusb
 Nonzero -> advertise WinUSB (Microsoft OS 1.0 + 2.0)
 
void(* on_event )(void *user, const char *text)
 Human-readable log hook (optional).
 
void * user
 Passed to on_event.
 

Detailed Description

DFU configuration: the target table + DFU functional-descriptor parameters.

Field Documentation

◆ targets

const dfu_target* dfu_opts::targets

Target table (one entry per alternate setting)

◆ n_targets

int dfu_opts::n_targets

Number of targets.

◆ transfer_size

uint16_t dfu_opts::transfer_size

DFU wTransferSize (0 -> 1024)

◆ attributes

uint8_t dfu_opts::attributes

DFU bmAttributes (0 -> 0x07: dnload|upload|manifest-tolerant)

◆ winusb

int dfu_opts::winusb

Nonzero -> advertise WinUSB (Microsoft OS 1.0 + 2.0)

◆ on_event

void(* dfu_opts::on_event) (void *user, const char *text)

Human-readable log hook (optional).

Parameters
userthe user pointer.
texta NUL-terminated description.

◆ user

void* dfu_opts::user

Passed to on_event.


The documentation for this struct was generated from the following file: