Пример #1
0
 public byte[] WriteUInt32Packet(UInt32 addr, UInt32 data, int timeoutInSec = AvalonPacket.DefaultTimeoutInSec)
 {
     lock (LockObject)
     {
         return(AvalonPacket.WritePacket(Stream, addr, data, timeoutInSec));
     }
 }
Пример #2
0
 public UInt32 ReadUInt32Packet(UInt32 addr, int timeoutInSec = AvalonPacket.DefaultTimeoutInSec)
 {
     lock (LockObject)
     {
         return(AvalonPacket.ReadUInt32Packet(Stream, addr, timeoutInSec));
     }
 }
Пример #3
0
 public byte[] WriteBytePacket(UInt32 addr, byte[] dataBytes, bool isIncremental = false, int timeoutInSec = AvalonPacket.DefaultTimeoutInSec)
 {
     lock (LockObject)
     {
         return(AvalonPacket.WritePacket(Stream, addr, dataBytes, isIncremental, timeoutInSec));
     }
 }
Пример #4
0
 public UInt32[] ReadUInt32Packet(UInt16 size, UInt32 addr, bool isIncremental = false, int timeoutInSec = AvalonPacket.DefaultTimeoutInSec)
 {
     lock (LockObject)
     {
         return(AvalonPacket.ReadUInt32Packet(Stream, size, addr, isIncremental, timeoutInSec));
     }
 }