/** * <summary> * Returns the frequency of the signal sent to the buzzer/speaker. * <para> * </para> * <para> * </para> * </summary> * <returns> * a floating point number corresponding to the frequency of the signal sent to the buzzer/speaker * </returns> * <para> * On failure, throws an exception or returns <c>YBuzzer.FREQUENCY_INVALID</c>. * </para> */ public double get_frequency() { double res; if (_func == null) { throw new YoctoApiProxyException("No Buzzer connected"); } res = _func.get_frequency(); if (res == YAPI.INVALID_DOUBLE) { res = Double.NaN; } return(res); }