/**
  * <summary>
  *   Starts or stops the calibration process.
  * <para>
  *   Remember to call the <c>saveToFlash()</c>
  *   method of the module at the end of the calibration if the modification must be kept.
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="newval">
  *   either <c>YAnButton.ANALOGCALIBRATION_OFF</c> or <c>YAnButton.ANALOGCALIBRATION_ON</c>
  * </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_analogCalibration(int newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No AnButton connected");
     }
     if (newval == _AnalogCalibration_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     // our enums start at 0 instead of the 'usual' -1 for invalid
     return(_func.set_analogCalibration(newval - 1));
 }