コード例 #1
0
 /**
  * <summary>
  *   Changes  the direction of a single bit (i.e.
  * <para>
  *   channel) from the I/O port.
  * </para>
  * </summary>
  * <param name="bitno">
  *   the bit number; lowest bit has index 0
  * </param>
  * <param name="bitdirection">
  *   direction to set, 0 makes the bit an input, 1 makes it an output.
  *   Remember to call the   <c>saveToFlash()</c> method to make sure the setting is kept after a reboot.
  * </param>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int set_bitDirection(int bitno, int bitdirection)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No DigitalIO connected");
     }
     return(_func.set_bitDirection(bitno, bitdirection));
 }