public DigitalIOImplementation(byte pin, bool initialState, GTI.GlitchFilterMode glitchFilter, GTI.ResistorMode resistorMode, IO60P16 io60) { this.io60 = io60; this.pin = pin; this.resistorMode = resistorMode; this.Mode = GTI.IOMode.Input; this.io60.WriteDigital(this.pin, initialState); }
public override void Write(bool state) { this.Mode = GTI.IOMode.Output; this.io60.WriteDigital(this.pin, state); }
public override bool Read() { this.Mode = GTI.IOMode.Input; return(this.io60.ReadDigital(this.pin)); }