pub struct UCPD1 { /* private fields */ }
Expand description
USB Power Delivery interface
See peripheral structure
Implementations§
Source§impl UCPD1
impl UCPD1
Sourcepub const PTR: *const RegisterBlock = {0x4000a000 as *const stm32g081::ucpd1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4000a000 as *const stm32g081::ucpd1::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 tx_ordsetr(&self) -> &TX_ORDSETR
pub fn tx_ordsetr(&self) -> &TX_ORDSETR
0x1c - UCPD Tx Ordered Set Type Register
Sourcepub fn rx_ordsetr(&self) -> &RX_ORDSETR
pub fn rx_ordsetr(&self) -> &RX_ORDSETR
0x28 - UCPD Rx Ordered Set Register
Sourcepub fn rx_ordextr1(&self) -> &RX_ORDEXTR1
pub fn rx_ordextr1(&self) -> &RX_ORDEXTR1
0x34 - UCPD Rx Ordered Set Extension Register
Sourcepub fn rx_ordextr2(&self) -> &RX_ORDEXTR2
pub fn rx_ordextr2(&self) -> &RX_ORDEXTR2
0x38 - UCPD Rx Ordered Set Extension Register