[][src]Module bounced::active

Active Low and Active High Inputs

These types encode behaviour about the physical state of an input.

For example, considering a two-state button as active when pressed would have to consider if the button is NC or NO, and if the input is normally pulled up or down.

ButtonInputActive
NCPUHigh
NCPDLow
NOPULow
NOPDHigh

Use Low and High to encode this information, which drives the beginning state of the debouncer.

For non-buttons, the activity of the input should be the default-state; the state that does not trigger something to occur. However, there is a lot of domain specific information that should drive your choice, which may go against the information here.

Structs

High

Active High Input

Low

Active Low Input

Traits

Active

Status of an Input