/** * <summary> * Performs a smooth frequency change 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 frequency at the end of the transition (floating-point number) * </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 frequencyMove(double target, int ms_duration) { if (_func == null) { throw new YoctoApiProxyException("No PwmOutput connected"); } return(_func.frequencyMove(target, ms_duration)); }