コード例 #1
0
 internal FrameContent(IBufferLink homePool, byte fspartLength)
     : base(300, homePool, true)
 {
     FSpartLength      = fspartLength;
     ATbytePos         = (byte)(FSbytePos + FSpartLength + 0); //pozycja bajtu AT - czyli co zawiera ramka
     stationAddressPos = (byte)(ATbytePos + ATbyteLength);     //pozycja adresu stacji w ramce
     m_DataTypePos     = (byte)(stationAddressPos + 1);        //pozycja typu danych / typu ramki w ramce
     regCountPos       = (byte)(stationAddressPos + 2);        //pozycja wartosci <r-count>; <w - count> w ramce (nie zawsze wystepuje)
     addressStartPos   = (byte)(stationAddressPos + 3);        //<address-RTC>/<address-IOF> pozycja adresy flagi / rejestru w ramce
 }
コード例 #2
0
 /// <summary>
 /// SBUS message constructor
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 internal SBUSRS_message(IBufferLink homePool) :
     base(homePool, 1)
 {
 }
コード例 #3
0
 /// <summary>
 /// SBUS message constructor
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 internal SBUSNet_message(IBufferLink homePool)
     : base(homePool, 8)
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FrameStateMachine" /> class.
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 /// <param name="fspart_length">The FS part length.</param>
 internal FrameStateMachine(IBufferLink homePool, byte fspart_length)
     : base(homePool, fspart_length)
 {
     m_traceName = "SBUSbase_message";
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NULL_message"/> class.
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 public NULL_message(IBufferLink homePool)
     : base(30, homePool, false)
 {
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MBUS_message"/> class.
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 internal MBUS_message(IBufferLink homePool)
     : base(300, homePool, true)
 {
     myTrace = new TRACE(MBUSTrace);
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModBusPDUMessageBase"/> class.
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 /// <param name="myProtocolParameters">My protocol parameters.</param>
 public ModBusPDUMessageBase(IBufferLink homePool, ModBus_CommonProtocolParameters myProtocolParameters)
     : base(300, homePool, true)
 {
     MyProtocolParameters = myProtocolParameters;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModBusMessage"/> class.
 /// </summary>
 /// <param name="homePool">The home pool.</param>
 /// <param name="myProtocolParameters">protocol parameters <see cref="ModBus_ProtocolParameters"/>.</param>
 internal ModBusMessage(IBufferLink homePool, ModBus_ProtocolParameters myProtocolParameters)
     : base(homePool, myProtocolParameters)
 {
 }
コード例 #9
0
 /// <summary>
 /// Creator
 /// </summary>
 /// <param name="length">Length of the buffer to keep contend.</param>
 /// <param name="homePool">Home pool the message belongs to.</param>
 /// <param name="bigEndian">If true, numerical quantity larger then a single byte is stored in the buffer
 /// with the most significant byte first.
 /// </param>
 internal protected ProtocolALMessage(ushort length, IBufferLink homePool, bool bigEndian)
     : base(length, bigEndian)
 {
     this.pool = homePool;
 }