|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
MIPI DSI-2 host driver – public types (enums / structs / typedefs). More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_mipi_dsi_timing_t |
| LP / HS guard-band timing values. More... | |
| struct | ra8_mipi_dsi_timeouts_t |
| Bus timeout counters (HSTXTOSETR / LRXHTOSETR / TATOSETR / PRESPTO* registers). More... | |
| struct | ra8_mipi_dsi_video_cfg_t |
| Video-mode timing + format + sync configuration. More... | |
| struct | ra8_mipi_dsi_command_t |
| Generic DSI packet descriptor for ra8_mipi_dsi_send_command. More... | |
| struct | ra8_mipi_dsi_rx_result_t |
| Decoded view of a single RXRSS slot register. More... | |
| struct | ra8_mipi_dsi_link_status_t |
| Decoded view of LINKSR. More... | |
| struct | ra8_mipi_dsi_ack_error_t |
| Decoded view of AKEPLATIR / AKEPACMSR. More... | |
| struct | ra8_mipi_dsi_config_t |
| Static configuration passed to ra8_mipi_dsi_init. More... | |
Typedefs | |
| typedef void(* | ra8_mipi_dsi_event_fn_t) (void *ctx, ra8_mipi_dsi_event_t event, uint32_t status_mask) |
| MIPI DSI ISR-context callback signature. | |
MIPI DSI-2 host driver – public types (enums / structs / typedefs).
Type-definition split of the MIPI DSI host public API (HUM Ch 65, p 3839-3934). Carries the lane-count / clock-mode / virtual-channel / data-type enumerations, the configuration + status + command + receive structs, and the ISR-callback function-pointer typedef. Pulled out of ra8_mipi_dsi.h so the umbrella stays a thin include shim; consumers keep including ra8_mipi_dsi.h unchanged.
Definition in file ra8_mipi_dsi_types.h.
| typedef void(* ra8_mipi_dsi_event_fn_t) (void *ctx, ra8_mipi_dsi_event_t event, uint32_t status_mask) |
MIPI DSI ISR-context callback signature.
status_mask carries the snapshot of the ISR register at the moment the dispatch routine ran. The driver clears the underlying sub-status registers (SQCH0SCR, SQCH1SCR, VMSCR, RXSCR, FERRSCR, PLSCR) before invoking the user callback so the application sees a coherent view.
Definition at line 306 of file ra8_mipi_dsi_types.h.
| enum ra8_mipi_dsi_clock_mode_t : uint8_t |
Continuous vs non-continuous HS clock (HSCLKSETR.HSCLMD).
| Enumerator | |
|---|---|
| k_ra8_mipi_dsi_clock_non_continuous | HS clock idles in LP. |
| k_ra8_mipi_dsi_clock_continuous | HS clock runs forever. |
Definition at line 47 of file ra8_mipi_dsi_types.h.
| enum ra8_mipi_dsi_dt_t : uint8_t |
Frequently used DSI Data Types (cmd id) for short and long packets.
Drawn from the MIPI DSI 1.1 specification table 7. Both short- and long-packet entries are listed so the same enum can drive ra8_mipi_dsi_send_short_packet, _send_long_packet, and the video-mode pixel-stream selector.
Definition at line 78 of file ra8_mipi_dsi_types.h.
| enum ra8_mipi_dsi_event_t : uint8_t |
Event class delivered to the user callback.
Mirrors the FSP mipi_dsi_event_t so application code that already targets FSP can be ported with a 1:1 enum substitution.
Definition at line 138 of file ra8_mipi_dsi_types.h.
| enum ra8_mipi_dsi_lane_count_t : uint8_t |
Number of D-PHY data lanes the DSI link drives.
HUM Ch 65.1 "Overview" p 3839 confirms the host supports 1- and 2-lane configurations only; the package brings out two physical data lanes plus one clock lane.
| Enumerator | |
|---|---|
| k_ra8_mipi_dsi_lanes_1 | 1 data lane + 1 clock lane. |
| k_ra8_mipi_dsi_lanes_2 | 2 data lanes + 1 clock lane. |
Definition at line 38 of file ra8_mipi_dsi_types.h.
| enum ra8_mipi_dsi_lane_sel_t : uint8_t |
Lane selector for ULPS enter / exit transitions.
Bits can be OR'd: for example lane = k_ra8_mipi_dsi_lane_clock | k_ra8_mipi_dsi_lane_data puts the entire link into ULPS.
Definition at line 122 of file ra8_mipi_dsi_types.h.
| enum ra8_mipi_dsi_vc_t : uint8_t |
DSI virtual channel identifier (DT[7:6] in the packet header).
Only VC0 is wired up by the EK-RA8D2 panel; the other three are reserved for multi-display use cases. HUM Ch 65 lists VC0..VC3 in the descriptor word A bit layout.
| Enumerator | |
|---|---|
| k_ra8_mipi_dsi_vc0 | Virtual channel 0 (default panel). |
| k_ra8_mipi_dsi_vc1 | Virtual channel 1. |
| k_ra8_mipi_dsi_vc2 | Virtual channel 2. |
| k_ra8_mipi_dsi_vc3 | Virtual channel 3. |
Definition at line 61 of file ra8_mipi_dsi_types.h.