Пример #1
0
 /**
  * <summary>
  *   Returns the type of electrical interface of a single bit from the I/O port.
  * <para>
  *   (0 means the bit is an input, 1  an output).
  * </para>
  * </summary>
  * <param name="bitno">
  *   the bit number; lowest bit has index 0
  * </param>
  * <returns>
  *   0 means the a bit is a regular input/output, 1 means the bit is an open-drain
  *   (open-collector) input/output.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public virtual int get_bitOpenDrain(int bitno)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No DigitalIO connected");
     }
     return(_func.get_bitOpenDrain(bitno));
 }