102 #define INVALID_HANDLE_VALUE NULL 128 #define kvmDEVICE_MHYDRA 0 129 #define kvmDEVICE_MHYDRA_EXT 1 140 #define kvmLDF_MAJOR_CAN 3 141 #define kvmLDF_MAJOR_CAN64 5 147 typedef HANDLE kmeFileHandle; 157 #define kvmFS_FAT16 0 158 #define kvmFS_FAT32 1 169 #define kvmFILE_KME24 0 170 #define kvmFILE_KME25 1 171 #define kvmFILE_KME40 2 172 #define kvmFILE_KME50 3 178 typedef HANDLE kvmHandle; 239 #define kvmLogFileType_ERR 0 240 #define kvmLogFileType_ALL 1 252 #define kvm_SWINFO_KVMLIB 1 253 #define kvm_SWINFO_DRIVER 2 254 #define kvm_SWINFO_FIRMWARE 3 255 #define kvm_SWINFO_DRIVER_PRODUCT 4 256 #define kvm_SWINFO_CONFIG_VERSION_NEEDED 5 257 #define kvm_SWINFO_CPLD_VERSION 6 260 #include <pshpack1.h> 272 # define canMSG_RTR 0x0001 273 # define canMSG_STD 0x0002 274 # define canMSG_EXT 0x0004 275 # define canMSG_ERROR_FRAME 0x0020 276 # define canMSG_TXACK 0x0040 277 # define canMSG_TXRQ 0x0080 278 # define canMSGERR_OVERRUN 0x0600 279 # define canFDMSG_EDL 0x010000 280 # define canFDMSG_FDF 0x010000 281 # define canFDMSG_BRS 0x020000 282 # define canFDMSG_ESI 0x040000 294 #define TRIGVAR_TYPE_MSG_ID 0 295 #define TRIGVAR_TYPE_MSG_DLC 1 296 #define TRIGVAR_TYPE_MSG_FLAG 2 297 #define TRIGVAR_TYPE_SIGVAL 3 298 #define TRIGVAR_TYPE_EXTERNAL 4 299 #define TRIGVAR_TYPE_TIMER 5 300 #define TRIGVAR_TYPE_DISK_FULL 6 301 #define TRIGVAR_TYPE_STARTUP 9 359 #define kvmLOG_TYPE_INVALID 0 360 #define kvmLOG_TYPE_CLOCK 1 361 #define kvmLOG_TYPE_MSG 2 362 #define kvmLOG_TYPE_TRIGGER 3 363 #define kvmLOG_TYPE_VERSION 4 887 unsigned int *flags);
957 size_t buflen,
size_t *actual_len);
kvmStatus kvmKmeCountEvents(kmeFileHandle h, uint32 *eventCount)
HANDLE kvmHandle
A handle to a Memorator or equivalent KMF file.
Definition: kvmlib.h:178
int32 postTrigger
Posttrigger time in milliseconds.
Definition: kvmlib.h:331
No log message found.
Definition: kvmlib.h:198
kvmStatus kvmKmeCloseFile(kmeFileHandle h)
void * HANDLE
Definition: kvmlib.h:103
uint32 fwBuild
Definition: kvmlib.h:345
uint32 calendarTime
RTC date, seconds since 1970-01-01T00:00:00+00:00 (UTC)
Definition: kvmlib.h:320
#define WINAPI
Definition: kvmlib.h:101
kvmStatus kvmDeviceFormatDisk(kvmHandle h, int fileSystem, uint32 reserveSpace, uint32 dbaseSpace)
Timeout.
Definition: kvmlib.h:219
kvmLogMsgEx msg
A CAN message.
Definition: kvmlib.h:372
kvmStatus
Definition: kvmlib.h:192
Configuration error.
Definition: kvmlib.h:224
Unexpected sequence.
Definition: kvmlib.h:210
kvmStatus kvmKmeScanFileType(const char *filename, int32 *fileType)
kvmHandle kvmDeviceOpen(int32 cardNr, kvmStatus *status, int32 deviceType)
Wrong disk type.
Definition: kvmlib.h:218
kvmHandle kvmKmfOpen(const char *filename, kvmStatus *status, int32 deviceType)
kvmLogVersionEx ver
A version message.
Definition: kvmlib.h:375
OK!
Definition: kvmlib.h:193
A RTC clock message.
Definition: kvmlib.h:319
kvmStatus kvmGetVersion(int *major, int *minor, int *build)
uint32 dlc
The length of the message.
Definition: kvmlib.h:311
int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvmlib.h:309
Sector unexpectadly erased.
Definition: kvmlib.h:205
Disk not formatted.
Definition: kvmlib.h:217
kvmStatus kvmKmfReadConfig(kvmHandle h, void *buf, size_t buflen, size_t *actual_len)
A CAN message.
Definition: kvmlib.h:307
Error in supplied parameters.
Definition: kvmlib.h:195
kvmStatus kvmDeviceMountKmf(kvmHandle h)
The union of events used by kvmKmeReadEvent().
Definition: kvmlib.h:369
CRC check failed.
Definition: kvmlib.h:204
kvmStatus kvmDeviceDiskStatus(kvmHandle h, int *present)
Result is too big for an out-parameter.
Definition: kvmlib.h:226
Device communication error.
Definition: kvmlib.h:220
General disk error.
Definition: kvmlib.h:207
uint8_t uint8
Definition: kvmlib.h:108
File I/O error.
Definition: kvmlib.h:206
Disk full (data).
Definition: kvmlib.h:209
File not found.
Definition: kvmlib.h:216
int8_t int8
Definition: kvmlib.h:107
A version message.
Definition: kvmlib.h:339
uint32 eanHi
Definition: kvmlib.h:347
kvmStatus kvmKmfEraseDbaseFile(kvmHandle h)
kvmStatus kvmClose(kvmHandle h)
kvmStatus kvmKmfPutDbaseFile(kvmHandle h, char *filename)
Firmware error.
Definition: kvmlib.h:223
Fatal error.
Definition: kvmlib.h:214
uint32 type
kvmLOG_TYPE_xxx, Event types in log
Definition: kvmlib.h:370
uint32 fwMinor
Definition: kvmlib.h:344
HANDLE kmeFileHandle
A handle to a KME file.
Definition: kvmlib.h:147
uint32 lioMinor
Definition: kvmlib.h:342
Illegal request.
Definition: kvmlib.h:215
uint16_t uint16
Definition: kvmlib.h:110
Unsupported version.
Definition: kvmlib.h:212
uint32 flags
Message flags canMSG_xxx.
Definition: kvmlib.h:312
kvmStatus kvmDeviceGetRTC(kvmHandle h, uint32 *t)
uint32 serialNumber
Definition: kvmlib.h:346
kvmHandle kvmKmfOpenEx(const char *filename, kvmStatus *status, int32 deviceType, int *ldfMajor, int *ldfMinor)
int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvmlib.h:333
No disk found.
Definition: kvmlib.h:201
Start time not found.
Definition: kvmlib.h:197
kvmStatus kvmKmeCountEventsEx(kmeFileHandle h, int64 *eventCount)
uint32_t uint32
Definition: kvmlib.h:112
int16_t int16
Definition: kvmlib.h:109
uint32 lioMajor
Definition: kvmlib.h:341
int64_t int64
Definition: kvmlib.h:113
kvmStatus kvmDeviceSetRTC(kvmHandle h, uint32 t)
End of file found.
Definition: kvmlib.h:200
int32 type
The type of trigger TRIGVAR_TYPE_xxx.
Definition: kvmlib.h:329
A trigger message.
Definition: kvmlib.h:328
kvmStatus kvmKmfGetDbaseFile(kvmHandle h, char *path, char *filenamebuf, size_t buflen)
Disk is write protected.
Definition: kvmlib.h:225
User abort.
Definition: kvmlib.h:222
kvmStatus kvmKmfValidate(kvmHandle h)
uint32 id
The message identifier.
Definition: kvmlib.h:308
uint32 trigMask
Bitmask with all active triggers.
Definition: kvmlib.h:332
uint32 fwMajor
Definition: kvmlib.h:343
int32_t int32
Definition: kvmlib.h:111
kmeFileHandle kvmKmeOpenFile(const char *filename, kvmStatus *status, int32 fileType)
Device occupied.
Definition: kvmlib.h:221
Error while reading log file.
Definition: kvmlib.h:202
int64_t int64
Definition: kvlclib.h:122
kvmStatus kvmDeviceMountKmfEx(kvmHandle h, int *ldfMajor, int *ldfMinor)
kvmLogTriggerEx trig
A trigger message.
Definition: kvmlib.h:374
Not implemented.
Definition: kvmlib.h:213
kvmStatus kvmKmfWriteConfig(kvmHandle h, void *buf, size_t buflen)
File system corrupt.
Definition: kvmlib.h:211
Queue is full.
Definition: kvmlib.h:203
Error writing log file.
Definition: kvmlib.h:199
uint32 channel
The device channel on which the message arrived, 0,1,...
Definition: kvmlib.h:310
int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvmlib.h:321
kvmStatus kvmKmeReadEvent(kmeFileHandle h, kvmLogEventEx *e)
Generic error.
Definition: kvmlib.h:194
int32 preTrigger
Pretrigger time in milliseconds.
Definition: kvmlib.h:330
kmeFileHandle kvmKmeCreateFile(const char *filename, kvmStatus *status, int32 fileType)
kvmStatus kvmGetErrorText(kvmStatus error, char *buf, size_t len)
kvmStatus kvmKmeWriteEvent(kmeFileHandle h, kvmLogEventEx *e)
kvmLogRtcClockEx rtc
An RTC message.
Definition: kvmlib.h:373
Can't find/open log file.
Definition: kvmlib.h:196
uint32 eanLo
Definition: kvmlib.h:348
Disk full (directory).
Definition: kvmlib.h:208