예제 #1
0
 /**
  * <summary>
  *   Changes the hysteresis used to determine the logical state of the proximity sensor, when considered
  *   as a binary input (on/off).
  * <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 hysteresis used to determine the logical state of the proximity
  *   sensor, when considered
  *   as a binary input (on/off)
  * </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_detectionHysteresis(int newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Proximity connected");
     }
     if (newval == _DetectionHysteresis_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_detectionHysteresis(newval));
 }