-
Enable
- Enables the bean - it starts the capture. Events may be generated ("DisableEvent"/"EnableEvent").
ANSIC prototype: byte Enable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_SPEED - This device does not work in the active speed mode
-
Disable
- Disables the bean - it stops the capture. No events will be generated.
ANSIC prototype: byte Disable(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_SPEED - This device does not work in the active speed mode
-
EnableEvent
- Enables the events.
ANSIC prototype: byte EnableEvent(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_SPEED - This device does not work in the active speed mode
-
DisableEvent
- Disables the events.
ANSIC prototype: byte DisableEvent(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_SPEED - This device does not work in the active speed mode
-
Reset
- This method resets the counter register.
ANSIC prototype: byte Reset(void)
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_SPEED - This device does not work in the active speed mode
-
GetCaptureValue
- This method gets the last value captured by enabled timer.
ANSIC prototype: byte GetCaptureValue(word *Value)
- Value: Pointer to word - A pointer to the content of the capture register
- Return value:byte - Error code, possible codes:
ERR_OK - OK
ERR_SPEED - This device does not work in the active speed mode
- Methods for HCS12 derivatives.
-
GetHoldValue
- This method gets the value of the holding register (the method is only available when holding registers are supported by the peripheral and Buffer property in the bean setting is enabled).
ANSIC prototype: byte GetHoldValue(word *Value)
- Value: Pointer to word - A pointer to the content of the holding register.
- Return value:byte - Error code, possible codes:
ERR_OK - OK
-
Latch
- This method forces the content of the input capture register to be latched into the associated holding register (method is only available when holding registers are supported by the peripheral, the property Mode is set to Latch, and Buffer is enabled).
ANSIC prototype: void Latch(void)
Note: Some methods can be implemented as macros.