Struct 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).