pub struct HardwareVbusDetect { /* private fields */ }Expand description
VbusDetect implementation using the native hardware POWER peripheral.
Unsuitable for usage with the nRF softdevice, since it reserves exclusive acces to POWER. In that case, use SoftwareVbusDetect.
Implementations§
Source§impl HardwareVbusDetect
impl HardwareVbusDetect
Sourcepub fn new(_irq: impl Binding<CLOCK_POWER, InterruptHandler> + 'static) -> Self
pub fn new(_irq: impl Binding<CLOCK_POWER, InterruptHandler> + 'static) -> Self
Create a new VbusDetectNative.
Trait Implementations§
Source§impl VbusDetect for HardwareVbusDetect
impl VbusDetect for HardwareVbusDetect
Auto Trait Implementations§
impl Freeze for HardwareVbusDetect
impl RefUnwindSafe for HardwareVbusDetect
impl Send for HardwareVbusDetect
impl Sync for HardwareVbusDetect
impl Unpin for HardwareVbusDetect
impl UnsafeUnpin for HardwareVbusDetect
impl UnwindSafe for HardwareVbusDetect
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