Struct stm32_metapac::opamp::regs::Csr
#[repr(transparent)]pub struct Csr(pub u32);
Expand description
OPAMP control/status register.
Tuple Fields§
§0: u32
Implementations§
§impl Csr
impl Csr
pub fn set_opampen(&mut self, val: bool)
pub fn set_opampen(&mut self, val: bool)
Operational amplifier Enable.
pub const fn opalpm(&self) -> Opalpm
pub const fn opalpm(&self) -> Opalpm
Operational amplifier Low Power Mode. The operational amplifier must be disable to change this configuration.
pub fn set_opalpm(&mut self, val: Opalpm)
pub fn set_opalpm(&mut self, val: Opalpm)
Operational amplifier Low Power Mode. The operational amplifier must be disable to change this configuration.
pub fn set_opamode(&mut self, val: Opamode)
pub fn set_opamode(&mut self, val: Opamode)
Operational amplifier PGA mode.
pub fn set_pga_gain(&mut self, val: PgaGain)
pub fn set_pga_gain(&mut self, val: PgaGain)
Operational amplifier Programmable amplifier gain value.
pub const fn vm_sel(&self) -> VmSel
pub const fn vm_sel(&self) -> VmSel
Inverting input selection. These bits are used only when OPAMODE = 00, 01 or 10. 1x: Inverting input not externally connected. These configurations are valid only when OPAMODE = 10 (PGA mode).
pub fn set_vm_sel(&mut self, val: VmSel)
pub fn set_vm_sel(&mut self, val: VmSel)
Inverting input selection. These bits are used only when OPAMODE = 00, 01 or 10. 1x: Inverting input not externally connected. These configurations are valid only when OPAMODE = 10 (PGA mode).
pub fn set_vp_sel(&mut self, val: VpSel)
pub fn set_vp_sel(&mut self, val: VpSel)
Non inverted input selection.
pub fn set_calsel(&mut self, val: Calsel)
pub fn set_calsel(&mut self, val: Calsel)
Calibration selection.
pub const fn usertrim(&self) -> Usertrim
pub const fn usertrim(&self) -> Usertrim
allows to switch from factory AOP offset trimmed values to AOP offset user trimmed values This bit is active for both mode normal and low-power.
pub fn set_usertrim(&mut self, val: Usertrim)
pub fn set_usertrim(&mut self, val: Usertrim)
allows to switch from factory AOP offset trimmed values to AOP offset user trimmed values This bit is active for both mode normal and low-power.
pub const fn calout(&self) -> bool
pub const fn calout(&self) -> bool
Operational amplifier calibration output During calibration mode offset is trimmed when this signal toggle.
pub fn set_calout(&mut self, val: bool)
pub fn set_calout(&mut self, val: bool)
Operational amplifier calibration output During calibration mode offset is trimmed when this signal toggle.
pub const fn opa_range(&self) -> OpaRange
pub const fn opa_range(&self) -> OpaRange
Operational amplifier power supply range for stability All AOP must be in power down to allow AOP-RANGE bit write. It applies to all AOP embedded in the product.
pub fn set_opa_range(&mut self, val: OpaRange)
pub fn set_opa_range(&mut self, val: OpaRange)
Operational amplifier power supply range for stability All AOP must be in power down to allow AOP-RANGE bit write. It applies to all AOP embedded in the product.