/**
  * <summary>
  *   Changes the maximal calibration value for the input (between 0 and 4095, included), without actually
  *   starting the automated calibration.
  * <para>
  *   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 maximal calibration value for the input (between 0 and 4095,
  *   included), without actually
  *   starting the automated calibration
  * </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_calibrationMax(int newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No AnButton connected");
     }
     if (newval == _CalibrationMax_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_calibrationMax(newval));
 }