pub struct Config {
pub power_mode: PowerMode,
pub hysteresis: Hysteresis,
pub output_polarity: OutputPolarity,
pub inverting_input: InvertingInput,
pub blanking_source: BlankingSource,
pub window_mode: WindowMode,
pub window_output: WindowOutput,
}Expand description
Configuration for the comparator.
Fields§
§power_mode: PowerModePower mode.
hysteresis: HysteresisHysteresis level.
output_polarity: OutputPolarityOutput polarity.
inverting_input: InvertingInputInverting input selection.
blanking_source: BlankingSourceBlanking source selection.
window_mode: WindowModeWindow mode configuration.
window_output: WindowOutputWindow output mode.
Trait Implementations§
Source§impl Format for Configwhere
PowerMode: Format,
Hysteresis: Format,
OutputPolarity: Format,
InvertingInput: Format,
BlankingSource: Format,
WindowMode: Format,
WindowOutput: Format,
impl Format for Configwhere
PowerMode: Format,
Hysteresis: Format,
OutputPolarity: Format,
InvertingInput: Format,
BlankingSource: Format,
WindowMode: Format,
WindowOutput: Format,
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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