void(* ra8_dtc_event_fn_t)(void *ctx, uint16_t status)
DTC activation-complete callback.
ra8_err_t ra8_dtc_disable(void)
Stop the DTC module.
ra8_err_t ra8_dtc_enter_stop(void)
Put the DTC into MSTP-gated stop.
ra8_err_t ra8_dtc_get_status(uint16_t *out_mask)
Read the DTCSTS activation status register.
ra8_err_t ra8_dtc_deinit(void)
Tear down the DTC (clears run bit + drops MSTP ref).
ra8_err_t ra8_dtc_reconfigure(void *vector_base)
Reconfigure the DTC vector base at runtime.
ra8_err_t ra8_dtc_exit_stop(void)
Exit MSTP-gated stop and re-arm the engine.
void ra8_dtc_dispatch(void)
Fire the attached activation callback with current DTCSTS.
ra8_err_t ra8_dtc_attach_handler(ra8_dtc_event_fn_t fn, void *ctx)
Attach a shared activation-complete callback.
ra8_err_t ra8_dtc_enable(void)
Start the DTC module.
ra8_err_t ra8_dtc_clear_status(uint16_t mask)
Clear sticky bits in DTCSTS.
ra8_err_t ra8_dtc_init(void *vector_base)
Initialise the DTC and install its vector table base.
DTC (Data Transfer Controller) register layout for the RA8D2.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.