/** * <summary> * Returns the pulse counter value. * <para> * The value is a 32 bit integer. In case * of overflow (>=2^32), the counter will wrap. To reset the counter, just * call the resetCounter() method. * </para> * <para> * </para> * </summary> * <returns> * an integer corresponding to the pulse counter value * </returns> * <para> * On failure, throws an exception or returns <c>YAnButton.PULSECOUNTER_INVALID</c>. * </para> */ public long get_pulseCounter() { long res; if (_func == null) { throw new YoctoApiProxyException("No AnButton connected"); } res = _func.get_pulseCounter(); if (res == YAPI.INVALID_INT) { res = _PulseCounter_INVALID; } return(res); }