Home
last modified time | relevance | path

Searched refs:dfu_data (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/usb/device/class/dfu/
Dusb_dfu.c337 static struct dfu_data_t dfu_data = { variable
352 if (dfu_data.state == appIDLE || in dfu_check_app_state()
353 dfu_data.state == appDETACH) { in dfu_check_app_state()
354 dfu_data.state = appIDLE; in dfu_check_app_state()
366 dfu_data.bytes_sent = 0U; in dfu_reset_counters()
367 dfu_data.block_nr = 0U; in dfu_reset_counters()
368 if (flash_img_init(&dfu_data.ctx)) { in dfu_reset_counters()
370 dfu_data.state = dfuERROR; in dfu_reset_counters()
371 dfu_data.status = errUNKNOWN; in dfu_reset_counters()
384 if (flash_img_buffered_write(&dfu_data.ctx, data, len, flush)) { in dfu_flash_write()
[all …]
/Zephyr-latest/subsys/usb/device_next/class/
Dusbd_dfu.c86 static struct usbd_dfu_data dfu_data = { variable
182 k_work_init_delayable(&dfu_data.dwork, runtime_detach_work); in usbd_dfu_preinit()
638 USBD_DEFINE_CLASS(dfu_runtime, &runtime_mode_api, &dfu_data, NULL);
794 USBD_DEFINE_CLASS(dfu_dfu, &dfu_api, &dfu_data, NULL);