Struct rp2040_pac2::vreg_and_chip_reset::regs::Vreg[][src]

#[repr(transparent)]pub struct Vreg(pub u32);

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]

impl Copy for Vreg[src]

impl Default for Vreg[src]

Auto Trait Implementations

impl Send for Vreg

impl Sync for Vreg

impl Unpin for Vreg

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.