86 unsigned char* framework,
87 uint32_t framework_len,
88 unsigned char* strings,
90 unsigned char* langids,
91 uint32_t langids_len);
Controller-agnostic USB-DFU MRAM bootloader core for the RA8D2.
ra8_dfu_slot_t
Application-slot identifier.
bool ra8_dfu_device_manifested(void)
Whether the host has signalled end-of-download / manifest.
ra8_err_t ra8_dfu_device_last_error(void)
Latched last program error (diagnostic).
ra8_err_t ra8_dfu_device_start(ra8_usb_speed_t speed, void *usbx_pool, uint32_t pool_bytes, unsigned char *framework, uint32_t framework_len, unsigned char *strings, uint32_t strings_len, unsigned char *langids, uint32_t langids_len)
Bring up USBX + the DFU class on one controller and raise D+.
void ra8_dfu_device_set_target(ra8_dfu_slot_t target_slot)
Select the slot DFU_DNLOAD programs into / DFU_UPLOAD reads from.
ra8_err_t ra8_dfu_device_worker_step(void)
Program any pending DNLOAD block into MRAM; commit on end-of-download.
uint32_t ra8_dfu_device_image_len(void)
Total image bytes accepted so far (diagnostic).
uint32_t ra8_dfu_device_block_writes(void)
Count of DNLOAD blocks programmed into MRAM (diagnostic).
bool ra8_dfu_device_committed(void)
Whether the image header has been committed (slot now bootable).
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.