/**
  * <summary>
  *   Changes the frequency of the signal sent to the buzzer.
  * <para>
  *   A zero value stops the buzzer.
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="newval">
  *   a floating point number corresponding to the frequency of the signal sent to the buzzer
  * </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_frequency(double newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Buzzer connected");
     }
     if (newval == _Frequency_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_frequency(newval));
 }