Struct stm32_hal2::pac::opamp::opamp2_csr::W
source · pub struct W(/* private fields */);
Expand description
Register OPAMP2_CSR
writer
Implementations§
source§impl W
impl W
sourcepub fn opaen(&mut self) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 0>
pub fn opaen(&mut self) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 0>
Bit 0 - Operational amplifier Enable
sourcepub fn force_vp(
&mut self
) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 1>
pub fn force_vp( &mut self ) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 1>
Bit 1 - Force internal reference on VP (reserved for test)
sourcepub fn vm_sel(
&mut self
) -> FieldWriterRaw<'_, u32, OPAMP2_CSR_SPEC, u8, u8, Unsafe, 2, 5>
pub fn vm_sel( &mut self ) -> FieldWriterRaw<'_, u32, OPAMP2_CSR_SPEC, u8, u8, Unsafe, 2, 5>
Bits 5:6 - Inverting input selection
sourcepub fn opahsm(
&mut self
) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 8>
pub fn opahsm( &mut self ) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 8>
Bit 8 - Operational amplifier high-speed mode
sourcepub fn calon(
&mut self
) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 11>
pub fn calon( &mut self ) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 11>
Bit 11 - Calibration mode enabled
sourcepub fn calsel(
&mut self
) -> FieldWriterRaw<'_, u32, OPAMP2_CSR_SPEC, u8, u8, Unsafe, 2, 12>
pub fn calsel( &mut self ) -> FieldWriterRaw<'_, u32, OPAMP2_CSR_SPEC, u8, u8, Unsafe, 2, 12>
Bits 12:13 - Calibration selection
sourcepub fn pga_gain(
&mut self
) -> FieldWriterRaw<'_, u32, OPAMP2_CSR_SPEC, u8, u8, Unsafe, 4, 14>
pub fn pga_gain( &mut self ) -> FieldWriterRaw<'_, u32, OPAMP2_CSR_SPEC, u8, u8, Unsafe, 4, 14>
Bits 14:17 - Operational amplifier Programmable amplifier gain value
sourcepub fn usertrim(
&mut self
) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 18>
pub fn usertrim( &mut self ) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 18>
Bit 18 - User trimming enable
sourcepub fn tstref(
&mut self
) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 29>
pub fn tstref( &mut self ) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 29>
Bit 29 - OPAMP calibration reference voltage output control (reserved for test)
sourcepub fn calout(
&mut self
) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 30>
pub fn calout( &mut self ) -> BitWriterRaw<'_, u32, OPAMP2_CSR_SPEC, bool, BitM, 30>
Bit 30 - Operational amplifier calibration output
Methods from Deref<Target = W<OPAMP2_CSR_SPEC>>§
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
Auto Trait Implementations§
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