ra8_err_t ra8_dfu_host_run(ra8_usb_speed_t host_speed, const uint8_t *img, uint32_t img_len, ra8_dfu_host_result_t *out)
Enumerate, DFU_DNLOAD img, DFU_ABORT, DFU_UPLOAD, and byte-verify.
ra8_err_t ra8_dfu_host_program(ra8_usb_speed_t host_speed, const uint8_t *img, uint32_t img_len, ra8_dfu_host_result_t *out)
Enumerate, DFU_DNLOAD img, then a zero-length DFU_DNLOAD (manifest).
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Native USB controller driver public API (device + host modes).
ra8_usb_speed_t
Selects which controller instance the call targets.
Outcome of a DFU round-trip for diagnostics / banners.
uint32_t blocks_ok
Upload blocks that byte-matched.
uint32_t mismatch
First differing block, or 0xFFFFFFFF.
uint32_t pid
Enumerated idProduct.
ra8_err_t last_err
First failing step's error, or k_ra8_ok.