Ejemplo n.º 1
0
 public void SetData(byte[] lbData, int liOffset)
 {
     m_Length        = BitConverter.ToUInt16(lbData, liOffset);
     m_AppID         = BitConverter.ToUInt16(lbData, 2 + liOffset);
     m_Command       = (CapiMessages_Commands_Enum)lbData[4 + liOffset];
     m_SubCommand    = (CapiMessages_SubCommands_Enum)lbData[5 + liOffset];
     m_MessageNumber = BitConverter.ToUInt16(lbData, 6 + liOffset);
 }
Ejemplo n.º 2
0
 public void SetCommand(CapiMessages_Enum loCommand)
 {
     m_Command    = (CapiMessages_Commands_Enum)((int)loCommand / 0x100);
     m_SubCommand = (CapiMessages_SubCommands_Enum)((int)loCommand % 0x100);
 }