Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
C2xParsePacket
Open topic with navigation CAPL Functions » Car2x » C2xParsePacketFunction Syntax
Description
Reinterprets the packet after externally defined binary payload data has been assigned to the packet. When parts of the packet are already available as byte array from external sources, for example gateways or traffic intersection geometry design tools (for MAP packet), these binary byte arrays can be applied to the packet by usingC2xSetTokenData function. Here mentioned are byte arrays representing the whole header payload parts like wsmp_t/data, dsmp/data or btp/data and not the data of specific concrete payload tokens.
By calling C2xParsePacket the packet will be reinterpreted, so directly after the call the values of each token existed in external data are accessible (see the example).
This function fails when the external data applied to the packet cannot be successfully interpreted by using database message definitions.
Parameters
- packet: Handle of a packet that has been created with C2xInitPacket or was obtained via callback function parameter.
Return Values
- 0: Success
- ≠0: Error code
Example
See Also
- C2xAddToken
- C2xAssignNodeToStation
- C2xCompletePacket
- C2xConvertTimeFromMSSinceUTC
- C2xConvertTimeToMSSinceUTC
- C2xCreateStation
- C2xDisableMsg
- C2xEnableMsg
- C2xGetCycleTime
- C2xGetDefaultMacId
- C2xGetITSTimeStamp
- C2xGetLastError
- C2xGetLastErrorText
- C2xGetMessageName
- C2xGetNodeName
- C2xGetStationHandle
- C2xGetStationHandleByStationName
- C2xGetStationName
- C2xGetThisData
- C2xGetThisMotorolaValue16
- C2xGetThisMotorolaValue32
- C2xGetThisMotorolaValue64
- C2xGetThisTimeNS
- C2xGetThisValue16
- C2xGetThisValue32
- C2xGetThisValue64
- C2xGetThisValue8
- C2xGetTokenBitOfBitString
- C2xGetTokenBitString
- C2xGetTokenData
- C2xGetTokenInt
- C2xGetTokenInt64
- C2xGetTokenLengthBit
- C2xGetTokenOidElement
- C2xGetTokenString
- C2xGetTokenSubString
- C2xInitPacket
- C2xInitProtocol
- C2xIsMsgEnabled
- C2xIsNodeStarted
- C2xIsPacketValid
- C2xIsTokenAvailable
- C2xOutputPacket
- C2xProtocolAnalyzerGetRuleList
- C2xReceivePacket
- C2xRegisterCallback
- C2xReleasePacket
- C2xRemoveNodeAssignment
- C2xRemoveToken
- C2xReportProtocolViolation
- C2xResizeToken
- C2xSecCertificateCreate
- C2xSecCertificateGetHandle
- C2xSecCertificateGetHashedId8
- C2xSecCertificateGetName
- C2xSecCertificateGetSignerHandle
- C2xSecCertificateGetSignerHashedId8
- C2xSecCertificateGetStatus
- C2xSecPacketGetSignerHandle
- C2xSecPacketGetSignerHashedId8
- C2xSecPacketGetSignerType
- C2xSecPacketGetStatus
- C2xSecPacketIsSecured
- C2xSecPacketSetSignerHandle
- C2xSecPacketSetSignerType
- C2xSendMsg
- C2xSetCycleTime
- C2xSetSignal
- C2xSetStationSpeed
- C2xSetTokenBitOfBitString
- C2xSetTokenBitString
- C2xSetTokenData
- C2xSetTokenInt
- C2xSetTokenInt64
- C2xSetTokenOidElement
- C2xSetTokenString
- C2xSetVerbosity
- Car2x CAPL Functions
- Car2x Error Codes
- OnProtocolViolation
- OnScenarioStateChanged
- OnStartScenario
- OnStationAttributeTrigger
- OnStationAttributeTriggerAll
- SetStationSpeed