Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_err_t ra8_ulpt_enter_stop(uint8_t channel)
Put one channel into MSTP-gated stop.
ra8_err_t ra8_ulpt_deinit(uint8_t channel)
Tear down a ULPT channel.
void ra8_ulpt_dispatch(uint8_t channel)
Dispatch a ULPT event – fire callback.
ra8_err_t ra8_ulpt_set_period(uint8_t channel, uint32_t period)
Change the ULPT period at runtime.
void(* ra8_ulpt_event_fn_t)(void *ctx, uint8_t channel)
ULPT event callback.
ra8_err_t ra8_ulpt_attach_handler(ra8_ulpt_event_fn_t fn, void *ctx)
Attach a ULPT event callback (shared across channels).
ra8_err_t ra8_ulpt_get_status(uint8_t channel, uint8_t *out_mask)
Read ULPTCR status bits.
ra8_err_t ra8_ulpt_stop(uint8_t channel)
Stop a ULPT channel and confirm the counter has halted.
ra8_err_t ra8_ulpt_exit_stop(uint8_t channel)
Exit MSTP-gated stop.
ra8_err_t ra8_ulpt_init(void)
Reset both ULPT channels to their power-on state.
ra8_err_t ra8_ulpt_start(uint8_t channel, uint32_t period)
Start a ULPT channel counting down from period.
Ultra-Low-Power Timer (ULPT) register layout for the Renesas RA8D2.