AfdxResizeToken
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
Description
This function sets the length of a token. It can only be used with resizable tokens (“header” and “data”). If a token is not resizable, the error code 46-0125 is returned. The main purpose is to create AFDX messages with or without a sequence number field. Calling the function with (n = number of bytes):protocolDesignator= “afdx”tokenDesignator= “data”newBitLength= n*8
protocolDesignator= “udp”tokenDesignator= “data”newBitLength= n*8
Parameters
- packet: Handle of the message that has been created with AfdxInitPacket.
- protocolDesignator: Name of the protocol, e.g., “afdx” or “udp”.
- tokenDesignator: Name of the token, e.g., “data”.
- newBitLength: New length of the token in bits.
Return Values
- 0:
- other value: error code