AfdxOutputPacket
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
The specified AFDX message is transmitted with this function call. Note that the user has complete control of all the transmission scenarios. If the message is defined in an AFDX database the corresponding message attributes (e.g. timing, redundancy) are used for the transmission. Your CANoe DE product internally uses an AFDX software stack for the message handling. In the following cases the message needs to be defined in a DBC file and the file needs to be assigned to the actual configuration:- Form 1 is used
- Form 2 is used with at least one of the parameters set to the listed value:
- txMode = 0 (CyclicOff), 1 (CyclicOn)
- frag = 1 (DoIPFragmentation)
- vl = 1 (DoAFDXVLScheduling)
- rma = 0 (DBRelated)
Parameters
- packet: Handle of the message to send that has been created with AfdxInitPacket.
-
txMode: Set message’s transmission behavior:
- 0: (CyclicOff) An active cyclic transmission is switched off. The corresponding message is transmitted at least once after this call.
- 1: (CyclicOn) The message is transmitted cyclically and the cycle time is defined via the attribute AfdxMsgTxRate in the assigned DBC file.
- 2: (SingleShot) The message is transmitted once.
-
frag: Activate or deactivate IP fragmentation:
- 0: (NoIPFragmentation) The message is transmitted without fragmentation.
- 1: (DoIPFragmentation) This parameter value activates the IP fragmentation for a message based on the attributes in the DBC file. The fragment’s size corresponds to the value of the attribute AfdxVLmaxFrame.
-
vl: Activate/deactivate software controlled VL scheduling:
- 0: (NoAFDXVLScheduling) The corresponding virtual link of this message is not controlled by the AFDX software stack.
- 1: (DoAFDXVLScheduling) The corresponding virtual link of this message is controlled by the AFDX software stack.
-
seqNo: Activate/deactivate automatic sequence number handling:
- 0: (NoAFDXSeqNoManagement) The actual sequence number from message’s payload is used.
- 1: (DoAFDXSeqNoManagement) The sequence number is automatically updated for the message.
-
rma: Activate a specific redundancy handling mode.
Value Short Name Description Interface_ID updated? Message duplicated? 0 DBRelated The line assignment for the message is derived from the assigned DBC file X X 1 ForceA The message is transmitted on the specified line. X — 2 ForceB The message is transmitted on the specified line. X — 3 ForceAB The message is transmitted on both lines. X X 4 ForceAonB The message is transmitted on the other line. The assignment is inverted. X — 5 ForceBonA The message is transmitted on the other line. The assignment is inverted. X — 6 ForceABonBA The message is transmitted on both lines and the line assignment is inverted. X X 7 ForceLineA The message is transmitted on the specified line. — — 8 ForceLineB The message is transmitted on the specified line. — — 9 ForceLineAB The message is transmitted on both lines. — X 10 MACIFRelated The line assignment is derived from the given MAC source address. — X
Return Values
- 0:
- other value: error code
Example
See example of AfdxInitPacket See Also- OnAfdxError
- OnAfdxPacket
- AfdxCompletePacket
- AfdxDeregisterReceiveCallback
- AfdxGetDBAttrAsString
- AfdxGetDBAttrValue
- AfdxGetDBMessageName
- AfdxGetLastError
- AfdxGetLastErrorText
- AfdxGetMessageId
- AfdxGetMessageName
- AfdxGetPacketData
- AfdxGetSignalBool
- AfdxGetSignalInt
- AfdxGetSignalInt64
- AfdxGetSignalOpaque
- AfdxGetSignalReal
- AfdxGetSignalStatus
- AfdxGetSignalString
- AfdxGetTokenData
- AfdxGetTokenInt
- AfdxGetTokenInt64
- AfdxGetTokenLengthBit
- AfdxGetTokenReal
- AfdxGetTokenString
- AfdxInitPacket
- AfdxInitProtocol
- AfdxInitSchedule
- AfdxIsPacketValid
- AfdxIsReceiveCallbackRegistered
- AfdxOutputPacket
- AfdxOutputPacketRaw
- AfdxOutputPacketWithSignals
- AfdxRegisterReceiveCallback
- AfdxReleasePacket
- AfdxRemoveToken
- AfdxResizeToken
- AfdxSetErrorHandler
- AfdxSetSignalBool
- AfdxSetSignalInt
- AfdxSetSignalInt64
- AfdxSetSignalOpaque
- AfdxSetSignalReal
- AfdxSetSignalStatus
- AfdxSetSignalString
- AfdxSetTokenData
- AfdxSetTokenInt
- AfdxSetTokenInt64
- AfdxSetTokenReal
- AfdxSetTokenString
- AfdxSetVerbosity
- Declaration of AFDX Frames
- Declaration of AFDX Messages
- on a664Frame
- on a664Message
- output (AFDX)
- Use The Right Operating Mode (AFDX)