Struct nrf52832_hal::lpcomp::LpComp[][src]

pub struct LpComp { /* fields omitted */ }
Expand description

A safe wrapper around the LPCOMP peripheral.

Implementations

Takes ownership of the LPCOMP peripheral, returning a safe wrapper using specified input pin and a default Vref of Vdd/2.

Selects comparator Vref.

Sets analog reference pin.

Enables/disables comparator hysteresis.

Analog detect event configuration, used for analog signal power up from OFF.

Enables COMP_LPCOMP interrupt triggering on the specified event.

Disables COMP_LPCOMP interrupt triggering on the specified event.

Enables the comparator and waits until it’s ready to use.

Disables the comparator.

Checks if the Up transition event has been triggered.

Checks if the Down transition event has been triggered.

Checks if the Cross transition event has been triggered.

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.

Consumes self and returns back the raw LPCOMP peripheral.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Casts the value.

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

OverflowingCasts the value.

Should always be Self

Casts the value.

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

UnwrappedCasts the value.

Casts the value.

WrappingCasts the value.