コード例 #1
0
 /**
  * <summary>
  *   Performs a smooth change of the duty cycle toward a given value.
  * <para>
  *   Any period, frequency, duty cycle or pulse width change will cancel any ongoing transition process.
  * </para>
  * </summary>
  * <param name="target">
  *   new duty cycle at the end of the transition
  *   (percentage, floating-point number between 0 and 100)
  * </param>
  * <param name="ms_duration">
  *   total duration of the transition, in milliseconds
  * </param>
  * <returns>
  *   <c>0</c> when the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int dutyCycleMove(double target, int ms_duration)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No PwmOutput connected");
     }
     return(_func.dutyCycleMove(target, ms_duration));
 }