Esempio n. 1
0
 /**
  * <summary>
  *   Changes the maximum time (ms) allowed for the relay to stay in state A
  *   before automatically switching back in to B state.
  * <para>
  *   Use zero for no time limit.
  *   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 maximum time (ms) allowed for the relay to stay in state A
  *   before automatically switching back in to B state
  * </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_maxTimeOnStateA(long newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Relay connected");
     }
     if (newval == _MaxTimeOnStateA_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_maxTimeOnStateA(newval));
 }