public void Out(byte data) { lock (apilock) { if (DataMode == IODirection.Input) { DataMode = IODirection.Output; } Inpout.Output8((ushort)dataaddress, data); } }
public byte In() { lock (apilock) { if (DataMode == IODirection.Output) { DataMode = IODirection.Input; } return(Inpout.Input8((ushort)dataaddress)); } }