ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_dfu_host.h
Go to the documentation of this file.
1
21
22#pragma once
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include <stdint.h>
29
30#include "ra8_err.h"
31#include "ra8_usb.h"
32
37typedef struct {
38 uint32_t pid;
39 uint32_t blocks_ok;
40 uint32_t mismatch;
43
74[[nodiscard]] ra8_err_t ra8_dfu_host_run(ra8_usb_speed_t host_speed,
75 const uint8_t* img,
76 uint32_t img_len,
78
107[[nodiscard]] ra8_err_t ra8_dfu_host_program(ra8_usb_speed_t host_speed,
108 const uint8_t* img,
109 uint32_t img_len,
111
112#ifdef __cplusplus
113}
114#endif
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.
Definition ra8_err.h:546
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.