//************************************************************************** // Create a new message based on a message type public override Ris.ByteContent createMsg(int aMessageType) { Ris.ByteContent tMsg = null; switch (aMessageType) { case MsgIdT.cTestMsg: tMsg = new TestMsg(); break; case MsgIdT.cFirstMessageMsg: tMsg = new FirstMessageMsg(); break; case MsgIdT.cStatusRequestMsg: tMsg = new StatusRequestMsg(); break; case MsgIdT.cStatusResponseMsg: tMsg = new StatusResponseMsg(); break; case MsgIdT.cDataMsg: tMsg = new DataMsg(); break; default: break; } return(tMsg); }
public static void show(FirstMessageMsg aMsg) { Prn.print(Prn.ThreadRun1, "ProtoComm.FirstMessageMsg"); Prn.print(Prn.ThreadRun1, "Code1 {0}", aMsg.mCode1); }
//****************************************************************************** //****************************************************************************** //****************************************************************************** // FirstMessageMsg. public static void initialize(FirstMessageMsg aMsg) { aMsg.mCode1 = 1101; }