C2xRegisterCallback
Valid for: CANoe DEFunction Syntax
Description
Register a callback function. The callback can be registered for all or for a specific message. If the dbMessage parameter is present, the function can be called earliest in the On Start event handler. With multiple calls of this function it is possible to register several callback functions for the same message or to register the same callback function for several messages.Parameters
-
callbackType
- 0: Register a Receive Indication callback
- 1: Register a Pre Transmit Indication callback
-
dbMessage
- Name of a database message for which the callback is invoked.
Return Values
- 0: Success
- ≠0: Error code