public DevComSlave(IDevComHardwareInterface rInterface, int vSlaveAddress) { hwInterface = rInterface; recBuffer = new ThreadsafeReceiveBuffer(); hwInterface.setReceiveBuffer(recBuffer); slaveAddr = vSlaveAddress; recBuffer.ByteReceived += new ByteReceivedEventHandler(recBuffer_ByteReceived); resetFrame = protocol.GetResetFrame().GetDataframe(); state = DevComSlaveState.NotReady; }
private void goNotReady() { state = DevComSlaveState.NotReady; }
private void reset() { state = DevComSlaveState.Ready; }