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_mipi_csi_enter_stop(void)
Gate the peripheral via MSTP (low-power entry helper).
ra8_err_t ra8_mipi_csi_set_data_format(uint8_t vc, ra8_mipi_csi_data_format_t format)
Select the CSI-2 payload format the receiver should accept on a specific virtual channel.
ra8_err_t ra8_mipi_csi_exit_stop(void)
Ungate the peripheral via MSTP (low-power exit helper).
ra8_err_t ra8_mipi_csi_attach_short_packet_handler(ra8_mipi_csi_short_event_fn_t fn, void *ctx)
Attach the short-packet FIFO callback (MIPI CSI GST vector).
ra8_err_t ra8_mipi_csi_attach_error_handler(ra8_mipi_csi_error_fn_t fn, void *ctx)
Register a callback invoked on ECC / CRC error reports.
ra8_err_t ra8_mipi_csi_short_packet_clear_fifo(void)
Request a clear of the entire short-packet FIFO (GSIU.GFCLR).
ra8_err_t ra8_mipi_csi_read_short_packet(ra8_mipi_csi_short_packet_t *out)
Drain one stored short-packet header from the FIFO.
void ra8_mipi_csi_dispatch(void)
ISR-side dispatcher for the receive vector.
ra8_err_t ra8_mipi_csi_attach_pm_handler(ra8_mipi_csi_pm_event_fn_t fn, void *ctx)
Attach the power-management callback (MIPI CSI PM vector).
ra8_err_t ra8_mipi_csi_short_packet_set_irq_enable(uint32_t mask)
Programme GSIE (short-packet IRQ enable).
ra8_err_t ra8_mipi_csi_set_virtual_channels(uint16_t vc_mask)
Filter which CSI-2 virtual channels the receiver will surface.
ra8_err_t ra8_mipi_csi_short_packet_re_enable_store(void)
Re-enable storing into the FIFO after a GOV overflow (GSIU.GFEN).
void ra8_mipi_csi_dispatch_pm(void)
ISR-side dispatcher for the power-management vector.
ra8_err_t ra8_mipi_csi_attach_handler(ra8_mipi_csi_event_fn_t fn, void *ctx)
Attach the receive-status callback (MIPI CSI RX vector).
ra8_err_t ra8_mipi_csi_short_packet_get_status(uint32_t *out_mask)
Read GSST (short-packet status).
ra8_err_t ra8_mipi_csi_attach_vc_handler(ra8_mipi_csi_vc_event_fn_t fn, void *ctx)
Attach the per-VC callback (MIPI CSI VC vector).
void ra8_mipi_csi_dispatch_short_packet(void)
ISR-side dispatcher for the generic-short-packet vector.
void ra8_mipi_csi_dispatch_vc(void)
ISR-side dispatcher for the per-VC vector.
ra8_err_t ra8_mipi_csi_short_packet_clear_status(uint32_t mask)
W1C-clear GSST.GOV (FIFO overflow) via GSSC.
void ra8_mipi_csi_dispatch_dl(void)
ISR-side dispatcher for the data-lane vector.
ra8_err_t ra8_mipi_csi_attach_dl_handler(ra8_mipi_csi_dl_event_fn_t fn, void *ctx)
Attach the per-data-lane callback (MIPI CSI DL vector).
ra8_err_t ra8_mipi_csi_short_packet_configure(uint8_t threshold, bool store_enable)
Programme GSCT (short-packet FIFO threshold + store flag).
MIPI CSI-2 Receiver register layout for the RA8D2 (HUM Ch 66).
MIPI CSI-2 receiver HAL driver – public types.
void(* ra8_mipi_csi_dl_event_fn_t)(void *ctx, uint8_t lane, uint32_t dlst)
Data-lane IRQ callback.
void(* ra8_mipi_csi_event_fn_t)(void *ctx, uint32_t rxst_mask)
MIPI CSI receive-status event callback.
void(* ra8_mipi_csi_pm_event_fn_t)(void *ctx, uint32_t pmst)
Power-management IRQ callback.
void(* ra8_mipi_csi_short_event_fn_t)(void *ctx, uint32_t gsst)
Generic-short-packet FIFO IRQ callback.
ra8_mipi_csi_data_format_t
Per-virtual-channel payload format used by ra8_mipi_csi_set_data_format.
void(* ra8_mipi_csi_error_fn_t)(void *ctx, const ra8_mipi_csi_error_report_t *report)
Callback invoked when the receiver reports an ECC or CRC error.
void(* ra8_mipi_csi_vc_event_fn_t)(void *ctx, uint8_t vc, uint32_t vcst)
Per-virtual-channel IRQ callback.
One drained generic short-packet header.