/** * <summary> * Returns the number of seconds spent since the last output power-up event. * <para> * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the number of seconds spent since the last output power-up event * </returns> * <para> * On failure, throws an exception or returns <c>YWatchdog.LASTTRIGGER_INVALID</c>. * </para> */ public int get_lastTrigger() { int res; if (_func == null) { throw new YoctoApiProxyException("No Watchdog connected"); } res = _func.get_lastTrigger(); if (res == YAPI.INVALID_INT) { res = _LastTrigger_INVALID; } return(res); }