/** * <summary> * Returns the port state diagnostics (Yocto-IO and Yocto-MaxiIO-V2 only). * <para> * Bit 0 indicates a shortcut on * output 0, etc. Bit 8 indicates a power failure, and bit 9 signals overheating (overcurrent). * During normal use, all diagnostic bits should stay clear. * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the port state diagnostics (Yocto-IO and Yocto-MaxiIO-V2 only) * </returns> * <para> * On failure, throws an exception or returns <c>YDigitalIO.PORTDIAGS_INVALID</c>. * </para> */ public int get_portDiags() { int res; if (_func == null) { throw new YoctoApiProxyException("No DigitalIO connected"); } res = _func.get_portDiags(); if (res == YAPI.INVALID_INT) { res = _PortDiags_INVALID; } return(res); }