-
Enable
- Enables the bean.
ANSIC prototype: byte Enable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
Disable
- Disables the bean.
ANSIC prototype: byte Disable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
EnableEvent
- Enables the bean events (method is only available when the bean was enabled at the least one of the events - OnOverflow and OnEdge).
ANSIC prototype: byte EnableEvent(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
DisableEvent
- Disables the bean events (method is only available when the bean was enabled at least one of the events - OnOverflow and OnEdge).
ANSIC prototype: byte DisableEvent(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
ResetCounter
- This method resets the pulse accumulator counter (sets to zero).
ANSIC prototype: void ResetCounter(void)
-
SetCounter
- This method sets the pulse accumulator counter.
ANSIC prototype: void SetCounter(word Value)
- Value:word - This value is stored into a counter register.
Note: Parameter type depends on the width of the selected counter (may be 8, 16, 32 or 64 bits long). See the method prototype in the generated module.
- Methods for HCS12(X) derivatives.
-
GetCounterValue
- This method returns the content of the pulse accumulator counter.
ANSIC prototype: word GetCounterValue(void)
- Return value:word - Content of the counter register.
-
GetHoldValue
- This method returns the content of the pulse accumulator holding register (method is only available when buffer is enabled).
ANSIC prototype: word GetHoldValue(void)
- Return value:word - Content of the holding register.
-
Latch
- This method forces the content of the pulse accumulator count register to be latched into the associated holding register (method is only available in latch mode).
ANSIC prototype: void Latch(void)
Note: Some methods can be implemented as macros.