Esempio n. 1
0
 /**
  * <summary>
  *   Changes the measure update frequency, measured in Hz.
  * <para>
  *   When the
  *   frequency is lower, the device performs averaging.
  *   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 measure update frequency, measured in Hz
  * </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_bandwidth(int newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Accelerometer connected");
     }
     if (newval == _Bandwidth_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     return(_func.set_bandwidth(newval));
 }