Struct rk3399_pac::TypecPd0

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

Type-C Power Delivery (TYPEC_PD) 0 Registers

Implementations§

source§

impl TypecPd0

source

pub const PTR: *const RegisterBlock = {0xff7a0000 as *const typec_pd::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 vendor_id(&self) -> &VendorId

0x00 - Vendor ID Register

source

pub fn product_id(&self) -> &ProductId

0x04 - Product ID Register

source

pub fn device_id(&self) -> &DeviceId

0x08 - Device ID Register

source

pub fn usbtypec_rev(&self) -> &UsbtypecRev

0x0c - USB Type-C Revision Register

source

pub fn usbpd_rev_ver(&self) -> &UsbpdRevVer

0x10 - USB PD Version Register

source

pub fn pd_interface_rev(&self) -> &PdInterfaceRev

0x14 - PD Interface Block Version Register

source

pub fn alert(&self) -> &Alert

0x20 - ALERT Status Register

source

pub fn alert_mask(&self) -> &AlertMask

0x24 - ALERT Status Mask Register

source

pub fn power_status_mask(&self) -> &PowerStatusMask

0x28 - Power Status Mask Register

source

pub fn fault_status_mask(&self) -> &FaultStatusMask

0x2c - FAULT Status Mask Register

source

pub fn config_standard_output(&self) -> &ConfigStandardOutput

0x34 - Configure Standard Output Register

source

pub fn tcpc_control(&self) -> &TcpcControl

0x38 - TCPC Control Register

source

pub fn role_control(&self) -> &RoleControl

0x3c - Role Control Register

source

pub fn fault_control(&self) -> &FaultControl

0x40 - Fault Control Register

source

pub fn power_control(&self) -> &PowerControl

0x44 - Power Control Register

source

pub fn cc_status(&self) -> &CcStatus

0x48 - CC Status Register

source

pub fn power_status(&self) -> &PowerStatus

0x4c - Power Status Register

source

pub fn fault_status(&self) -> &FaultStatus

0x50 - Fault Status Register

source

pub fn command(&self) -> &Command

0x5c - Command Register

source

pub fn device_capabilities_1(&self) -> &DeviceCapabilities1

0x60 - Device Capabilities Register 1

source

pub fn device_capabilities_2(&self) -> &DeviceCapabilities2

0x64 - Device Capabilities Register 2

source

pub fn standard_input_capabilities(&self) -> &StandardInputCapabilities

0x68 - Standard Input Capabilities Register

source

pub fn standard_output_capabilities(&self) -> &StandardOutputCapabilities

0x6c - Standard Output Capabilities Register

source

pub fn message_header_info(&self) -> &MessageHeaderInfo

0x7c - Message Header Information Register

source

pub fn receive_detect(&self) -> &ReceiveDetect

0x80 - Receive Detect Register

source

pub fn receive_byte_count(&self) -> &ReceiveByteCount

0x84 - Receive Detect Register

source

pub fn rx_buf_frame_type(&self) -> &RxBufFrameType

0x88 - RX Buffer Frame Type Register

source

pub fn rx_buf_header_byte_10(&self) -> &RxBufHeaderByte10

0x8c - RX Buffer Message Header Byte Register

source

pub fn rx_buf_obj_byte_3210(&self, n: usize) -> &RxBufObjByte3210

0x90..0xac - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj_byte_3210_iter( &self ) -> impl Iterator<Item = &RxBufObjByte3210>

Iterator for array of: 0x90..0xac - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj1_byte_3210(&self) -> &RxBufObjByte3210

0x90 - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj2_byte_3210(&self) -> &RxBufObjByte3210

0x94 - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj3_byte_3210(&self) -> &RxBufObjByte3210

0x98 - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj4_byte_3210(&self) -> &RxBufObjByte3210

0x9c - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj5_byte_3210(&self) -> &RxBufObjByte3210

0xa0 - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj6_byte_3210(&self) -> &RxBufObjByte3210

0xa4 - RX Buffer OBJX Byte3~0 Register

source

pub fn rx_buf_obj7_byte_3210(&self) -> &RxBufObjByte3210

0xa8 - RX Buffer OBJX Byte3~0 Register

source

pub fn transmit(&self) -> &Transmit

0xac - Transmit Register

source

pub fn transmit_byte_count(&self) -> &TransmitByteCount

0xb0 - Transmit Byte Count Register

source

pub fn tx_buf_header_byte_10(&self) -> &TxBufHeaderByte10

0xb4 - Transmit Byte Count Register

source

pub fn tx_buf_obj_byte_3210(&self, n: usize) -> &TxBufObjByte3210

0xb8..0xd4 - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj_byte_3210_iter( &self ) -> impl Iterator<Item = &TxBufObjByte3210>

Iterator for array of: 0xb8..0xd4 - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj1_byte_3210(&self) -> &TxBufObjByte3210

0xb8 - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj2_byte_3210(&self) -> &TxBufObjByte3210

0xbc - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj3_byte_3210(&self) -> &TxBufObjByte3210

0xc0 - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj4_byte_3210(&self) -> &TxBufObjByte3210

0xc4 - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj5_byte_3210(&self) -> &TxBufObjByte3210

0xc8 - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj6_byte_3210(&self) -> &TxBufObjByte3210

0xcc - TX Buffer OBJX Byte3~0 Register

source

pub fn tx_buf_obj7_byte_3210(&self) -> &TxBufObjByte3210

0xd0 - TX Buffer OBJX Byte3~0 Register

source

pub fn vbus_voltage(&self) -> &VbusVoltage

0xd4 - Vbus Voltage Register

source

pub fn vbus_sink_disconnect_threshold(&self) -> &VbusSinkDisconnectThreshold

0xd8 - Vbus Sink Disconnect Threshold Register

source

pub fn vbus_stop_discharge_threshold(&self) -> &VbusStopDischargeThreshold

0xdc - Vbus Stop Discharge Threshold Register

source

pub fn vbus_voltage_alarm_hi_cfg(&self) -> &VbusVoltageAlarmHiCfg

0xe0 - Vbus Voltage Alarm High Cfg Register

source

pub fn vbus_voltage_alarm_lo_cfg(&self) -> &VbusVoltageAlarmLoCfg

0xe4 - Vbus Voltage Alarm Low Cfg Register

source

pub fn rx_err_cnt(&self) -> &RxErrCnt

0xf4 - RX Error Counter Register

source

pub fn phy_mux_ctrl(&self) -> &PhyMuxCtrl

0xf8 - PHY MUX Ctrl Register

source

pub fn cc_pd_test_dbg(&self) -> &CcPdTestDbg

0xfc - CC PD Test Debug Register

source

pub fn sfc_reg_0(&self) -> &SfcReg0

0x100 - SFC Reg0 Register

source

pub fn sfc_reg_1(&self) -> &SfcReg1

0x104 - SFC Reg1 Register

source

pub fn sfc_reg_2(&self) -> &SfcReg2

0x108 - SFC Reg2 Register

Trait Implementations§

source§

impl Debug for TypecPd0

source§

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

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

impl Deref for TypecPd0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for TypecPd0

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.