Struct rk3399_pac::TypecPhy

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

Type-C PHY Registers

Implementations§

source§

impl TypecPhy

source

pub const PTR: *const RegisterBlock = {0xff7c0000 as *const typec_phy::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 pma_lane_cfg(&self) -> &PmaLaneCfg

0x30000 - PMA lane configuration register

source

pub fn pipe_cmn_ctrl1(&self) -> &PipeCmnCtrl1

0x30004 - PIPE common control1 register

source

pub fn pipe_cmn_ctrl2(&self) -> &PipeCmnCtrl2

0x30008 - PIPE common control2 register

source

pub fn pipe_com_lock_cfg1(&self) -> &PipeComLockCfg1

0x3000c - PIPE comma lock configuration1 register

source

pub fn pipe_com_lock_cfg2(&self) -> &PipeComLockCfg2

0x30010 - PIPE comma lock configuration2 register

source

pub fn pipe_rcv_det_inh(&self) -> &PipeRcvDetInh

0x30014 - PIPE receiver detect inhibit register

source

pub fn dp_mode_ctl(&self) -> &DpModeCtl

0x30020 - DP Mode Control register

source

pub fn dp_clk_ctl(&self) -> &DpClkCtl

0x30024 - DP Clock Control register

source

pub fn sts(&self) -> &Sts

0x3003c - PHY status register

source

pub fn usb_ber_cnt(&self) -> &UsbBerCnt

0x31000 - USB loopback slave BER count isolation register

source

pub fn dp_tx_ctl_lane0(&self) -> &DpTxCtlLane0

0x31020 - DP Lane Configuration register

source

pub fn dp_tx_ctl_lane1(&self) -> &DpTxCtlLane1

0x31120 - DP Lane Configuration register

source

pub fn dp_tx_ctl_lane2(&self) -> &DpTxCtlLane2

0x31220 - DP Lane Configuration register

source

pub fn dp_tx_ctl_lane3(&self) -> &DpTxCtlLane3

0x31320 - DP Lane Configuration register

source

pub fn pma_cmn_ctrl1(&self) -> &PmaCmnCtrl1

0x32000 - PMA common control1 register

source

pub fn pma_iso_pll_ctrl0(&self) -> &PmaIsoPllCtrl0

0x32044 - PMA PLL control0 isolation register

source

pub fn pma_iso_pll_ctrl1(&self) -> &PmaIsoPllCtrl1

0x32048 - PMA PLL control1 isolation register

source

pub fn isolation_ctrl(&self) -> &IsolationCtrl

0x3207c - Isolation control register

source

pub fn pma_iso_xcvr_ctrl_lane0(&self) -> &PmaIsoXcvrCtrlLane0

0x33040 - PMA Isolation Tansceiver control register

source

pub fn pma_iso_tx_cfg_lane0(&self) -> &PmaIsoTxCfgLane0

0x33044 - PMA TX configuration register

0x33048 - PMA Isolation mode control register

source

pub fn pma_iso_pwrst_ctrl_lane0(&self) -> &PmaIsoPwrstCtrlLane0

0x3304c - PMA Isolation power state control register

source

pub fn pma_iso_tx_data_lo_lane0(&self) -> &PmaIsoTxDataLoLane0

0x33050 - PMA transmit low data isolation register

source

pub fn pma_iso_tx_data_hi_lane0(&self) -> &PmaIsoTxDataHiLane0

0x33054 - PMA transmit high data isolation register

source

pub fn pma_iso_rx_data_lo_lane0(&self) -> &PmaIsoRxDataLoLane0

0x33058 - PMA receive low data isolation register

source

pub fn pma_iso_rx_data_hi_lane0(&self) -> &PmaIsoRxDataHiLane0

0x3305c - PMA receive high data isolation register

source

pub fn pma_iso_xcvr_ctrl_lane1(&self) -> &PmaIsoXcvrCtrlLane1

0x33140 - PMA Isolation Tansceiver control register

source

pub fn pma_iso_tx_cfg_lane1(&self) -> &PmaIsoTxCfgLane1

0x33144 - PMA TX configuration register

0x33148 - PMA Isolation mode control register

source

pub fn pma_iso_pwrst_ctrl_lane1(&self) -> &PmaIsoPwrstCtrlLane1

0x3314c - PMA Isolation power state control register

source

pub fn pma_iso_tx_data_lo_lane1(&self) -> &PmaIsoTxDataLoLane1

0x33150 - PMA transmit low data isolation register

source

pub fn pma_iso_tx_data_hi_lane1(&self) -> &PmaIsoTxDataHiLane1

0x33154 - PMA transmit high data isolation register

source

pub fn pma_iso_rx_data_lo_lane1(&self) -> &PmaIsoRxDataLoLane1

0x33158 - PMA receive low data isolation register

source

pub fn pma_iso_rx_data_hi_lane1(&self) -> &PmaIsoRxDataHiLane1

0x3315c - PMA receive high data isolation register

source

pub fn pma_iso_xcvr_ctrl_lane2(&self) -> &PmaIsoXcvrCtrlLane2

0x33240 - PMA Isolation Tansceiver control register

source

pub fn pma_iso_tx_cfg_lane2(&self) -> &PmaIsoTxCfgLane2

0x33244 - PMA TX configuration register

0x33248 - PMA Isolation mode control register

source

pub fn pma_iso_pwrst_ctrl_lane2(&self) -> &PmaIsoPwrstCtrlLane2

0x3324c - PMA Isolation power state control register

source

pub fn pma_iso_tx_data_lo_lane2(&self) -> &PmaIsoTxDataLoLane2

0x33250 - PMA transmit low data isolation register

source

pub fn pma_iso_tx_data_hi_lane2(&self) -> &PmaIsoTxDataHiLane2

0x33254 - PMA transmit high data isolation register

source

pub fn pma_iso_rx_data_lo_lane2(&self) -> &PmaIsoRxDataLoLane2

0x33258 - PMA receive low data isolation register

source

pub fn pma_iso_rx_data_hi_lane2(&self) -> &PmaIsoRxDataHiLane2

0x3325c - PMA receive high data isolation register

source

pub fn pma_iso_xcvr_ctrl_lane3(&self) -> &PmaIsoXcvrCtrlLane3

0x33340 - PMA Isolation Tansceiver control register

source

pub fn pma_iso_tx_cfg_lane3(&self) -> &PmaIsoTxCfgLane3

0x33344 - PMA TX configuration register

0x33348 - PMA Isolation mode control register

source

pub fn pma_iso_pwrst_ctrl_lane3(&self) -> &PmaIsoPwrstCtrlLane3

0x3334c - PMA Isolation power state control register

source

pub fn pma_iso_tx_data_lo_lane3(&self) -> &PmaIsoTxDataLoLane3

0x33350 - PMA transmit low data isolation register

source

pub fn pma_iso_tx_data_hi_lane3(&self) -> &PmaIsoTxDataHiLane3

0x33354 - PMA transmit high data isolation register

source

pub fn pma_iso_rx_data_lo_lane3(&self) -> &PmaIsoRxDataLoLane3

0x33358 - PMA receive low data isolation register

source

pub fn pma_iso_rx_data_hi_lane3(&self) -> &PmaIsoRxDataHiLane3

0x3335c - PMA receive high data isolation register

Trait Implementations§

source§

impl Debug for TypecPhy

source§

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

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

impl Deref for TypecPhy

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for TypecPhy

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.