-
Enable
- Enables the bean - the external events are counted.
ANSIC prototype: byte Enable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
Disable
- Disables the bean - the external events are not counted.
ANSIC prototype: byte Disable(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.