Struct rk3399_pac::TypecPd0
source · pub struct TypecPd0 { /* private fields */ }
Expand description
Type-C Power Delivery (TYPEC_PD) 0 Registers
Implementations§
source§impl TypecPd0
impl TypecPd0
sourcepub const PTR: *const RegisterBlock = {0xff7a0000 as *const typec_pd::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff7a0000 as *const typec_pd::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn product_id(&self) -> &ProductId
pub fn product_id(&self) -> &ProductId
0x04 - Product ID Register
sourcepub fn usbtypec_rev(&self) -> &UsbtypecRev
pub fn usbtypec_rev(&self) -> &UsbtypecRev
0x0c - USB Type-C Revision Register
sourcepub fn usbpd_rev_ver(&self) -> &UsbpdRevVer
pub fn usbpd_rev_ver(&self) -> &UsbpdRevVer
0x10 - USB PD Version Register
sourcepub fn pd_interface_rev(&self) -> &PdInterfaceRev
pub fn pd_interface_rev(&self) -> &PdInterfaceRev
0x14 - PD Interface Block Version Register
sourcepub fn alert_mask(&self) -> &AlertMask
pub fn alert_mask(&self) -> &AlertMask
0x24 - ALERT Status Mask Register
sourcepub fn power_status_mask(&self) -> &PowerStatusMask
pub fn power_status_mask(&self) -> &PowerStatusMask
0x28 - Power Status Mask Register
sourcepub fn fault_status_mask(&self) -> &FaultStatusMask
pub fn fault_status_mask(&self) -> &FaultStatusMask
0x2c - FAULT Status Mask Register
sourcepub fn config_standard_output(&self) -> &ConfigStandardOutput
pub fn config_standard_output(&self) -> &ConfigStandardOutput
0x34 - Configure Standard Output Register
sourcepub fn tcpc_control(&self) -> &TcpcControl
pub fn tcpc_control(&self) -> &TcpcControl
0x38 - TCPC Control Register
sourcepub fn role_control(&self) -> &RoleControl
pub fn role_control(&self) -> &RoleControl
0x3c - Role Control Register
sourcepub fn fault_control(&self) -> &FaultControl
pub fn fault_control(&self) -> &FaultControl
0x40 - Fault Control Register
sourcepub fn power_control(&self) -> &PowerControl
pub fn power_control(&self) -> &PowerControl
0x44 - Power Control Register
sourcepub fn power_status(&self) -> &PowerStatus
pub fn power_status(&self) -> &PowerStatus
0x4c - Power Status Register
sourcepub fn fault_status(&self) -> &FaultStatus
pub fn fault_status(&self) -> &FaultStatus
0x50 - Fault Status Register
sourcepub fn device_capabilities_1(&self) -> &DeviceCapabilities1
pub fn device_capabilities_1(&self) -> &DeviceCapabilities1
0x60 - Device Capabilities Register 1
sourcepub fn device_capabilities_2(&self) -> &DeviceCapabilities2
pub fn device_capabilities_2(&self) -> &DeviceCapabilities2
0x64 - Device Capabilities Register 2
sourcepub fn standard_input_capabilities(&self) -> &StandardInputCapabilities
pub fn standard_input_capabilities(&self) -> &StandardInputCapabilities
0x68 - Standard Input Capabilities Register
sourcepub fn standard_output_capabilities(&self) -> &StandardOutputCapabilities
pub fn standard_output_capabilities(&self) -> &StandardOutputCapabilities
0x6c - Standard Output Capabilities Register
sourcepub fn message_header_info(&self) -> &MessageHeaderInfo
pub fn message_header_info(&self) -> &MessageHeaderInfo
0x7c - Message Header Information Register
sourcepub fn receive_detect(&self) -> &ReceiveDetect
pub fn receive_detect(&self) -> &ReceiveDetect
0x80 - Receive Detect Register
sourcepub fn receive_byte_count(&self) -> &ReceiveByteCount
pub fn receive_byte_count(&self) -> &ReceiveByteCount
0x84 - Receive Detect Register
sourcepub fn rx_buf_frame_type(&self) -> &RxBufFrameType
pub fn rx_buf_frame_type(&self) -> &RxBufFrameType
0x88 - RX Buffer Frame Type Register
sourcepub fn rx_buf_header_byte_10(&self) -> &RxBufHeaderByte10
pub fn rx_buf_header_byte_10(&self) -> &RxBufHeaderByte10
0x8c - RX Buffer Message Header Byte Register
sourcepub fn rx_buf_obj_byte_3210(&self, n: usize) -> &RxBufObjByte3210
pub fn rx_buf_obj_byte_3210(&self, n: usize) -> &RxBufObjByte3210
0x90..0xac - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj_byte_3210_iter(
&self
) -> impl Iterator<Item = &RxBufObjByte3210>
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
sourcepub fn rx_buf_obj1_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj1_byte_3210(&self) -> &RxBufObjByte3210
0x90 - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj2_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj2_byte_3210(&self) -> &RxBufObjByte3210
0x94 - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj3_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj3_byte_3210(&self) -> &RxBufObjByte3210
0x98 - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj4_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj4_byte_3210(&self) -> &RxBufObjByte3210
0x9c - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj5_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj5_byte_3210(&self) -> &RxBufObjByte3210
0xa0 - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj6_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj6_byte_3210(&self) -> &RxBufObjByte3210
0xa4 - RX Buffer OBJX Byte3~0 Register
sourcepub fn rx_buf_obj7_byte_3210(&self) -> &RxBufObjByte3210
pub fn rx_buf_obj7_byte_3210(&self) -> &RxBufObjByte3210
0xa8 - RX Buffer OBJX Byte3~0 Register
sourcepub fn transmit_byte_count(&self) -> &TransmitByteCount
pub fn transmit_byte_count(&self) -> &TransmitByteCount
0xb0 - Transmit Byte Count Register
sourcepub fn tx_buf_header_byte_10(&self) -> &TxBufHeaderByte10
pub fn tx_buf_header_byte_10(&self) -> &TxBufHeaderByte10
0xb4 - Transmit Byte Count Register
sourcepub fn tx_buf_obj_byte_3210(&self, n: usize) -> &TxBufObjByte3210
pub fn tx_buf_obj_byte_3210(&self, n: usize) -> &TxBufObjByte3210
0xb8..0xd4 - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj_byte_3210_iter(
&self
) -> impl Iterator<Item = &TxBufObjByte3210>
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
sourcepub fn tx_buf_obj1_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj1_byte_3210(&self) -> &TxBufObjByte3210
0xb8 - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj2_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj2_byte_3210(&self) -> &TxBufObjByte3210
0xbc - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj3_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj3_byte_3210(&self) -> &TxBufObjByte3210
0xc0 - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj4_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj4_byte_3210(&self) -> &TxBufObjByte3210
0xc4 - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj5_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj5_byte_3210(&self) -> &TxBufObjByte3210
0xc8 - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj6_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj6_byte_3210(&self) -> &TxBufObjByte3210
0xcc - TX Buffer OBJX Byte3~0 Register
sourcepub fn tx_buf_obj7_byte_3210(&self) -> &TxBufObjByte3210
pub fn tx_buf_obj7_byte_3210(&self) -> &TxBufObjByte3210
0xd0 - TX Buffer OBJX Byte3~0 Register
sourcepub fn vbus_voltage(&self) -> &VbusVoltage
pub fn vbus_voltage(&self) -> &VbusVoltage
0xd4 - Vbus Voltage Register
sourcepub fn vbus_sink_disconnect_threshold(&self) -> &VbusSinkDisconnectThreshold
pub fn vbus_sink_disconnect_threshold(&self) -> &VbusSinkDisconnectThreshold
0xd8 - Vbus Sink Disconnect Threshold Register
sourcepub fn vbus_stop_discharge_threshold(&self) -> &VbusStopDischargeThreshold
pub fn vbus_stop_discharge_threshold(&self) -> &VbusStopDischargeThreshold
0xdc - Vbus Stop Discharge Threshold Register
sourcepub fn vbus_voltage_alarm_hi_cfg(&self) -> &VbusVoltageAlarmHiCfg
pub fn vbus_voltage_alarm_hi_cfg(&self) -> &VbusVoltageAlarmHiCfg
0xe0 - Vbus Voltage Alarm High Cfg Register
sourcepub fn vbus_voltage_alarm_lo_cfg(&self) -> &VbusVoltageAlarmLoCfg
pub fn vbus_voltage_alarm_lo_cfg(&self) -> &VbusVoltageAlarmLoCfg
0xe4 - Vbus Voltage Alarm Low Cfg Register
sourcepub fn rx_err_cnt(&self) -> &RxErrCnt
pub fn rx_err_cnt(&self) -> &RxErrCnt
0xf4 - RX Error Counter Register
sourcepub fn phy_mux_ctrl(&self) -> &PhyMuxCtrl
pub fn phy_mux_ctrl(&self) -> &PhyMuxCtrl
0xf8 - PHY MUX Ctrl Register
sourcepub fn cc_pd_test_dbg(&self) -> &CcPdTestDbg
pub fn cc_pd_test_dbg(&self) -> &CcPdTestDbg
0xfc - CC PD Test Debug Register