#[repr(transparent)]pub struct UsbPwr(pub u32);
Expand description
Overrides for the power signals in the event that the VBUS signals are not hooked up to GPIO. Set the value of the override and then the override enable so switch over to the override value.
Tuple Fields§
§0: u32
Implementations§
source§impl UsbPwr
impl UsbPwr
pub const fn vbus_en(&self) -> bool
pub fn set_vbus_en(&mut self, val: bool)
pub const fn vbus_en_override_en(&self) -> bool
pub fn set_vbus_en_override_en(&mut self, val: bool)
pub const fn vbus_detect(&self) -> bool
pub fn set_vbus_detect(&mut self, val: bool)
pub const fn vbus_detect_override_en(&self) -> bool
pub fn set_vbus_detect_override_en(&mut self, val: bool)
pub const fn overcurr_detect(&self) -> bool
pub fn set_overcurr_detect(&mut self, val: bool)
pub const fn overcurr_detect_en(&self) -> bool
pub fn set_overcurr_detect_en(&mut self, val: bool)
Trait Implementations§
impl Copy for UsbPwr
impl Eq for UsbPwr
impl StructuralPartialEq for UsbPwr
Auto Trait Implementations§
impl Freeze for UsbPwr
impl RefUnwindSafe for UsbPwr
impl Send for UsbPwr
impl Sync for UsbPwr
impl Unpin for UsbPwr
impl UnwindSafe for UsbPwr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)