Struct rp2040_pac2::vreg_and_chip_reset::regs::Vreg [−][src]
Voltage regulator control and status
Implementations
impl Vreg
[src]
pub const fn rok(&self) -> bool
[src]
regulation status 0=not in regulation, 1=in regulation
pub fn set_rok(&mut self, val: bool)
[src]
regulation status 0=not in regulation, 1=in regulation
pub const fn vsel(&self) -> u8
[src]
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
pub fn set_vsel(&mut self, val: u8)
[src]
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
pub const fn hiz(&self) -> bool
[src]
high impedance mode select 0=not in high impedance mode, 1=in high impedance mode
pub fn set_hiz(&mut self, val: bool)
[src]
high impedance mode select 0=not in high impedance mode, 1=in high impedance mode
pub const fn en(&self) -> bool
[src]
enable 0=not enabled, 1=enabled
pub fn set_en(&mut self, val: bool)
[src]
enable 0=not enabled, 1=enabled
Trait Implementations
impl Clone for Vreg
[src]
fn clone(&self) -> Vreg
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Vreg
[src]
impl Default for Vreg
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,