ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
usb_selftest_hid_steps.h
Go to the documentation of this file.
1
29
30#pragma once
31
32#include <stdint.h>
33
34#include "ra8_err.h"
35
36#ifndef RA8_OFF_TARGET
37#include "tx_api.h"
38#endif
39
56
68
88
108void hid_fill_report_body(uint8_t* out, uint32_t len);
109
128[[nodiscard]] ra8_err_t hid_print(const char* text);
129
148[[nodiscard]] ra8_err_t hid_print_dec(uint32_t value);
149
169[[nodiscard]] ra8_err_t hid_print_hex(uint32_t value, uint8_t digits);
170
190[[nodiscard]] ra8_err_t hid_print_fail(const char* what, ra8_err_t err);
191
192#ifndef RA8_OFF_TARGET
210VOID hid_host_worker(ULONG arg);
211#endif /* !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.
Definition ra8_err.h:546
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.