Exemplo n.º 1
0
 private UploadDataBlockToRam(uint address, INTV.Core.Utility.ByteSerializer data, uint runningCrc24)
     : base(ProtocolCommandId.LfsUploadDataBlockToRam, DefaultResponseTimeout, address, (uint)data.SerializeByteCount)
 {
     ProtocolCommandHelpers.ValidateDataBlockSizeAndAddress(address, (int)data.SerializeByteCount);
     Data         = data;
     RunningCrc24 = runningCrc24;
 }
Exemplo n.º 2
0
 private ChecksumDataBlockInRam(uint address, int blockLength)
     : base(ProtocolCommandId.LfsChecksumDataBlockInRam, DefaultResponseTimeout, address, (uint)blockLength)
 {
     ProtocolCommandHelpers.ValidateDataBlockSizeAndAddress(address, blockLength);
 }
Exemplo n.º 3
0
 private DownloadDataBlockFromRam(uint address, int expectedDataLength)
     : base(ProtocolCommandId.LfsDownloadDataBlockFromRam, DefaultResponseTimeout, address, (uint)expectedDataLength)
 {
     ProtocolCommandHelpers.ValidateDataBlockSizeAndAddress(address, expectedDataLength);
 }
Exemplo n.º 4
0
        public const int DefaultResponseTimeout = 5 * 60 * 1000; // There have been cases of create fork taking 4 minutes on heavily loaded devices!

        private CreateForkFromRam(uint address, Fork fork)
            : base(ProtocolCommandId.LfsCreateForkFromRam, DefaultResponseTimeout, fork.GlobalForkNumber, address, fork.Size, fork.Crc24)
        {
            ProtocolCommandHelpers.ValidateDataBlockSizeAndAddress(address, (int)fork.Size);
        }
Exemplo n.º 5
0
 private ReadForkToRam(uint address, ushort globalForkNumber, uint offset, int length)
     : base(ProtocolCommandId.LfsCopyForkToRam, DefaultResponseTimeout, globalForkNumber, address, offset, (uint)length)
 {
     ProtocolCommandHelpers.ValidateDataBlockSizeAndAddress(address, (int)length);
 }