Skip to main content

AfdxRegisterReceiveCallback

Open topic with navigation CAPL Functions » AFDX » AfdxRegisterReceiveCallback

Function Syntax

Description

Use this function to register a CAPL callback to handle AFDX related events. Calling the function with form 1 is equivalent to calling it with form 2 with the additional parameters set to these values:
  • direction: BothDirections
  • dropped: DroppedAndNotDropped
  • type: ValidPackets

Parameters

  • callback: Name of CAPL callback.
  • direction: Specifies the direction for the packet or fragment, the callback will be called.
    • 0: RxDirection
    • 1: TxDirection
    • 2: BothDirections
  • dropped: Specifies if the callback shall be called for dropped packets or fragments.
    • 0: Dropped
    • 1: NotDropped
    • 2: DroppedAndNotDropped
  • type: Specifies if the callback shall be called for every kind of frame or just for complete and error free IP fragments or packets.
    • 0: ValidPackets
    • 1: ValidFragments
    • 2: EveryFrameAndPacket

Return Values

Example

Node System - PreStart in CAPL Browser
Node Callback Function in CAPL Browser