public PreamblePolarityEventArg(PreamblePolarityEnum value)
 {
     this.value = value;
 }
示例#2
0
文件: SX1276.cs 项目: kaaLabs15/LoRa
 public void SetPreamblePolarity(PreamblePolarityEnum value)
 {
     try
     {
         lock (syncThread)
             registers["RegSyncConfig"].Value = (uint)(byte)((uint)(byte)((uint)(byte)registers["RegSyncConfig"].Value & 223U) | (uint)(byte)((uint)(byte)value << 5));
     }
     catch (Exception ex)
     {
         OnError((byte)1, ex.Message);
     }
 }
示例#3
0
 private void OnPreamblePolarityChanged(PreamblePolarityEnum value)
 {
     if (this.PreamblePolarityChanged == null)
     return;
       this.PreamblePolarityChanged((object) this, new PreamblePolarityEventArg(value));
 }
 public PreamblePolarityEventArg(PreamblePolarityEnum value)
 {
     this.value = value;
 }