-
Enable
- This method enables the component - the external events are counted.
ANSIC prototype: byte Enable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
Disable
- This method disables the component - the external events are not counted.
ANSIC prototype: byte Disable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
EnableEvent
- This method enables invocation of the OnEnd user event. The method is available only if Interrupt service/event is enabled and the component is in Repetitive mode.
ANSIC prototype: byte EnableEvent(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
DisableEvent
- This method disables invocation of the OnEnd user event. The method is available only if Interrupt service/event is enabled and the component is in Repetitive mode.
ANSIC prototype: byte DisableEvent(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
Reset
- This method resets the external event counter (sets it to zero).
ANSIC prototype: byte Reset(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
GetNumEvents
- This method returns the number of the external events.
ANSIC prototype: byte GetNumEvents(word *Value)
- Value: Pointer to word - A pointer to the returned number of the external events
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_OVERFLOW - Timer overflow
Note: Some methods can be implemented as macros.