[][src]Crate switch_hal

Modules

mock

Mock implementations of InputPin and OutputPin.

Structs

ActiveHigh

Zero sized struct for signaling to Switch that it is active high

ActiveLow

Zero sized struct for signaling to Switch that it is active low

Switch

Concrete implementation for InputSwitch and OutputSwitch

Traits

InputSwitch

Represents an input switch, such as a button or a switch

OutputSwitch

Represents an output switch, such as a LED "switch" or transitor

ToggleableOutputSwitch

Toggles the switch from it's current state to it's opposite state.