示例#1
0
 /**
  * <summary>
  *   Triggers a pulse on a single bit for a specified duration.
  * <para>
  *   The specified bit
  *   will be turned to 1, and then back to 0 after the given duration.
  * </para>
  * </summary>
  * <param name="bitno">
  *   the bit number; lowest bit has index 0
  * </param>
  * <param name="ms_duration">
  *   desired pulse duration in milliseconds. Be aware that the device time
  *   resolution is not guaranteed up to the millisecond.
  * </param>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int pulse(int bitno, int ms_duration)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No DigitalIO connected");
     }
     return(_func.pulse(bitno, ms_duration));
 }