112 #endif // __cplusplus 126 #pragma pack(push, 1) 152 unsigned char data[64];
203 unsigned char raw[128];
217 #define KVLC_LOG_TYPE_INVALID 0 218 #define KVLC_LOG_TYPE_CLOCK 1 219 #define KVLC_LOG_TYPE_MSG 2 220 #define KVLC_LOG_TYPE_TRIGGER 3 221 #define KVLC_LOG_TYPE_VERSION 4 222 #define KVLC_LOG_TYPE_LINMSG 5 233 #define KVLC_DIR_RX 0x01 234 #define KVLC_DIR_TX 0x02 240 #define KVLC_DEFAULT_SCAN_EVENT_COUNT 10000u 251 #define kvlcOK ((KvlcStatus)0) 252 #define kvlcFail ((KvlcStatus) - 1) 253 #define kvlcERR_PARAM ((KvlcStatus) - 2) 254 #define kvlcEOF ((KvlcStatus) - 3) 255 #define kvlcERR_NOT_IMPLEMENTED ((KvlcStatus) - 4) 256 #define kvlcERR_FILE_ERROR ((KvlcStatus) - 5) 257 #define kvlcERR_FILE_EXISTS ((KvlcStatus) - 6) 258 #define kvlcERR_INTERNAL_ERROR ((KvlcStatus) - 7) 259 #define kvlcERR_NULL_POINTER ((KvlcStatus) - 8) 260 #define kvlcERR_FILE_TOO_LARGE ((KvlcStatus) - 10) 261 #define kvlcERR_TYPE_MISMATCH ((KvlcStatus) - 11) 262 #define kvlcERR_NO_FREE_HANDLES ((KvlcStatus) - 12) 263 #define kvlcERR_NO_INPUT_SELECTED ((KvlcStatus) - 13) 264 #define kvlcERR_CONVERTING ((KvlcStatus) - 14) 265 #define kvlcERR_BUFFER_SIZE ((KvlcStatus) - 15) 267 #define kvlcERR_INVALID_LOG_EVENT ((KvlcStatus) - 30) 268 #define kvlcERR_NO_TIME_REFERENCE ((KvlcStatus) - 31) 269 #define kvlcERR_TIME_DECREASING ((KvlcStatus) - 32) 270 #define kvlcERR_MIXED_ENDIANNESS ((KvlcStatus) - 33) 271 #define kvlcERR_RESULT_TOO_BIG ((KvlcStatus) - 34) 272 #define kvlcERR_UNSUPPORTED_VERSION ((KvlcStatus) - 35) 287 #define KVLC_FILE_FORMAT_KME24 1 288 #define KVLC_FILE_FORMAT_KME25 2 289 #define KVLC_FILE_FORMAT_VECTOR_ASC 3 290 #define KVLC_FILE_FORMAT_CSV 4 291 #define KVLC_FILE_FORMAT_PLAIN_ASC 5 292 #define KVLC_FILE_FORMAT_MEMO_LOG 6 293 #define KVLC_FILE_FORMAT_KME40 7 294 #define KVLC_FILE_FORMAT_VECTOR_BLF 8 295 #define KVLC_FILE_FORMAT_KME50 9 296 #define KVLC_FILE_FORMAT_KME60 10 298 #define KVLC_FILE_FORMAT_CSV_SIGNAL 100 299 #define KVLC_FILE_FORMAT_MDF 101 300 #define KVLC_FILE_FORMAT_MATLAB 102 301 #define KVLC_FILE_FORMAT_J1587 103 302 #define KVLC_FILE_FORMAT_J1587_ALT 104 303 #define KVLC_FILE_FORMAT_FAMOS 105 304 #define KVLC_FILE_FORMAT_MDF_SIGNAL 106 305 #define KVLC_FILE_FORMAT_MDF_4X 107 306 #define KVLC_FILE_FORMAT_MDF_4X_SIGNAL 108 307 #define KVLC_FILE_FORMAT_VECTOR_BLF_FD 109 308 #define KVLC_FILE_FORMAT_DIADEM 110 309 #define KVLC_FILE_FORMAT_RPCIII 111 311 #define KVLC_FILE_FORMAT_XCP 200 312 #define KVLC_FILE_FORMAT_FAMOS_XCP 201 314 #define KVLC_FILE_FORMAT_DEBUG 1000 332 #define KVLC_PROPERTY_START_OF_MEASUREMENT 1 339 #define KVLC_PROPERTY_FIRST_TRIGGER 2 346 #define KVLC_PROPERTY_USE_OFFSET 3 352 #define KVLC_PROPERTY_OFFSET 4 358 #define KVLC_PROPERTY_CHANNEL_MASK 5 360 #define KVLC_PROPERTY_HLP_J1939 6 361 #define KVLC_PROPERTY_CALENDAR_TIME_STAMPS 7 362 #define KVLC_PROPERTY_WRITE_HEADER 8 363 #define KVLC_PROPERTY_SEPARATOR_CHAR 9 364 #define KVLC_PROPERTY_DECIMAL_CHAR 10 366 #define KVLC_PROPERTY_ID_IN_HEX 11 367 #define KVLC_PROPERTY_DATA_IN_HEX 12 368 #define KVLC_PROPERTY_NUMBER_OF_TIME_DECIMALS 13 369 #define KVLC_PROPERTY_NAME_MANGLING 14 370 #define KVLC_PROPERTY_FILL_BLANKS 15 372 #define KVLC_PROPERTY_SHOW_UNITS 16 373 #define KVLC_PROPERTY_ISO8601_DECIMALS 17 374 #define KVLC_PROPERTY_MERGE_LINES 18 375 #define KVLC_PROPERTY_RESAMPLE_COLUMN 19 376 #define KVLC_PROPERTY_VERSION 20 378 #define KVLC_PROPERTY_SHOW_COUNTER 21 384 #define KVLC_PROPERTY_CROP_PRETRIGGER 22 385 #define KVLC_PROPERTY_ENUM_VALUES 23 386 #define KVLC_PROPERTY_SIZE_LIMIT 24 393 #define KVLC_PROPERTY_TIME_LIMIT 25 400 #define KVLC_PROPERTY_LIMIT_DATA_BYTES 26 401 #define KVLC_PROPERTY_CREATION_DATE 27 408 #define KVLC_PROPERTY_OVERWRITE 28 409 #define KVLC_PROPERTY_TIMEZONE 29 416 #define KVLC_PROPERTY_FULLY_QUALIFIED_NAMES 30 418 #define KVLC_PROPERTY_NUMBER_OF_DATA_DECIMALS 31 432 #define KVLC_PROPERTY_COMPRESSION_LEVEL 32 441 #define KVLC_PROPERTY_SAMPLE_AND_HOLD_TIMESTEP 33 446 #define KVLC_PROPERTY_SIGNAL_BASED 1001 451 #define KVLC_PROPERTY_SHOW_SIGNAL_SELECT 1002 456 #define KVLC_PROPERTY_ATTACHMENTS 1003 461 #define KVLC_PROPERTY_LIN_FRAMES 1004 500 KvlcStatus
WINAPI kvlcGetVersion(
unsigned int *major,
unsigned int *minor,
unsigned int *build);
604 unsigned int maxEvents);
903 KvlcStatus
WINAPI kvlcSetProperty(KvlcHandle handle,
unsigned int property,
void *buf,
unsigned int len);
927 KvlcStatus
WINAPI kvlcGetProperty(KvlcHandle handle,
unsigned int property,
void *buf,
unsigned int len);
1372 KvlcStatus
WINAPI kvlcGetDlcMismatchList(KvlcHandle handle,
unsigned int *MsgIds,
unsigned int *MsgDlc,
unsigned int *MsgOccurance,
unsigned int *length);
KvlcStatus kvlcNextInputFile(KvlcHandle handle, const char *filename)
KvlcStatus kvlcResetDlcMismatch(KvlcHandle handle)
unsigned int canChannelMask
Bitmask of channels observed with CAN/CAN FD traffic; bit N set means channel N is a CAN channel...
Definition: kvlclib.h:137
KvlcStatus kvlcCreateReader(KvlcHandle *handle, const char *filename, int format)
KvlcStatus kvlcGetReaderDescription(int format, char *str, unsigned int len)
kvlcLogMsgEx msg
A CAN/LIN message.
Definition: kvlclib.h:199
The union of events used by kvlcReadNextEvent() and kvlcReadFirstEventAtOrAfter().
Definition: kvlclib.h:194
unsigned int serialNumber
Definition: kvlclib.h:186
KvlcStatus kvlcReadFirstEventAtOrAfter(KvlcHandle handle, time_int64 timestamp, kvlcLogEventEx *e)
KvlcStatus kvlcGetNextWriterFormat(int currentFormat, int *nextFormat)
KvlcStatus kvlcGetReaderName(int format, char *str, unsigned int len)
kvlcLogVersionEx ver
A version message.
Definition: kvlclib.h:202
int preTrigger
Pretrigger time in milliseconds.
Definition: kvlclib.h:170
KvlcStatus kvlcGetNextReaderFormat(int currentFormat, int *nextFormat)
time_int64 startOfMeasurement
Start of measurement (nanoseconds since 1 Jan 1970); 0 if not yet available.
Definition: kvlclib.h:135
KvlcStatus kvlcIsOverrunActive(KvlcHandle handle, int *overrun)
KvlcStatus kvlcSetProperty(KvlcHandle handle, unsigned int property, void *buf, unsigned int len)
Definitions for the Database API.
Information about an open log file reader.
Definition: kvlclib.h:131
KvlcStatus kvlcGetReaderExtension(int format, char *str, unsigned int len)
KvlcStatus kvlcIsOutputFilenameNew(KvlcHandle handle, int *updated)
KvlcStatus kvlcAddDatabaseFile(KvlcHandle handle, const char *filename, unsigned int channelMask)
unsigned int fwMinor
Definition: kvlclib.h:184
KvlcStatus kvlcDeleteConverter(KvlcHandle handle)
KvlcStatus kvlcEventCount(KvlcHandle handle, unsigned int *count)
KvlcStatus kvlcEventCountEx(KvlcHandle handle, int64 *count)
unsigned int eanHi
Definition: kvlclib.h:187
unsigned int channelMask
Bitmask of channels observed during scan; bit N set means channel N was seen.
Definition: kvlclib.h:136
KvlcStatus kvlcAddDatabase(KvlcHandle handle, KvaDbHnd dbHandle, unsigned int channelMask)
KvlcStatus kvlcGetWriterName(int format, char *str, unsigned int len)
unsigned int fwMajor
Definition: kvlclib.h:183
void * KvlcHandle
Definition: kvlclib.h:119
KvlcStatus kvlcGetFirstWriterFormat(int *format)
KvlcStatus kvlcIsPropertySupported(int format, unsigned int property, int *supported)
unsigned int fwBuild
Definition: kvlclib.h:185
unsigned int eanLo
Definition: kvlclib.h:188
KvlcStatus kvlcGetProperty(KvlcHandle handle, unsigned int property, void *buf, unsigned int len)
unsigned int calendarTime
RTC date, seconds since 1970-01-01T00:00:00+00:00 (UTC)
Definition: kvlclib.h:160
KvlcStatus kvlcFeedSelectFormat(KvlcHandle handle, int format)
unsigned int lioMinor
Definition: kvlclib.h:182
unsigned int id
The message identifier.
Definition: kvlclib.h:147
unsigned int lioMajor
Definition: kvlclib.h:181
A trigger message.
Definition: kvlclib.h:167
int64_t time_int64
Definition: kvlclib.h:121
uint64_t time_uint64
Definition: kvlclib.h:120
KvlcStatus kvlcCreateConverter(KvlcHandle *handle, const char *filename, int format)
uint64_t uint64
Definition: kvlclib.h:123
KvlcStatus kvlcReadNextEvent(KvlcHandle handle, kvlcLogEventEx *e)
KvlcStatus kvlcGetWriterPropertyDefault(int format, unsigned int property, void *buf, unsigned int len)
time_int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvlclib.h:161
unsigned int trigMask
Bitmask with all active triggers.
Definition: kvlclib.h:172
unsigned int type
LOG_TYPE_xxx, Event types in log
Definition: kvlclib.h:196
KvlcStatus kvlcConvertEvent(KvlcHandle handle)
A version message.
Definition: kvlclib.h:179
A RTC clock message.
Definition: kvlclib.h:158
KvlcStatus kvlcGetFirstReaderFormat(int *format)
KvlcStatus kvlcGetDlcMismatchList(KvlcHandle handle, unsigned int *MsgIds, unsigned int *MsgDlc, unsigned int *MsgOccurance, unsigned int *length)
KvlcStatus kvlcResetDataTruncated(KvlcHandle handle)
KvlcStatus kvlcResetOverrunActive(KvlcHandle handle)
KvlcStatus kvlcGetOutputFilename(KvlcHandle handle, char *filename, int len)
#define WINAPI
Definition: kvlclib.h:105
KvlcStatus kvlcGetWriterDescription(int format, char *str, unsigned int len)
int KvlcStatus
Definition: kvlclib.h:118
kvlcLogRtcClockEx rtc
An RTC message.
Definition: kvlclib.h:200
time_int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvlclib.h:173
KvlcStatus kvlcDeleteReader(KvlcHandle handle)
KvlcStatus kvlcFeedLogEvent(KvlcHandle handle, void *event)
int postTrigger
Posttrigger time in milliseconds.
Definition: kvlclib.h:171
void * KvaDbHnd
Database handle.
Definition: kvaDbLib.h:311
unsigned int directionMask
Bitmask of directions observed during scan; use DIR_xxx.
Definition: kvlclib.h:139
KvlcStatus kvlcIsDlcMismatch(KvlcHandle handle, int *mismatch)
KvlcStatus kvlcIsDataTruncated(KvlcHandle handle, int *truncated)
unsigned int linChannelMask
Bitmask of channels observed with LIN traffic; bit N set means channel N is a LIN channel...
Definition: kvlclib.h:138
unsigned int channel
The device channel on which the message arrived, 0,1,...
Definition: kvlclib.h:149
KvlcStatus kvlcAttachFile(KvlcHandle handle, const char *filename)
int64_t int64
Definition: kvlclib.h:122
KvlcStatus kvlcSetInputFile(KvlcHandle handle, const char *filename, int format)
KvlcStatus kvlcGetVersion(unsigned int *major, unsigned int *minor, unsigned int *build)
KvlcStatus kvlcGetWriterExtension(int format, char *str, unsigned int len)
KvlcStatus kvlcFeedNextFile(KvlcHandle handle)
unsigned int dlc
The length of the message.
Definition: kvlclib.h:150
int64 eventCount
Estimated number of events in the file.
Definition: kvlclib.h:134
A CAN/LIN message.
Definition: kvlclib.h:145
KvlcStatus kvlcGetErrorText(KvlcStatus error, char *buffer, unsigned int buffer_size)
kvlcLogTriggerEx trig
A trigger message.
Definition: kvlclib.h:201
KvlcStatus kvlcReadInfo(KvlcHandle handle, kvlcReaderInfo *info, unsigned int maxEvents)
time_int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvlclib.h:148
KvlcStatus kvlcGetReaderPropertyDefault(int format, unsigned int property, void *buf, unsigned int len)
int64 fileSize
Size of the input file in bytes.
Definition: kvlclib.h:133
int type
The type of trigger TRIGVAR_TYPE_xxx.
Definition: kvlclib.h:169
unsigned int flags
Message flags canMSG_xxx or LIN_xxx.
Definition: kvlclib.h:151