/** * <summary> * Changes the polarity 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="bitpolarity"> * polarity to set, 0 makes the I/O work in regular mode, 1 makes the I/O works in reverse mode. * 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_bitPolarity(int bitno, int bitpolarity) { if (_func == null) { throw new YoctoApiProxyException("No DigitalIO connected"); } return(_func.set_bitPolarity(bitno, bitpolarity)); }