Class Contact
Builds contacts, inferring the line's type.
public static class Contact
- Inheritance
-
Contact
- Inherited Members
Methods
ActiveHigh<TLine>(TLine)
A contact that reads high when asserted.
public static Contact<TLine> ActiveHigh<TLine>(TLine line) where TLine : IInputLine
Parameters
lineTLineThe line.
Returns
- Contact<TLine>
The contact.
Type Parameters
TLineThe line the part is wired to.
ActiveLow<TLine>(TLine)
A contact that reads low when asserted, the wiring of a switch to ground with a pull-up.
public static Contact<TLine> ActiveLow<TLine>(TLine line) where TLine : IInputLine
Parameters
lineTLineThe line.
Returns
- Contact<TLine>
The contact.
Type Parameters
TLineThe line the part is wired to.