/** * <summary> * Changes the electrical interface of a single bit from the I/O port. * <para> * </para> * </summary> * <param name="bitno"> * the bit number; lowest bit has index 0 * </param> * <param name="opendrain"> * 0 makes a bit a regular input/output, 1 makes * it an open-drain (open-collector) input/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_bitOpenDrain(int bitno, int opendrain) { if (_func == null) { throw new YoctoApiProxyException("No DigitalIO connected"); } return(_func.set_bitOpenDrain(bitno, opendrain)); }