#[repr(transparent)]pub struct OpampCtr(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl OpampCtr
impl OpampCtr
Sourcepub const fn mode(&self) -> bool
pub const fn mode(&self) -> bool
Performance and power mode. Raw bit values: false (0) = HighPerformance; true (1) = LowPower
Sourcepub const fn set_mode(&mut self, val: bool)
pub const fn set_mode(&mut self, val: bool)
Performance and power mode. Raw bit values: false (0) = HighPerformance; true (1) = LowPower
Sourcepub const fn set_biasc(&mut self, val: Biasc)
pub const fn set_biasc(&mut self, val: Biasc)
Bias current trim relative to the default current.
Sourcepub const fn intref(&self) -> Intref
pub const fn intref(&self) -> Intref
Input rail-to-rail voltage selection. Encoding 3 is not allowed.
Sourcepub const fn set_intref(&mut self, val: Intref)
pub const fn set_intref(&mut self, val: Intref)
Input rail-to-rail voltage selection. Encoding 3 is not allowed.
Sourcepub const fn set_trigmd(&mut self, val: bool)
pub const fn set_trigmd(&mut self, val: bool)
Enables trigger mode.
Sourcepub const fn inpsel(&self) -> bool
pub const fn inpsel(&self) -> bool
Positive input selection, 0 for INP0 and 1 for INP1. Select the initial connection before enabling trigger mode; not writable in trigger mode. INP1 is connected when both PGAIN is 0 and INPSEL is 1. 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 selection, 0 for INP0 and 1 for INP1. Select the initial connection before enabling trigger mode; not writable in trigger mode. INP1 is connected when both PGAIN is 0 and INPSEL is 1. 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
Read-only positive input connection status, 0 for INP0 and 1 for INP1. 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)
Read-only positive input connection status, 0 for INP0 and 1 for INP1. Raw bit values: false (0) = Inp0: Positive input 0 (INP0).; true (1) = Inp1: Positive input 1 (INP1).
Sourcepub const fn pref(&self) -> Pref
pub const fn pref(&self) -> Pref
Positive reference input selection. See chip-specific routing for each instance.
Sourcepub const fn set_pref(&mut self, val: Pref)
pub const fn set_pref(&mut self, val: Pref)
Positive reference input selection. See chip-specific routing for each instance.
Sourcepub const fn adcsw1(&self) -> bool
pub const fn adcsw1(&self) -> bool
Connects the negative gain resistor ladder voltage to the ADC/CMP measurement channel.
Sourcepub const fn set_adcsw1(&mut self, val: bool)
pub const fn set_adcsw1(&mut self, val: bool)
Connects the negative gain resistor ladder voltage to the ADC/CMP measurement channel.
Sourcepub const fn adcsw2(&self) -> bool
pub const fn adcsw2(&self) -> bool
Connects the positive gain resistor ladder reference voltage to the ADC measurement channel.
Sourcepub const fn set_adcsw2(&mut self, val: bool)
pub const fn set_adcsw2(&mut self, val: bool)
Connects the positive gain resistor ladder reference voltage to the ADC measurement channel.
Sourcepub const fn set_outsw(&mut self, val: bool)
pub const fn set_outsw(&mut self, val: bool)
Connects OPAMP output to the negative gain resistor ladder.
Sourcepub const fn pgain(&self) -> Pgain
pub const fn pgain(&self) -> Pgain
Positive PGA resistor ratio Pgain. Not writable in trigger mode.