mostStringToAscii
Valid for: CANoe DEFunction Syntax
Description
Convert MOST string to ASCII string. Unsupported characters in the input data are ignored. Note: Supported encodings:0x00: Unicode, UTF160x01: ISO 8859/15 8 bit0x02: Unicode, UTF80x03: RDS0x04: DAB Charset 00010x05: DAB Charset 00100x06: DAB Charset 00110x07: SHIFT_JIS
Parameters
- sourceData: A buffer containing the MOST string to be decoded.
- sourceDataLen: The size of the buffer containing the MOST string.
- buffer: Buffer to which the ASCII string is copied.
- bufferSize: Maximum number of copied ASCII string bytes (can be specified with elcount(buffer)).
Return Values
- >= 0: number of converted characters
- \< 0: See error codes