ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_etha_internal.h
Go to the documentation of this file.
1
21
22#pragma once
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include "ra8_attributes.h"
29#include "ra8_etha.h"
30
40
52
73{
74 return (uint8_t)port < k_ra8_etha_port_count;
75}
76
77#ifdef __cplusplus
78}
79#endif
Annotation-attribute framework macros for ra8-firmware.
#define RA8_INTERNAL
Marker that a function is intended to be static (file-local).
ra8_etha_slot_t s_etha_slots[k_ra8_etha_port_count]
Per-port handler table; index = ra8_etha_port_t.
Definition ra8_etha.c:117
Per-port Ethernet Agent (ETHA) driver – HUM Ch 32 (p 1627-1702).
static bool internal_port_ok(ra8_etha_port_t port)
Range-check a port argument.
ra8_etha_port_t
ETHA port index (m = 0, 1).
@ k_ra8_etha_port_count
Number of ETHA ports.
void(* ra8_etha_event_fn_t)(void *ctx, ra8_etha_port_t port, uint32_t eaeis0, uint32_t eaeis1, uint32_t eaeis2)
ETHA per-port event callback.
Per-port runtime traffic counters maintained by ra8_etha.
Per-port runtime state.
ra8_etha_event_fn_t cb
Attached callback (nullptr if none).
void * ctx
Opaque cookie passed back to cb.
ra8_etha_port_stats_t stats
Per-port traffic counters.