AfdxSetTokenData
Open topic with navigation CAPL Functions » AFDX » AfdxSetTokenDataFunction Syntax
Description
This function copies a number of bytes from source buffer to a token’s data area. The token is not resized. Use AfdxResizeToken to change the token’s length.Parameters
- packet: Handle of the message that has been created with AfdxInitPacket.
- protocolDesignator: Name of the protocol, e.g. “afdx”.
- tokenDesignator: Name of the token, e.g. “source”.
- offset: This is the offset from the beginning of the token’s data area. If this is 0, data is copied starting at byte 0 of the token’s data area.
- length: This is the number of bytes to be copied from the specified buffer to the token’s data area. Note that the token is not resized. Make sure that the token’s size is at least
lengthbytes. - buffer: This is the source buffer for the copied data.
Return Values
- 0:
- other value: error code
Example
See example of AfdxInitPacketSee Also
- OnAfdxError
- OnAfdxPacket
- A664CloseProxyPort
- A664GetFunctionalStatus
- A664InitICMP
- A664InitMessage
- A664InitPayload
- A664InitProxyPort
- A664isICMP
- A664MsgConfig
- A664ResizeMessage
- A664SetChecksum
- A664SetFunctionalStatus
- A664SetStringSignal
- A664TriggerFrame
- A664VLConfig
- AFDX CAPL Functions
- AFDX Copy-Operator
- AFDX Error Codes
- 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)