ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
usb_selftest_console.h
Go to the documentation of this file.
1
14
15#pragma once
16
17#include <stdint.h>
18
19#include "ra8_err.h"
20
28[[nodiscard]] ra8_err_t selftest_print(const char* text);
29
37[[nodiscard]] ra8_err_t selftest_print_dec(uint32_t value);
38
47[[nodiscard]] ra8_err_t selftest_print_hex(uint32_t value, uint8_t digits);
48
57[[nodiscard]] ra8_err_t selftest_print_fail(const char* what, ra8_err_t err);
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
ra8_err_t selftest_print_hex(uint32_t value, uint8_t digits)
Print the low digits hex nibbles of value (upper-case).
ra8_err_t selftest_print_fail(const char *what, ra8_err_t err)
Print a "FAIL <what> err=0x..." diagnostic line.
ra8_err_t selftest_print(const char *text)
Print a NUL-terminated ASCII string over the console.
ra8_err_t selftest_print_dec(uint32_t value)
Print an unsigned 32-bit value in decimal.