Example #1
0
        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;
        }
Example #2
0
        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;
        }
Example #3
0
 private void goNotReady()
 {
     state = DevComSlaveState.NotReady;
 }
Example #4
0
 private void reset()
 {
     state = DevComSlaveState.Ready;
 }
Example #5
0
 private void reset()
 {
     state = DevComSlaveState.Ready;
 }
Example #6
0
 private void goNotReady()
 {
     state = DevComSlaveState.NotReady;
 }