ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_eth_coma.h
Go to the documentation of this file.
1
18
19#pragma once
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <stdint.h>
26
27#include "ra8_err.h"
28
33typedef void (*ra8_eth_coma_event_fn_t)(void* ctx, uint32_t status_mask);
34
36[[nodiscard]] ra8_err_t ra8_eth_coma_init(void);
37
39[[nodiscard]] ra8_err_t ra8_eth_coma_deinit(void);
40
83[[nodiscard]] ra8_err_t ra8_eth_coma_bringup(void);
84
86[[nodiscard]] ra8_err_t ra8_eth_coma_get_status(uint32_t* out_mask);
87
89[[nodiscard]] ra8_err_t ra8_eth_coma_clear_status(uint32_t mask);
90
93
104void ra8_eth_coma_dispatch(void);
105
107[[nodiscard]] ra8_err_t ra8_eth_coma_enter_stop(void);
108
110[[nodiscard]] ra8_err_t ra8_eth_coma_exit_stop(void);
111
112#ifdef __cplusplus
113}
114#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
ra8_err_t ra8_eth_coma_enter_stop(void)
Put COMA into MSTP-gated stop.
ra8_err_t ra8_eth_coma_exit_stop(void)
Exit MSTP-gated stop.
ra8_err_t ra8_eth_coma_attach_handler(ra8_eth_coma_event_fn_t fn, void *ctx)
Attach the shared event handler.
void ra8_eth_coma_dispatch(void)
Dispatch a COMA event.
ra8_err_t ra8_eth_coma_bringup(void)
Bring the COMA switch out of reset, init the buffer pool, and fan every per-agent clock out.
ra8_err_t ra8_eth_coma_deinit(void)
Tear down COMA.
ra8_err_t ra8_eth_coma_clear_status(uint32_t mask)
Clear COMA_STS bits via COMA_ICLR.
ra8_err_t ra8_eth_coma_get_status(uint32_t *out_mask)
Read COMA_STS.
ra8_err_t ra8_eth_coma_init(void)
Initialise COMA.
void(* ra8_eth_coma_event_fn_t)(void *ctx, uint32_t status_mask)
COMA event callback.