Ejemplo n.º 1
0
 public void setValue(string content, int start)
 {
     try
     {
         this.SyncState     = Convert.ToByte(root.getDecimalFromBinary(content, start, 2));
         this.SlotIncrement = Convert.ToByte(root.getDecimalFromBinary(content, start + 2, 13));
         //Application Specific Data - 952 Bit - Taner Bey'e sor.
         this.NumberOfSlots = Convert.ToByte(root.getDecimalFromBinary(content, start + 15, 3));
         this.KeepFlag      = Convert.ToByte(root.getDecimalFromBinary(content, start + 18, 1));
     }
     catch (Exception ex)
     {
         log.Error(ex, "ITDMA :: setValue");
         throw;
     }
 }
 public void setValue(string content, int start)
 {
     try
     {
         this.SyncState             = Convert.ToByte(root.getDecimalFromBinary(content, start, 2));
         this.SlotTimeOut           = Convert.ToByte(root.getDecimalFromBinary(content, start + 2, 3));
         this.subMessage.SlotOffset = Convert.ToInt32(root.getDecimalFromBinary(content, start + 5, 14));
         //Application Specific Data - 952 Bit - Taner Bey'e sor.
         //this.subMessage.UTCMinute = Convert.ToByte(root.getDecimalFromBinary(content, start + 7, 6));
         //this.subMessage.UTCHour = Convert.ToByte(root.getDecimalFromBinary(content, start + 13, 5));
     }
     catch (Exception ex)
     {
         log.Error(ex, "SOTDMA :: setValue");
         throw;
     }
 }