Trait stm32g0xx_hal::analog::comparator::WindowComparatorExt [−][src]
Required methods
fn window_comparator<I: PositiveInput<UC>, L: NegativeInput<LC>, U: NegativeInput<UC>>(
self,
input: I,
lower_threshold: L,
upper_threshold: U,
config: Config,
clocks: &Clocks
) -> WindowComparator<UC, LC, Disabled>
[src]
self,
input: I,
lower_threshold: L,
upper_threshold: U,
config: Config,
clocks: &Clocks
) -> WindowComparator<UC, LC, Disabled>
Uses two comparators to implement a window comparator
See Figure 69 in RM0444 Rev 5. Ignores and overrides the output_xor
setting in config
.
Implementors
impl WindowComparatorExt<COMP1, COMP2> for (COMP1, COMP2)
[src]
fn window_comparator<I: PositiveInput<COMP1>, L: NegativeInput<COMP2>, U: NegativeInput<COMP1>>(
self,
input: I,
lower_threshold: L,
upper_threshold: U,
config: Config,
clocks: &Clocks
) -> WindowComparator<COMP1, COMP2, Disabled>
[src]
self,
input: I,
lower_threshold: L,
upper_threshold: U,
config: Config,
clocks: &Clocks
) -> WindowComparator<COMP1, COMP2, Disabled>
impl WindowComparatorExt<COMP2, COMP1> for (COMP2, COMP1)
[src]
fn window_comparator<I: PositiveInput<COMP2>, L: NegativeInput<COMP1>, U: NegativeInput<COMP2>>(
self,
input: I,
lower_threshold: L,
upper_threshold: U,
config: Config,
clocks: &Clocks
) -> WindowComparator<COMP2, COMP1, Disabled>
[src]
self,
input: I,
lower_threshold: L,
upper_threshold: U,
config: Config,
clocks: &Clocks
) -> WindowComparator<COMP2, COMP1, Disabled>