/** * <summary> * Reverts 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> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public virtual int toggle_bitState(int bitno) { if (_func == null) { throw new YoctoApiProxyException("No DigitalIO connected"); } return(_func.toggle_bitState(bitno)); }