pub struct Usbdcd { /* private fields */ }Expand description
USB charger detection. Reset in software before every START. Configure before START; later reconfiguration is undefined and BC12 must not change after starting. Software reset preserves configuration. Timeout does not stop detection.
Implementations§
Source§impl Usbdcd
impl Usbdcd
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
pub const fn control(self) -> Reg<Control, RW>
pub const fn clock(self) -> Reg<Clock, RW>
pub const fn status(self) -> Reg<Status, R>
pub const fn signal_override(self) -> Reg<SignalOverride, RW>
pub const fn timer0(self) -> Reg<Timer0, RW>
pub const fn timer1(self) -> Reg<Timer1, RW>
Sourcepub const fn timer2_bc11(self) -> Reg<Timer2Bc11, RW>
pub const fn timer2_bc11(self) -> Reg<Timer2Bc11, RW>
Mode-specific alias at offset0x18. Select the matching BC mode. The two view defaults are not simultaneous observations; changing BC12 is not documented to install the other default.
Sourcepub const fn timer2_bc12(self) -> Reg<Timer2Bc12, RW>
pub const fn timer2_bc12(self) -> Reg<Timer2Bc12, RW>
Mode-specific alias at offset0x18. Select the matching BC mode. The two view defaults are not simultaneous observations; changing BC12 is not documented to install the other default.
Trait Implementations§
impl Copy for Usbdcd
impl Eq for Usbdcd
impl Send for Usbdcd
impl StructuralPartialEq for Usbdcd
impl Sync for Usbdcd
Auto Trait Implementations§
impl Freeze for Usbdcd
impl RefUnwindSafe for Usbdcd
impl Unpin for Usbdcd
impl UnwindSafe for Usbdcd
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