frSetExtOffsetRateControl
Valid for: CANoe DEFunction Syntax
Description
Applies the external rate and offset correction values from the FlexRay parameters for the next cycle. For a description and explanation of the external clock correction procedure please refer to the FlexRay specification and/or to the user manual for the E-Ray communication controller. The function is used in the following sample configuration: 2 Cluster Gateway (FlexRay) – FlexRay_2Cluster_Gateway.cfgDemonstrates the simulation of two FlexRay networks that are interconnected by a FlexRay-FlexRay gateway.
Parameters
- aChannel: FlexRay channel (cluster number)
-
aRateCtrl: Controls whether the rate correction value is to be added, subtracted or ignored:
- 1: add value
- -1: subtract value
- 0: ignore value
-
anOffsetCtrl: Controls whether the offset correction value is to be added, subtracted or ignored:
- 1: add value
- -1: subtract value
- 0: ignore value
Return Values
- 0: Success
- Other: Error