AfdxGetTokenData
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
This function copies a number of bytes from a token’s data area to a destination buffer.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. “data”.
- 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 token’s data area to the specified buffer.
- buffer: This is the destination buffer for the copied data. Make sure that the size of the buffer is at least length bytes.
Return Values
- Number of copied bytes or 0
- With AfdxGetLastError you can check if the function has been processed successfully.