コード例 #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;
 }
コード例 #6
0
 public CommandSetCSSThreshold(CSSCH Channel, ushort LowThreshold, ushort HighThreshold)
 {
     CSSChannel         = Channel;
     this.LowThreshold  = LowThreshold;
     this.HighThreshold = HighThreshold;
 }
コード例 #7
0
 public bool SetCssThreshold(CSSCH CssChannel, UInt16 Low, UInt16 Hight)
 {
     _controller.SetCSSThreshold(CssChannel, Low, Hight);
     return(true);
 }
コード例 #8
0
 public bool SetCssEnable(CSSCH CssChannel, bool IsEnable)
 {
     _controller.SetCSSEnable(CssChannel, IsEnable);
     return(true);
 }