Struct nrf52832_hal::comp::Comp [−][src]
pub struct Comp { /* fields omitted */ }
Expand description
A safe wrapper around the COMP
peripheral.
Implementations
Takes ownership of the COMP
peripheral, returning a safe wrapper.
Sets the speed and power mode of the comparator.
Sets analog reference pin.
Sets comparator mode to differential with external Vref pin.
Upward hysteresis threshold in single ended mode Vup = (value+1)/64*Vref
.
Downward hysteresis threshold in single ended mode Vdown = (value+1)/64*Vref
.
Enables/disables differential comparator hysteresis (50mV).
Enables COMP_LPCOMP
interrupt triggering on the specified event.
Disables COMP_LPCOMP
interrupt triggering on the specified event.
Returns reference to Up
transition event endpoint for PPI.
Returns reference to Down
transition event endpoint for PPI.
Returns reference to Cross
transition event endpoint for PPI.
Marks event as handled.
Marks all events as handled.
Returns the output state of the comparator.
Auto Trait Implementations
impl RefUnwindSafe for Comp
impl UnwindSafe for Comp
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
OverflowingCasts the value.
Casts the value.
Casts the value.
Casts the value.
UnwrappedCasts the value.
Casts the value.
WrappingCasts the value.