ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_mipi_dsi_internal.h
Go to the documentation of this file.
1
34#pragma once
35
36#include <stdint.h>
37
38#include "ra8_attributes.h"
39#include "ra8_err.h"
40#include "ra8_mipi_dsi.h"
41#include "ra8_mipi_dsi_regs.h"
42
63
83
98
111extern void* s_mipi_dsi_event_ctx;
112
127extern uint8_t* s_mipi_dsi_pending_rx_buffer;
128
141extern uint16_t s_mipi_dsi_pending_rx_len;
142
169RA8_PRIV ra8_err_t priv_ra8_mipi_dsi_internal_wait_eq(volatile const uint32_t* reg,
170 uint32_t mask,
171 uint32_t expect);
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
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
void * s_mipi_dsi_event_ctx
Single definition of the shared IRQ callback context.
uint16_t s_mipi_dsi_pending_rx_len
Single definition of the shared pending receive capacity.
ra8_mipi_dsi_event_fn_t s_mipi_dsi_event_fn
Single definition of the shared IRQ callback pointer.
uint8_t * s_mipi_dsi_pending_rx_buffer
Single definition of the shared pending receive buffer.
MIPI DSI-2 host driver – public API (full HUM Ch 65 surface).
ra8_mipi_dsi_shifts_t
Common shift positions used across the MIPI DSI-2 driver.
@ k_dsisetr_vc_crc_shift
Dsisetr vc CRC shift.
@ k_akep_vc_shift
Akep vc shift.
@ k_shift_8
Shift 8.
@ k_dsisetr_mrpsz_shift
Dsisetr mrpsz shift.
@ k_rxrss_vc_shift
Rxrss vc shift.
@ k_ulpssetr_wkup_shift
Ulpssetr wkup shift.
@ k_rxrss_dt_shift
Rxrss dt shift.
@ k_rxrss_data1_shift
Rxrss data1 shift.
ra8_err_t priv_ra8_mipi_dsi_internal_wait_eq(volatile const uint32_t *reg, uint32_t mask, uint32_t expect)
Bounded poll waiting for (reg & mask) == expect.
ra8_mipi_dsi_internal_t
Numeric constants used by the implementation that don't belong in the public header.
@ k_ra8_mipi_dsi_byte_mask
8-bit byte field.
@ k_ra8_mipi_dsi_isr_all
RA8 mipi dsi ISR all.
@ k_ra8_mipi_dsi_bta_mask
2-bit BTA selector.
@ k_ra8_mipi_dsi_vc_mask
2-bit virtual-channel.
@ k_ra8_mipi_dsi_dt_mask
6-bit DSI Data Type.
@ k_ra8_mipi_dsi_clear_all
RW1C all-ones write mask.
MIPI DSI Host (DSI-2) register layout for the RA8D2.
@ k_ra8_mipi_dsi_isr_rcv
Receive interrupt.
@ k_ra8_mipi_dsi_isr_sq1
Sequence channel 1 interrupt.
@ k_ra8_mipi_dsi_isr_ppi
PPI (D-PHY) interrupt.
@ k_ra8_mipi_dsi_isr_ferr
Fatal-error interrupt.
@ k_ra8_mipi_dsi_isr_vm
Video-mode interrupt.
@ k_ra8_mipi_dsi_isr_sq0
Sequence channel 0 interrupt.
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.