/** * <summary> * Activates the buzzer for a short duration. * <para> * </para> * </summary> * <param name="frequency"> * pulse frequency, in hertz * </param> * <param name="duration"> * pulse duration in milliseconds * </param> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public virtual int pulse(int frequency, int duration) { if (_func == null) { throw new YoctoApiProxyException("No Buzzer connected"); } return(_func.pulse(frequency, duration)); }