32typedef enum : uint32_t {
49typedef enum : uint8_t {
61typedef enum : uint32_t {
70typedef enum : uint32_t {
88typedef enum : uint32_t {
101typedef enum : uint16_t {
127typedef enum : uint32_t {
140#ifndef RA8_OFF_TARGET
dfu_config_t
Compile-time settings: threads, pool, console, cadence.
@ k_dfu_print_cap
Bound for console-string scans.
@ k_dfu_usbx_pool_bytes
USBX memory pool (bytes).
@ k_dfu_host_priority
Host worker priority (below USBX).
@ k_dfu_retry_ticks
Pause between ladder retries.
@ k_dfu_boot_wait_ticks
Host start delay (1 ms ticks).
@ k_dfu_dev_priority
Device bring-up worker priority.
@ k_dfu_thread_stack
Device worker stack (bytes).
@ k_dfu_baud
J-Link OB CDC log baud.
@ k_dfu_idle_ticks
Parked-loop back-off (ticks).
@ k_dfu_host_stack
Host worker stack (bytes).
dfu_req_t
Chapter-9 + DFU class request / descriptor constants.
@ k_dfu_breq_dnload
DFU_DNLOAD.
@ k_dfu_breq_getstatus
DFU_GETSTATUS.
@ k_dfu_breq_get_desc
GET_DESCRIPTOR.
@ k_dfu_byte_bits
Bits per byte.
@ k_dfu_bm_std_dev_in
bmRequestType: Std | Device | In.
@ k_dfu_getstatus_len
DFU_GETSTATUS payload len.
@ k_dfu_breq_set_config
SET_CONFIGURATION.
@ k_dfu_breq_set_addr
SET_ADDRESS.
@ k_dfu_desc_device
DEVICE descriptor type.
@ k_dfu_off_dev_pid
idProduct LSB byte offset.
@ k_dfu_state_dnload_idle
dfuDNLOAD-IDLE.
@ k_dfu_bm_class_if_in
bmRequestType: Class | Interface | In.
@ k_dfu_breq_abort
DFU_ABORT (-> dfuIDLE).
@ k_dfu_dev_desc_len
DEVICE descriptor length.
@ k_dfu_breq_upload
DFU_UPLOAD.
@ k_dfu_bm_class_if_out
bmRequestType: Class | Interface | Out.
@ k_dfu_state_idle
dfuIDLE.
@ k_dfu_bm_std_dev_out
bmRequestType: Std | Device | Out.
@ k_dfu_off_status_state
bState offset in GETSTATUS.
dfu_enum_tune_t
Timing / retry tunables for the polled enumeration + status polling.
@ k_dfu_reset_hold_ms
USB bus-reset hold (>=10 ms).
@ k_dfu_attach_to_ms
Wait for the D+ pull-up.
@ k_dfu_enum_tries
Reset+probe attempts.
@ k_dfu_attach_spin
Attach spin cap (frozen-tick guard).
@ k_dfu_recovery_ms
Post-reset recovery (TRSTRCY).
@ k_dfu_status_poll_ms
Pause between GETSTATUS polls.
@ k_dfu_addr_settle_ms
Post-SET_ADDRESS recovery.
@ k_dfu_vbus_settle_ms
VBUS settle before probing.
@ k_dfu_debounce_ms
Post-attach debounce (>=100 ms).
@ k_dfu_status_tries
GETSTATUS polls before giving up.
dfu_phase_t
J-Link probe values marking host-ladder progress.
@ k_dfu_phase_init
Host controller init.
@ k_dfu_phase_pass
Image verified byte-equal.
@ k_dfu_phase_upload
Running DFU_UPLOAD.
@ k_dfu_phase_download
Running DFU_DNLOAD.
@ k_dfu_phase_enum
Enumerating.
@ k_dfu_phase_boot
Host thread not started.
dfu_hex_t
Hex/decimal text-formatter sizing constants.
@ k_dfu_hex_chars_u32
32-bit value -> "ABCDEF01".
@ k_dfu_hex_digit_split
Threshold between '0-9'/'A-F'.
@ k_dfu_nibble_bits
Bits per hex nibble.
dfu_mask_t
Bit-mask constant used by the hex formatter.
@ k_dfu_nibble_mask
4-bit nibble mask.
dfu_geom_t
Firmware-image geometry + pattern constants.
@ k_dfu_xfer_size
wTransferSize: bytes per DFU block.
@ k_dfu_byte_mask
Byte mask.
@ k_dfu_dev_addr
Address the host assigns.
@ k_dfu_pat_idx_mul
Per-index pattern multiplier.
@ k_dfu_no_mismatch
Probe: no mismatch.
@ k_dfu_image_bytes
k_dfu_blocks * k_dfu_xfer_size.
@ k_dfu_pat_blk_mul
Per-block pattern multiplier.
@ k_dfu_intf
DFU interface number.
@ k_dfu_config_val
bConfigurationValue.
@ k_dfu_pat_bias
Pattern constant bias.
@ k_dfu_blocks
Blocks in the rehearsal image.
@ k_dfu_dec_chars_u32
Max digits for a 32-bit count.
@ k_dfu_hex_chars_u16
16-bit value -> "ABCD".
@ k_dfu_dec_radix
Base for decimal conversion.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_err_t dfu_host_pass(void)
Run the full host pass: enumerate, download, upload-verify.