/** * <summary> * Performs a smooth transition toward a specified value of the phase shift between this channel * and the other channel. * <para> * The phase shift is executed by slightly changing the frequency * temporarily during the specified duration. This function only makes sense when both channels * are running, either at the same frequency, or at a multiple of the channel frequency. * Any period, frequency, duty cycle or pulse width change will cancel any ongoing transition process. * </para> * </summary> * <param name="target"> * phase shift at the end of the transition, in milliseconds (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 phaseMove(double target, int ms_duration) { if (_func == null) { throw new YoctoApiProxyException("No PwmOutput connected"); } return(_func.phaseMove(target, ms_duration)); }