示例#1
0
 /// <summary>
 /// Enable or disable the specified CSS interrupt.
 /// NOTE: The CSS INT will be disabled automatically after it's triggered, so it should
 /// be enabled again if you want to it work the next time.
 /// </summary>
 /// <param name="css"></param>
 /// <param name="isEnabled"></param>
 public void SetCssEnable(CSSCH css, bool isEnabled)
 {
     lock (_lockController)
     {
         Send(new CommandSetCSSEnable(css, isEnabled));
     }
 }
示例#2
0
 /// <summary>
 /// Set the threshold of the CSS interrupt.
 /// </summary>
 /// <param name="css"></param>
 /// <param name="lVth">The voltage of the low threshold in mV</param>
 /// <param name="hVth">The voltage of the high threshold in mV</param>
 public void SetCssThreshold(CSSCH css, ushort lVth, ushort hVth)
 {
     lock (_lockController)
     {
         Send(new CommandSetCSSThreshold(css, lVth, hVth));
     }
 }
示例#3
0
 /// <summary>
 /// Set the threshold of the CSS interrupt.
 /// </summary>
 /// <param name="Css"></param>
 /// <param name="LVth">The voltage of the low threshold in mV</param>
 /// <param name="HVth">The voltage of the high threshold in mV</param>
 public void SetCSSThreshold(CSSCH Css, ushort LVth, ushort HVth)
 {
     lock (lockController)
     {
         Send(new CommandSetCSSThreshold(Css, LVth, HVth));
     }
 }
示例#4
0
 /// <summary>
 /// Enable or disable the specified CSS interrupt.
 /// NOTE: The CSS INT will be disabled automatically after it's triggered, so it should
 /// be enabled again if you want to it work the next time.
 /// </summary>
 /// <param name="Css"></param>
 /// <param name="IsEnabled"></param>
 public void SetCSSEnable(CSSCH Css, bool IsEnabled)
 {
     lock (lockController)
     {
         Send(new CommandSetCSSEnable(Css, IsEnabled));
     }
 }
示例#5
0
 public CommandSetCSSEnable(CSSCH Channel, bool IsEnabled)
 {
     CSSChannel     = Channel;
     this.IsEnabled = IsEnabled;
 }
 public CommandSetCSSThreshold(CSSCH Channel, ushort LowThreshold, ushort HighThreshold)
 {
     CSSChannel         = Channel;
     this.LowThreshold  = LowThreshold;
     this.HighThreshold = HighThreshold;
 }
 public bool SetCssThreshold(CSSCH CssChannel, UInt16 Low, UInt16 Hight)
 {
     _controller.SetCSSThreshold(CssChannel, Low, Hight);
     return(true);
 }
 public bool SetCssEnable(CSSCH CssChannel, bool IsEnable)
 {
     _controller.SetCSSEnable(CssChannel, IsEnable);
     return(true);
 }