pub struct IdlePdPhy<'d, T: Instance> { /* private fields */ }Expand description
Power Delivery (PD) PHY with PD communication disabled, created by
Ucpd::split_idle_pd_phy.
Implementations§
Source§impl<'d, T: Instance> IdlePdPhy<'d, T>
impl<'d, T: Instance> IdlePdPhy<'d, T>
Sourcepub fn activate<'a>(
&'a mut self,
cc_sel: CcSel,
rx_buffers: &'a mut RxBuffers,
) -> ActivePdPhy<'a, 'd, T>
pub fn activate<'a>( &'a mut self, cc_sel: CcSel, rx_buffers: &'a mut RxBuffers, ) -> ActivePdPhy<'a, 'd, T>
Enables PD communication on the given CC line.
PD messages are received into rx_buffers in the background, so that messages arriving
between two calls of PdPhy::receive are not lost. PD reception is disabled again when
the returned ActivePdPhy is dropped.
Auto Trait Implementations§
impl<'d, T> !UnwindSafe for IdlePdPhy<'d, T>
impl<'d, T> Forget for IdlePdPhy<'d, T>
impl<'d, T> Freeze for IdlePdPhy<'d, T>
impl<'d, T> Move for IdlePdPhy<'d, T>
impl<'d, T> RefUnwindSafe for IdlePdPhy<'d, T>where
PdPhy<'d, T>: RefUnwindSafe,
impl<'d, T> Send for IdlePdPhy<'d, T>
impl<'d, T> Sync for IdlePdPhy<'d, T>
impl<'d, T> Unpin for IdlePdPhy<'d, T>
impl<'d, T> UnsafeUnpin for IdlePdPhy<'d, T>where
PdPhy<'d, T>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more