44typedef enum : uint32_t {
61typedef enum : uint8_t {
73typedef enum : uint32_t {
192#ifndef RA8_OFF_TARGET
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
unsigned long ULONG
ThreadX-compatible unsigned long (host stub).
hid_hex_t
Hex/decimal text-formatter sizing constants.
@ k_hid_dec_chars_u32
Max digits for a 32-bit count.
@ k_hid_hex_chars_u32
32-bit value -> "ABCDEF01".
@ k_hid_nibble_bits
Bits per hex nibble.
@ k_hid_hex_chars_u16
16-bit value -> "ABCD".
@ k_hid_hex_digit_split
Threshold between '0-9'/'A-F'.
hid_geom_t
HID report + interrupt-pipe + pattern constants.
@ k_hid_report_len
Vendor input report width (bytes).
@ k_hid_ep_in_num
Device interrupt-IN endpoint num.
@ k_hid_rounds
Reports the host reads + checks.
@ k_hid_pat_bias
Pattern constant bias.
@ k_hid_pipe_in
Host pipe for the device IN.
@ k_hid_pat_idx_mul
Per-index pattern multiplier.
@ k_hid_mps
Interrupt endpoint wMaxPacketSize.
@ k_hid_no_mismatch
Probe: no mismatch.
@ k_hid_read_buf
One-MPS receive buffer (bytes).
@ k_hid_dev_addr
Address the host assigns.
@ k_hid_body_idx
Report body starts at byte 1.
@ k_hid_byte_mask
Byte mask.
@ k_hid_seq_idx
Report byte 0: modifier / rolling seq.
hid_config_t
Compile-time settings: threads, pool, console, cadence.
@ k_hid_print_cap
Bound for console-string scans.
@ k_hid_thread_stack
Device worker stack (bytes).
@ k_hid_idle_ticks
Parked-loop back-off (ticks).
@ k_hid_usbx_pool_bytes
USBX memory pool (bytes).
@ k_hid_host_stack
Host worker stack (bytes).
@ k_hid_host_priority
Host worker priority (below USBX).
@ k_hid_retry_ticks
Pause between ladder retries.
@ k_hid_baud
J-Link OB CDC log baud.
@ k_hid_boot_wait_ticks
Host start delay (1 ms ticks).
@ k_hid_dev_priority
Device bring-up worker priority.
ra8_err_t hid_print(const char *text)
Print a NUL-terminated ASCII string over the console.
ra8_err_t hid_print_fail(const char *what, ra8_err_t err)
Print "FAIL <what> err=0xNNNNNNNN" on its own line.
ra8_err_t hid_print_hex(uint32_t value, uint8_t digits)
Print a value as fixed-width uppercase hex.
VOID hid_host_worker(ULONG arg)
Host-side worker: retry the full pass until it succeeds.
void hid_fill_report_body(uint8_t *out, uint32_t len)
Fill the fixed body of a HID report (bytes 1..len-1).
ra8_err_t hid_print_dec(uint32_t value)
Print a uint32_t as ASCII decimal.