Struct rk3399_pac::MipiDsiHost0

source ·
pub struct MipiDsiHost0 { /* private fields */ }
Expand description

MIPI Display Serial Interface (DSI) Host 0 Registers

Implementations§

source§

impl MipiDsiHost0

source

pub const PTR: *const RegisterBlock = {0xff960000 as *const mipi_dsi_host::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn version(&self) -> &Version

0x00 - VERSION

source

pub fn pwr_up(&self) -> &PwrUp

0x04 - PWR_UP

source

pub fn clkmgr_cfg(&self) -> &ClkmgrCfg

0x08 - Internal Clock Dividers Configuration Register

source

pub fn dpi_vcid(&self) -> &DpiVcid

0x0c - DPI Virtual Channel ID Register

source

pub fn dpi_color_coding(&self) -> &DpiColorCoding

0x10 - DPI Color Coding Register

source

pub fn dpi_cfg_pol(&self) -> &DpiCfgPol

0x14 - DPI Polarity Configuration Register

source

pub fn dpi_lp_cmd_tim(&self) -> &DpiLpCmdTim

0x18 - Low-Power Command Timing Configuration Register

source

pub fn pckhdl_cfg(&self) -> &PckhdlCfg

0x2c - Packet Handler Configuration Register

source

pub fn gen_vcid(&self) -> &GenVcid

0x30 - Generic Interface Virtual Channel Id Register

source

pub fn mode_cfg(&self) -> &ModeCfg

0x34 - Register0000 Abstract

source

pub fn vid_mode_cfg(&self) -> &VidModeCfg

0x38 - Video Mode Configuration Register

source

pub fn vid_pkt_size(&self) -> &VidPktSize

0x3c - Video Packet Size Register

source

pub fn vid_num_chunks(&self) -> &VidNumChunks

0x40 - Number Of Chunks Register

source

pub fn vid_null_size(&self) -> &VidNullSize

0x44 - Null Packet Size Register

source

pub fn vid_hsa_time(&self) -> &VidHsaTime

0x48 - Horizontal Sync Active Time Register

source

pub fn vid_hbp_time(&self) -> &VidHbpTime

0x4c - Register0005 Abstract

source

pub fn vid_hline_time(&self) -> &VidHlineTime

0x50 - Line Time Register

source

pub fn vid_vsa_lines(&self) -> &VidVsaLines

0x54 - VID_VSA_LINES

source

pub fn vid_vbp_lines(&self) -> &VidVbpLines

0x58 - Vertical Back Porch Period Register

source

pub fn vid_vfp_lines(&self) -> &VidVfpLines

0x5c - Vertical Front Porch Period Register

source

pub fn vid_vactive_lines(&self) -> &VidVactiveLines

0x60 - Vertical Resolution Register

source

pub fn edpi_cmd_size(&self) -> &EdpiCmdSize

0x64 - eDPI Packet Size Register

source

pub fn cmd_mode_cfg(&self) -> &CmdModeCfg

0x68 - Command Mode Configuration Register

source

pub fn gen_hdr(&self) -> &GenHdr

0x6c - Generic Packet Header Configuration Register

source

pub fn gen_pld_data(&self) -> &GenPldData

0x70 - Generic Payload Data In And Out Register

source

pub fn cmd_pkt_status(&self) -> &CmdPktStatus

0x74 - Command Packet Status Register

source

pub fn to_cnt_cfg(&self) -> &ToCntCfg

0x78 - Timeout Timers Configuration Register

source

pub fn hs_rd_to_cnt(&self) -> &HsRdToCnt

0x7c - Peripheral Response Timeout Definition after Hi

source

pub fn lp_rd_to_cnt(&self) -> &LpRdToCnt

0x80 - Peripheral Response Timeout Definition after Lo

source

pub fn hs_wr_to_cnt(&self) -> &HsWrToCnt

0x84 - Peripheral Response Timeout Definition after Hi

source

pub fn lp_wr_to_cnt(&self) -> &LpWrToCnt

0x88 - Peripheral Response Timeout Definition after Lo

source

pub fn bta_to_cnt(&self) -> &BtaToCnt

0x8c - Peripheral Response Timeout Definition after B

source

pub fn lpclk_ctrl(&self) -> &LpclkCtrl

0x94 - Low-power in Clock Lane Register

source

pub fn phy_tmr_lpclk_cfg(&self) -> &PhyTmrLpclkCfg

0x98 - D-PHY Timing Configuration for the Clock Lane

source

pub fn phy_tmr_cfg(&self) -> &PhyTmrCfg

0x9c - D-PHY Data Lanes Timing Configuration Registe

source

pub fn phy_rstz(&self) -> &PhyRstz

0xa0 - D-PHY Reset Control Register

source

pub fn phy_if_cfg(&self) -> &PhyIfCfg

0xa4 - D-PHY Interface Configuration Register

source

pub fn phy_ulps_ctrl(&self) -> &PhyUlpsCtrl

0xa8 - D-PHY Ultra Low-Power Control Register

source

pub fn phy_tx_triggers(&self) -> &PhyTxTriggers

0xac - D-PHY Transmit Triggers Register

source

pub fn phy_status(&self) -> &PhyStatus

0xb0 - Register0010 Abstract

source

pub fn phy_tst_ctrl0(&self) -> &PhyTstCtrl0

0xb4 - D-PHY Test Interface Control 0 Register

source

pub fn phy_tst_ctrl1(&self) -> &PhyTstCtrl1

0xb8 - D-PHY Test Interface Control 1 Register

source

pub fn int_st0(&self) -> &IntSt0

0xbc - Interrupt Status Register 0

source

pub fn int_st1(&self) -> &IntSt1

0xc0 - Interrupt Status Register 1

source

pub fn int_msk0(&self) -> &IntMsk0

0xc4 - Masks the Interrupt Generation Triggered by the

source

pub fn int_msk1(&self) -> &IntMsk1

0xc8 - Masks the Interrupt Generation Triggered by the

source

pub fn int_force0(&self) -> &IntForce0

0xd8 - Force Interrupt Configuration Register

source

pub fn int_force1(&self) -> &IntForce1

0xdc - Force Interrupt Configuration Register

Trait Implementations§

source§

impl Debug for MipiDsiHost0

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for MipiDsiHost0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for MipiDsiHost0

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.