Exemple #1
0
 /**
  * <summary>
  *   Returns the state of a single bit (i.e.
  * <para>
  *   channel)  of the I/O port.
  * </para>
  * </summary>
  * <param name="bitno">
  *   the bit number; lowest bit has index 0
  * </param>
  * <returns>
  *   the bit state (0 or 1)
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int get_bitState(int bitno)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No DigitalIO connected");
     }
     return(_func.get_bitState(bitno));
 }