/** * <summary> * Sets 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> * <param name="bitstate"> * the state of the bit (1 or 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 set_bitState(int bitno, int bitstate) { if (_func == null) { throw new YoctoApiProxyException("No DigitalIO connected"); } return(_func.set_bitState(bitno, bitstate)); }