Exemple #1
0
 /**
  * <summary>
  *   Changes the PWM pulse length, in milliseconds.
  * <para>
  *   A pulse length cannot be longer than period, otherwise it is truncated.
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="newval">
  *   a floating point number corresponding to the PWM pulse length, in milliseconds
  * </param>
  * <para>
  * </para>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public int set_pulseDuration(double newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No PwmOutput connected");
     }
     if (newval == _PulseDuration_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_pulseDuration(newval));
 }