Struct Csr
#[repr(transparent)]pub struct Csr(pub u32);Expand description
Control/status register
Tuple Fields§
§0: u32Implementations§
§impl Csr
impl Csr
pub const fn set_opampen(&mut self, val: bool)
pub const fn set_opampen(&mut self, val: bool)
Enable
pub const fn set_force_vp(&mut self, val: bool)
pub const fn set_force_vp(&mut self, val: bool)
Force internal reference on VP (reserved for test)
pub const fn set_vp_sel(&mut self, val: VpSel)
pub const fn set_vp_sel(&mut self, val: VpSel)
Non-inverting input selection
pub const fn set_vm_sel(&mut self, val: VmSel)
pub const fn set_vm_sel(&mut self, val: VmSel)
Inverting input selection
pub const fn set_opahsm(&mut self, val: bool)
pub const fn set_opahsm(&mut self, val: bool)
High-speed mode enable
pub const fn set_calsel(&mut self, val: Calsel)
pub const fn set_calsel(&mut self, val: Calsel)
Calibration selection
pub const fn set_pga_gain(&mut self, val: PgaGain)
pub const fn set_pga_gain(&mut self, val: PgaGain)
Gain in PGA mode
pub const fn set_usertrim(&mut self, val: bool)
pub const fn set_usertrim(&mut self, val: bool)
User trimming enable
pub const fn set_tstref(&mut self, val: bool)
pub const fn set_tstref(&mut self, val: bool)
Output the internal reference voltage
pub const fn set_calout(&mut self, val: bool)
pub const fn set_calout(&mut self, val: bool)
Calibration output
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
Mutably borrows from an owned value. Read more