![]() |
Library for converting Kvaser Memorator log files. More...
Go to the source code of this file.
Macros | |
| #define | WINAPI |
KvlcStatus | |
| #define | kvlcOK ((KvlcStatus) 0) |
| OK. More... | |
| #define | kvlcFail ((KvlcStatus)-1) |
| Generic error. More... | |
| #define | kvlcERR_PARAM ((KvlcStatus)-2) |
| Error in supplied parameters. More... | |
| #define | kvlcEOF ((KvlcStatus)-3) |
| End of input file reached. More... | |
| #define | kvlcERR_NOT_IMPLEMENTED ((KvlcStatus)-4) |
| Not implemented. More... | |
| #define | kvlcERR_FILE_ERROR ((KvlcStatus)-5) |
| File I/O error. More... | |
| #define | kvlcERR_FILE_EXISTS ((KvlcStatus)-6) |
| Output file already exists. More... | |
| #define | kvlcERR_INTERNAL_ERROR ((KvlcStatus)-7) |
| Unhandled internal error. More... | |
| #define | kvlcERR_NULL_POINTER ((KvlcStatus)-8) |
| Unexpected null pointer. More... | |
| #define | kvlcERR_FILE_TOO_LARGE ((KvlcStatus)-10) |
| File size too large for specified format. More... | |
| #define | kvlcERR_TYPE_MISMATCH ((KvlcStatus)-11) |
| Supplied parameter has incorrect type. More... | |
| #define | kvlcERR_NO_FREE_HANDLES ((KvlcStatus)-12) |
| Too many open KvlcHandle handles. More... | |
| #define | kvlcERR_NO_INPUT_SELECTED ((KvlcStatus)-13) |
| Missing call to kvlcSetInputFile or kvlcFeedSelectFormat. More... | |
| #define | kvlcERR_CONVERTING ((KvlcStatus)-14) |
| Call failed since conversion is running. More... | |
| #define | kvlcERR_BUFFER_SIZE ((KvlcStatus)-15) |
| The supplied buffer is too small to hold the result. More... | |
| #define | kvlcERR_INVALID_LOG_EVENT ((KvlcStatus)-30) |
| Event is unknown to converter. More... | |
| #define | kvlcERR_NO_TIME_REFERENCE ((KvlcStatus)-31) |
| Required timestamp missing. More... | |
| #define | kvlcERR_TIME_DECREASING ((KvlcStatus)-32) |
| Decreasing time between files. More... | |
| #define | kvlcERR_MIXED_ENDIANNESS ((KvlcStatus)-33) |
| Wrong data type in MDF. More... | |
| #define | kvlcERR_RESULT_TOO_BIG ((KvlcStatus)-34) |
| Result is too big for an out-parameter. More... | |
| #define | kvlcERR_UNSUPPORTED_VERSION ((KvlcStatus)-35) |
| Unsupported version of file format. More... | |
FILE_FORMAT_xxx | |
Format used for input and output, used in kvlcSetInputFile(), kvlcFeedSelectFormat().
| |
| #define | KVLC_FILE_FORMAT_KME24 1 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_KME25 2 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_VECTOR_ASC 3 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_CSV 4 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_PLAIN_ASC 5 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_MEMO_LOG 6 |
| Input (internal device logfile format). More... | |
| #define | KVLC_FILE_FORMAT_KME40 7 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_VECTOR_BLF 8 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_KME50 9 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_CSV_SIGNAL 100 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_MDF 101 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_MATLAB 102 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_J1587 103 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_J1587_ALT 104 |
| Obsolete. More... | |
| #define | KVLC_FILE_FORMAT_FAMOS 105 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_MDF_SIGNAL 106 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_MDF_4X 107 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_MDF_4X_SIGNAL 108 |
| Output file format. More... | |
| #define | KVLC_FILE_FORMAT_VECTOR_BLF_FD 109 |
| Input and output file format. More... | |
| #define | KVLC_FILE_FORMAT_XCP 200 |
| Not supported. More... | |
| #define | KVLC_FILE_FORMAT_FAMOS_XCP 201 |
| Not supported. More... | |
| #define | KVLC_FILE_FORMAT_DEBUG 1000 |
| Reserved for debug. More... | |
PROPERTY_xxx | |
Converter properties used in the output format. These are used in kvlcSetProperty(), kvlcGetProperty(), kvlcGetWriterPropertyDefault() and kvlcIsPropertySupported(). | |
| #define | KVLC_PROPERTY_START_OF_MEASUREMENT 1 |
| #define | KVLC_PROPERTY_FIRST_TRIGGER 2 |
| #define | KVLC_PROPERTY_USE_OFFSET 3 |
| #define | KVLC_PROPERTY_OFFSET 4 |
| #define | KVLC_PROPERTY_CHANNEL_MASK 5 |
| #define | KVLC_PROPERTY_HLP_J1939 6 |
| (int) Interpret events as J1939. More... | |
| #define | KVLC_PROPERTY_CALENDAR_TIME_STAMPS 7 |
| (int) Write calendar time stamps. More... | |
| #define | KVLC_PROPERTY_WRITE_HEADER 8 |
| (int) Write informational header. More... | |
| #define | KVLC_PROPERTY_SEPARATOR_CHAR 9 |
| (char) Use token as separator. More... | |
| #define | KVLC_PROPERTY_DECIMAL_CHAR 10 |
| (char) Use token as decimal separator. More... | |
| #define | KVLC_PROPERTY_ID_IN_HEX 11 |
| (int) Write id in hexadecimal format. More... | |
| #define | KVLC_PROPERTY_DATA_IN_HEX 12 |
| (int) Write data in hexadecimal format. More... | |
| #define | KVLC_PROPERTY_NUMBER_OF_TIME_DECIMALS 13 |
| (int) Number of time decimals (0-9). More... | |
| #define | KVLC_PROPERTY_NAME_MANGLING 14 |
| (int) Make signal names safe for use in Matlab. More... | |
| #define | KVLC_PROPERTY_FILL_BLANKS 15 |
| (int) Propagate values down to next row in csv-files. More... | |
| #define | KVLC_PROPERTY_SHOW_UNITS 16 |
| (int) Show units on their own row. More... | |
| #define | KVLC_PROPERTY_ISO8601_DECIMALS 17 |
| (int) Number of time decimals (0-9) to print in the calendar timestamps using ISO8601. More... | |
| #define | KVLC_PROPERTY_MERGE_LINES 18 |
| (int) Merge two lines if their signal values are equal. More... | |
| #define | KVLC_PROPERTY_RESAMPLE_COLUMN 19 |
| (int) Only print a line when the given column has been accessed. More... | |
| #define | KVLC_PROPERTY_VERSION 20 |
| (int) File format version. More... | |
| #define | KVLC_PROPERTY_SHOW_COUNTER 21 |
| (int) Add a counter to the output. More... | |
| #define | KVLC_PROPERTY_CROP_PRETRIGGER 22 |
| #define | KVLC_PROPERTY_ENUM_VALUES 23 |
| (int) Replace integer values in signals with strings from database. More... | |
| #define | KVLC_PROPERTY_SIZE_LIMIT 24 |
| (unsigned int) Maximum file size in megabytes before starting a new output file. More... | |
| #define | KVLC_PROPERTY_TIME_LIMIT 25 |
| #define | KVLC_PROPERTY_LIMIT_DATA_BYTES 26 |
| #define | KVLC_PROPERTY_CREATION_DATE 27 |
| (time_int64) File creation date/time as seconds in standard UNIX format. Used in file headers if not zero. More... | |
| #define | KVLC_PROPERTY_OVERWRITE 28 |
| #define | KVLC_PROPERTY_TIMEZONE 29 |
| (int) Timezone for absolute timestamps. More... | |
| #define | KVLC_PROPERTY_FULLY_QUALIFIED_NAMES 30 |
| #define | KVLC_PROPERTY_NUMBER_OF_DATA_DECIMALS 31 |
| (int) Number of data decimals (0-9). More... | |
| #define | KVLC_PROPERTY_COMPRESSION_LEVEL 32 |
| #define | KVLC_PROPERTY_SIGNAL_BASED 1001 |
| #define | KVLC_PROPERTY_SHOW_SIGNAL_SELECT 1002 |
| #define | KVLC_PROPERTY_ATTACHMENTS 1003 |
Typedefs | |
| typedef int | KvlcStatus |
| typedef void * | KvlcHandle |
| typedef uint64_t | time_uint64 |
| typedef int64_t | time_int64 |
| typedef int64_t | int64 |
| typedef uint64_t | uint64 |
Functions | |
| KvlcStatus | kvlcGetErrorText (KvlcStatus error, char *buffer, unsigned int buffer_size) |
| KvlcStatus | kvlcGetVersion (unsigned int *major, unsigned int *minor, unsigned int *build) |
| KvlcStatus | kvlcCreateConverter (KvlcHandle *handle, const char *filename, int format) |
| KvlcStatus | kvlcDeleteConverter (KvlcHandle handle) |
| KvlcStatus | kvlcEventCount (KvlcHandle handle, unsigned int *count) |
| KvlcStatus | kvlcEventCountEx (KvlcHandle handle, int64 *count) |
| KvlcStatus | kvlcConvertEvent (KvlcHandle handle) |
| KvlcStatus | kvlcSetInputFile (KvlcHandle handle, const char *filename, int format) |
| KvlcStatus | kvlcNextInputFile (KvlcHandle handle, const char *filename) |
| KvlcStatus | kvlcFeedSelectFormat (KvlcHandle handle, int format) |
| KvlcStatus | kvlcFeedLogEvent (KvlcHandle handle, void *event) |
| KvlcStatus | kvlcFeedNextFile (KvlcHandle handle) |
| KvlcStatus | kvlcIsOutputFilenameNew (KvlcHandle handle, int *updated) |
| KvlcStatus | kvlcGetOutputFilename (KvlcHandle handle, char *filename, int len) |
| KvlcStatus | kvlcGetWriterPropertyDefault (int format, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcSetProperty (KvlcHandle handle, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcGetProperty (KvlcHandle handle, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcIsOverrunActive (KvlcHandle handle, int *overrun) |
| KvlcStatus | kvlcResetOverrunActive (KvlcHandle handle) |
| KvlcStatus | kvlcIsDataTruncated (KvlcHandle handle, int *truncated) |
| KvlcStatus | kvlcResetDataTruncated (KvlcHandle handle) |
| KvlcStatus | kvlcAttachFile (KvlcHandle handle, const char *filename) |
| KvlcStatus | kvlcGetFirstWriterFormat (int *format) |
| KvlcStatus | kvlcGetNextWriterFormat (int currentFormat, int *nextFormat) |
| KvlcStatus | kvlcGetFirstReaderFormat (int *format) |
| KvlcStatus | kvlcGetNextReaderFormat (int currentFormat, int *nextFormat) |
| KvlcStatus | kvlcGetReaderName (int format, char *str, unsigned int len) |
| KvlcStatus | kvlcGetReaderExtension (int format, char *str, unsigned int len) |
| KvlcStatus | kvlcGetReaderDescription (int format, char *str, unsigned int len) |
| KvlcStatus | kvlcGetReaderPropertyDefault (int format, unsigned int property, void *buf, unsigned int len) |
| KvlcStatus | kvlcGetWriterName (int format, char *str, unsigned int len) |
| KvlcStatus | kvlcGetWriterExtension (int format, char *str, unsigned int len) |
| KvlcStatus | kvlcGetWriterDescription (int format, char *str, unsigned int len) |
| KvlcStatus | kvlcIsPropertySupported (int format, unsigned int property, int *supported) |
| KvlcStatus | kvlcAddDatabaseFile (KvlcHandle handle, const char *filename, unsigned int channelMask) |
| KvlcStatus | kvlcAddDatabase (KvlcHandle handle, KvaDbHnd dbHandle, unsigned int channelMask) |
| KvlcStatus | kvlcIsDlcMismatch (KvlcHandle handle, int *mismatch) |
| KvlcStatus | kvlcResetDlcMismatch (KvlcHandle handle) |
| KvlcStatus | kvlcGetDlcMismatchList (KvlcHandle handle, unsigned int *MsgIds, unsigned int *MsgDlc, unsigned int *MsgOccurance, unsigned int *length) |
Library for converting Kvaser Memorator log files.
| #define KVLC_FILE_FORMAT_CSV 4 |
Output file format.
| #define KVLC_FILE_FORMAT_CSV_SIGNAL 100 |
Output file format.
| #define KVLC_FILE_FORMAT_DEBUG 1000 |
Reserved for debug.
| #define KVLC_FILE_FORMAT_FAMOS 105 |
Output file format.
| #define KVLC_FILE_FORMAT_FAMOS_XCP 201 |
Not supported.
| #define KVLC_FILE_FORMAT_J1587 103 |
Output file format.
| #define KVLC_FILE_FORMAT_J1587_ALT 104 |
Obsolete.
| #define KVLC_FILE_FORMAT_KME24 1 |
Input and output file format.
| #define KVLC_FILE_FORMAT_KME25 2 |
Input and output file format.
| #define KVLC_FILE_FORMAT_KME40 7 |
Input and output file format.
| #define KVLC_FILE_FORMAT_KME50 9 |
Input and output file format.
| #define KVLC_FILE_FORMAT_MATLAB 102 |
Output file format.
| #define KVLC_FILE_FORMAT_MDF 101 |
Input and output file format.
| #define KVLC_FILE_FORMAT_MDF_4X 107 |
Output file format.
| #define KVLC_FILE_FORMAT_MDF_4X_SIGNAL 108 |
Output file format.
| #define KVLC_FILE_FORMAT_MDF_SIGNAL 106 |
Output file format.
| #define KVLC_FILE_FORMAT_MEMO_LOG 6 |
Input (internal device logfile format).
| #define KVLC_FILE_FORMAT_PLAIN_ASC 5 |
Input and output file format.
| #define KVLC_FILE_FORMAT_VECTOR_ASC 3 |
Input and output file format.
| #define KVLC_FILE_FORMAT_VECTOR_BLF 8 |
Output file format.
| #define KVLC_FILE_FORMAT_VECTOR_BLF_FD 109 |
Input and output file format.
| #define KVLC_FILE_FORMAT_XCP 200 |
Not supported.
| #define KVLC_PROPERTY_ATTACHMENTS 1003 |
Can attach files to converted data. Use kvlcAttachFile() to add a file. Used only with kvlcIsPropertySupported().
| #define KVLC_PROPERTY_CALENDAR_TIME_STAMPS 7 |
(int) Write calendar time stamps.
| #define KVLC_PROPERTY_CHANNEL_MASK 5 |
Bitmask of the channels that should be used during conversion.
Type: unsigned int
| #define KVLC_PROPERTY_COMPRESSION_LEVEL 32 |
ZLIB compression level for writers that use ZLIB for compression. [-1, 9].
Type: int
| #define KVLC_PROPERTY_CREATION_DATE 27 |
(time_int64) File creation date/time as seconds in standard UNIX format. Used in file headers if not zero.
| #define KVLC_PROPERTY_CROP_PRETRIGGER 22 |
Crop pre-triggers.
Type: int
| #define KVLC_PROPERTY_DATA_IN_HEX 12 |
(int) Write data in hexadecimal format.
| #define KVLC_PROPERTY_DECIMAL_CHAR 10 |
(char) Use token as decimal separator.
| #define KVLC_PROPERTY_ENUM_VALUES 23 |
(int) Replace integer values in signals with strings from database.
| #define KVLC_PROPERTY_FILL_BLANKS 15 |
(int) Propagate values down to next row in csv-files.
| #define KVLC_PROPERTY_FIRST_TRIGGER 2 |
Use first trigger as time reference.
Type: int
| #define KVLC_PROPERTY_FULLY_QUALIFIED_NAMES 30 |
Write fully qualified names.
Type: int
| #define KVLC_PROPERTY_HLP_J1939 6 |
(int) Interpret events as J1939.
| #define KVLC_PROPERTY_ID_IN_HEX 11 |
(int) Write id in hexadecimal format.
| #define KVLC_PROPERTY_ISO8601_DECIMALS 17 |
(int) Number of time decimals (0-9) to print in the calendar timestamps using ISO8601.
| #define KVLC_PROPERTY_LIMIT_DATA_BYTES 26 |
Number of data bytes that a converter will write.
Type: int
| #define KVLC_PROPERTY_MERGE_LINES 18 |
(int) Merge two lines if their signal values are equal.
| #define KVLC_PROPERTY_NAME_MANGLING 14 |
(int) Make signal names safe for use in Matlab.
| #define KVLC_PROPERTY_NUMBER_OF_DATA_DECIMALS 31 |
(int) Number of data decimals (0-9).
| #define KVLC_PROPERTY_NUMBER_OF_TIME_DECIMALS 13 |
(int) Number of time decimals (0-9).
| #define KVLC_PROPERTY_OFFSET 4 |
Time reference offset.
Type: time_int64
| #define KVLC_PROPERTY_OVERWRITE 28 |
Overwrite existing output files.
Type: int
| #define KVLC_PROPERTY_RESAMPLE_COLUMN 19 |
(int) Only print a line when the given column has been accessed.
| #define KVLC_PROPERTY_SEPARATOR_CHAR 9 |
(char) Use token as separator.
| #define KVLC_PROPERTY_SHOW_COUNTER 21 |
(int) Add a counter to the output.
| #define KVLC_PROPERTY_SHOW_SIGNAL_SELECT 1002 |
Requires a database. Used only with kvlcIsPropertySupported().
| #define KVLC_PROPERTY_SHOW_UNITS 16 |
(int) Show units on their own row.
| #define KVLC_PROPERTY_SIGNAL_BASED 1001 |
Writes signals and not data frames. Used only with kvlcIsPropertySupported().
| #define KVLC_PROPERTY_SIZE_LIMIT 24 |
(unsigned int) Maximum file size in megabytes before starting a new output file.
| #define KVLC_PROPERTY_START_OF_MEASUREMENT 1 |
Use start of measurement as time reference.
Type: int
| #define KVLC_PROPERTY_TIME_LIMIT 25 |
Maximum delta time in seconds between first and last event before starting a new output file.
Type: unsigned int
| #define KVLC_PROPERTY_TIMEZONE 29 |
(int) Timezone for absolute timestamps.
| #define KVLC_PROPERTY_USE_OFFSET 3 |
Use offset as time reference.
Type: int
| #define KVLC_PROPERTY_VERSION 20 |
(int) File format version.
| #define KVLC_PROPERTY_WRITE_HEADER 8 |
(int) Write informational header.
| #define kvlcEOF ((KvlcStatus)-3) |
End of input file reached.
| #define kvlcERR_BUFFER_SIZE ((KvlcStatus)-15) |
The supplied buffer is too small to hold the result.
| #define kvlcERR_CONVERTING ((KvlcStatus)-14) |
Call failed since conversion is running.
| #define kvlcERR_FILE_ERROR ((KvlcStatus)-5) |
File I/O error.
| #define kvlcERR_FILE_EXISTS ((KvlcStatus)-6) |
Output file already exists.
| #define kvlcERR_FILE_TOO_LARGE ((KvlcStatus)-10) |
File size too large for specified format.
| #define kvlcERR_INTERNAL_ERROR ((KvlcStatus)-7) |
Unhandled internal error.
| #define kvlcERR_INVALID_LOG_EVENT ((KvlcStatus)-30) |
Event is unknown to converter.
| #define kvlcERR_MIXED_ENDIANNESS ((KvlcStatus)-33) |
Wrong data type in MDF.
| #define kvlcERR_NO_FREE_HANDLES ((KvlcStatus)-12) |
Too many open KvlcHandle handles.
| #define kvlcERR_NO_INPUT_SELECTED ((KvlcStatus)-13) |
Missing call to kvlcSetInputFile or kvlcFeedSelectFormat.
| #define kvlcERR_NO_TIME_REFERENCE ((KvlcStatus)-31) |
Required timestamp missing.
| #define kvlcERR_NOT_IMPLEMENTED ((KvlcStatus)-4) |
Not implemented.
| #define kvlcERR_NULL_POINTER ((KvlcStatus)-8) |
Unexpected null pointer.
| #define kvlcERR_PARAM ((KvlcStatus)-2) |
Error in supplied parameters.
| #define kvlcERR_RESULT_TOO_BIG ((KvlcStatus)-34) |
Result is too big for an out-parameter.
| #define kvlcERR_TIME_DECREASING ((KvlcStatus)-32) |
Decreasing time between files.
| #define kvlcERR_TYPE_MISMATCH ((KvlcStatus)-11) |
Supplied parameter has incorrect type.
| #define kvlcERR_UNSUPPORTED_VERSION ((KvlcStatus)-35) |
Unsupported version of file format.
| #define kvlcFail ((KvlcStatus)-1) |
Generic error.
| #define kvlcOK ((KvlcStatus) 0) |
OK.
| #define WINAPI |
| typedef int64_t int64 |
Type definitions for converter
| typedef void* KvlcHandle |
Type definitions for converter
| typedef int KvlcStatus |
Type definitions for converter
| typedef int64_t time_int64 |
Type definitions for converter
| typedef uint64_t time_uint64 |
Type definitions for converter
| typedef uint64_t uint64 |
Type definitions for converter