ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_dfu_device.h
Go to the documentation of this file.
1
26
27#pragma once
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include <stdint.h>
34
35#include "ra8_dfu.h"
36#include "ra8_err.h"
37#include "ra8_usb.h"
38
53
84 void* usbx_pool,
85 uint32_t pool_bytes,
86 unsigned char* framework,
87 uint32_t framework_len,
88 unsigned char* strings,
89 uint32_t strings_len,
90 unsigned char* langids,
91 uint32_t langids_len);
92
113
138
163
191
217
246
247#ifdef __cplusplus
248}
249#endif
Controller-agnostic USB-DFU MRAM bootloader core for the RA8D2.
ra8_dfu_slot_t
Application-slot identifier.
Definition ra8_dfu.h:133
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.
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.