public void ConstructMessage(Main.MsgIDsToMCU Id, Byte ModId, UInt16 val)
 {
     id = (byte)Id;
     messageData.Add(ModId);
     messageData.AddRange(BitConverter.GetBytes(val));
     dlc = (byte)messageData.Count();
 }
 public void SendMessage(Main.MsgIDsToMCU Id, Byte ModId, Single val)
 {
     Message msg = new Message();
     msg.ConstructMessage(Id, ModId, val);
     port_sendSerialMessage(msg);
 }
 public void SendMessage(Main.MsgIDsToMCU Id, Byte PowerType, Byte NrOfPoints, UInt16[] CalPoints, Single[] RCvals, Single[] Bvals)
 {
     Message msg = new Message();
     msg.ConstructMessage(Id, PowerType, NrOfPoints, CalPoints, RCvals, Bvals);
     port_sendSerialMessage(msg);
 }
 public void SendMessage(Main.MsgIDsToMCU Id)
 {
     Message msg = new Message();
     msg.ConstructMessage(Id);
     port_sendSerialMessage(msg);
 }
 public void ConstructMessage(Main.MsgIDsToMCU Id, Byte PowerType, Byte NrOfPoints, UInt16[] CalPoints, Single[] RCvals, Single[] Bvals)
 {
     id = (byte)Id;
     messageData.Add(PowerType);
     messageData.Add(NrOfPoints);
     foreach (UInt16 data in CalPoints)
         messageData.AddRange(BitConverter.GetBytes(data));
     foreach (Single data in RCvals)
         messageData.AddRange(BitConverter.GetBytes(data));
     foreach (Single data in Bvals)
         messageData.AddRange(BitConverter.GetBytes(data));
     dlc = (byte)messageData.Count();
 }
 public void ConstructMessage(Main.MsgIDsToMCU Id)
 {
     id = (byte)Id;
     dlc = 0;
 }
 public void ConstructMessage(Main.MsgIDsToMCU Id, byte val)
 {
     id = (byte)Id;
     messageData.Add(val);
     dlc = (byte)messageData.Count();
 }
 public void ConstructMessage(Main.MsgIDsToMCU Id, Single val)
 {
     id = (byte)Id;
     messageData.AddRange(BitConverter.GetBytes(val));
     dlc = (byte)messageData.Count();
 }