Crate switch_hal[][src]

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

IntoSwitch

Convenience functions for converting InputPin and OutputPin to a Switch.

OutputSwitch

Represents an output switch, such as a LED “switch” or transitor

StatefulOutputSwitch

Checks current switch state

ToggleableOutputSwitch

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