#[repr(transparent)]pub struct OpampCtr(pub u32);Expand description
OPAMP Control.
Tuple Fields§
§0: u32Implementations§
Source§impl OpampCtr
impl OpampCtr
Sourcepub const fn mode(&self) -> bool
pub const fn mode(&self) -> bool
Mode Selection. Raw bit values: false (0) = Low: High performance mode.; true (1) = High: Low power mode.
Sourcepub const fn set_mode(&mut self, val: bool)
pub const fn set_mode(&mut self, val: bool)
Mode Selection. Raw bit values: false (0) = Low: High performance mode.; true (1) = High: Low power mode.
Sourcepub const fn set_intref(&mut self, val: Intref)
pub const fn set_intref(&mut self, val: Intref)
Provide OPAMP rail to rail voltage selection.
Sourcepub const fn set_trigmd(&mut self, val: bool)
pub const fn set_trigmd(&mut self, val: bool)
Trigger Mode.
Sourcepub const fn inpsel(&self) -> bool
pub const fn inpsel(&self) -> bool
Positive Input Channel Selection. Raw bit values: false (0) = Inp0: When OPAMP is not in trigger mode, select positive input 0 (INP0).; true (1) = Inp1: When OPAMP is not in trigger mode, select positive input 1 (INP1).
Sourcepub const fn set_inpsel(&mut self, val: bool)
pub const fn set_inpsel(&mut self, val: bool)
Positive Input Channel Selection. Raw bit values: false (0) = Inp0: When OPAMP is not in trigger mode, select positive input 0 (INP0).; true (1) = Inp1: When OPAMP is not in trigger mode, select positive input 1 (INP1).
Sourcepub const fn inpf(&self) -> bool
pub const fn inpf(&self) -> bool
Positive Input Connection Status. Raw bit values: false (0) = Inp0: Positive input 0 (INP0).; true (1) = Inp1: Positive input 1 (INP1).
Sourcepub const fn set_inpf(&mut self, val: bool)
pub const fn set_inpf(&mut self, val: bool)
Positive Input Connection Status. Raw bit values: false (0) = Inp0: Positive input 0 (INP0).; true (1) = Inp1: Positive input 1 (INP1).
Sourcepub const fn set_adcsw1(&mut self, val: bool)
pub const fn set_adcsw1(&mut self, val: bool)
Measure Switch 1.
Sourcepub const fn set_adcsw2(&mut self, val: bool)
pub const fn set_adcsw2(&mut self, val: bool)
Measure Switch 2.