ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_error_interface.h
Go to the documentation of this file.
1
17
18#pragma once
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#include "ra8_err.h"
25
30typedef struct {
38 void (*report)(void* ctx, const char* tag, const char* msg, ra8_err_t err);
42 void* ctx;
44
50
51#ifdef __cplusplus
52}
53#endif
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
const ra8_error_interface_t g_ra8_error_sink_log
Production ra8_error_interface_t that pushes reports into the standard ra8_log_error_val backend.
Vtable for an error sink.
void * ctx
Opaque context.
void(* report)(void *ctx, const char *tag, const char *msg, ra8_err_t err)
Record a non-fatal error.