/** * <summary> * Changes the input signal sampling rate, measured in kHz. * <para> * A lower sampling frequency can be used to hide hide-frequency bounce effects, * for instance on electromechanical contacts, but limits the measure resolution. * Remember to call the <c>saveToFlash()</c> * method of the module if the modification must be kept. * </para> * <para> * </para> * </summary> * <param name="newval"> * an integer corresponding to the input signal sampling rate, measured in kHz * </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_bandwidth(int newval) { if (_func == null) { throw new YoctoApiProxyException("No PwmInput connected"); } if (newval == _Bandwidth_INVALID) { return(YAPI.SUCCESS); } return(_func.set_bandwidth(newval)); }