Struct rp_pac::vreg_and_chip_reset::regs::Vreg
source · #[repr(transparent)]pub struct Vreg(pub u32);
Expand description
Voltage regulator control and status
Tuple Fields§
§0: u32
Implementations§
source§impl Vreg
impl Vreg
sourcepub const fn hiz(&self) -> bool
pub const fn hiz(&self) -> bool
high impedance mode select 0=not in high impedance mode, 1=in high impedance mode
sourcepub fn set_hiz(&mut self, val: bool)
pub fn set_hiz(&mut self, val: bool)
high impedance mode select 0=not in high impedance mode, 1=in high impedance mode
sourcepub const fn vsel(&self) -> u8
pub const fn vsel(&self) -> u8
output voltage select 0000 to 0101 - 0.80V 0110 - 0.85V 0111 - 0.90V 1000 - 0.95V 1001 - 1.00V 1010 - 1.05V 1011 - 1.10V (default) 1100 - 1.15V 1101 - 1.20V 1110 - 1.25V 1111 - 1.30V
Trait Implementations§
impl Copy for Vreg
impl Eq for Vreg
impl StructuralPartialEq for Vreg
Auto Trait Implementations§
impl Freeze for Vreg
impl RefUnwindSafe for Vreg
impl Send for Vreg
impl Sync for Vreg
impl Unpin for Vreg
impl UnwindSafe for Vreg
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
)