Struct stm32_metapac::vrefbuf::regs::Csr
#[repr(transparent)]pub struct Csr(pub u32);
Expand description
VREFBUF control and status register.
Tuple Fields§
§0: u32
Implementations§
§impl Csr
impl Csr
pub const fn envr(&self) -> bool
pub const fn envr(&self) -> bool
Voltage reference buffer mode enable This bit is used to enable the voltage reference buffer mode.
pub fn set_envr(&mut self, val: bool)
pub fn set_envr(&mut self, val: bool)
Voltage reference buffer mode enable This bit is used to enable the voltage reference buffer mode.
pub const fn hiz(&self) -> Hiz
pub const fn hiz(&self) -> Hiz
High impedance mode This bit controls the analog switch to connect or not the VREF+ pin. Refer to for the mode descriptions depending on ENVR bit configuration.
pub fn set_hiz(&mut self, val: Hiz)
pub fn set_hiz(&mut self, val: Hiz)
High impedance mode This bit controls the analog switch to connect or not the VREF+ pin. Refer to for the mode descriptions depending on ENVR bit configuration.
pub const fn vrs(&self) -> Vrs
pub const fn vrs(&self) -> Vrs
Voltage reference scale These bits select the value generated by the voltage reference buffer. VRS = 000: VREFBUF0 voltage selected. VRS = 001: VREFBUF1 voltage selected. VRS = 010: VREFBUF2 voltage selected. VRS = 011: VREFBUF3 voltage selected. Others: Reserved Note: Refer to the product datasheet for each VREFBUFx voltage setting value. The software can program this bitfield only when the VREFBUF is disabled (ENVR=0).
pub fn set_vrs(&mut self, val: Vrs)
pub fn set_vrs(&mut self, val: Vrs)
Voltage reference scale These bits select the value generated by the voltage reference buffer. VRS = 000: VREFBUF0 voltage selected. VRS = 001: VREFBUF1 voltage selected. VRS = 010: VREFBUF2 voltage selected. VRS = 011: VREFBUF3 voltage selected. Others: Reserved Note: Refer to the product datasheet for each VREFBUFx voltage setting value. The software can program this bitfield only when the VREFBUF is disabled (ENVR=0).
Trait Implementations§
impl Copy for Csr
impl Eq for Csr
impl StructuralPartialEq for Csr
Auto Trait Implementations§
impl Freeze for Csr
impl RefUnwindSafe for Csr
impl Send for Csr
impl Sync for Csr
impl Unpin for Csr
impl UnwindSafe for Csr
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
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)
clone_to_uninit
)