71 #define kvmDEVICE_MHYDRA 0 72 #define kvmDEVICE_MHYDRA_EXT 1 83 #define kvmLDF_MAJOR_CAN 3 84 #define kvmLDF_MAJOR_CAN64 5 90 typedef HANDLE kmeFileHandle; 100 #define kvmFS_FAT16 0 101 #define kvmFS_FAT32 1 112 #define kvmFILE_KME24 0 113 #define kvmFILE_KME25 1 114 #define kvmFILE_KME40 2 115 #define kvmFILE_KME50 3 116 #define kvmFILE_KME60 4 122 typedef HANDLE kvmHandle; 183 #define kvmLogFileType_ERR 0 184 #define kvmLogFileType_ALL 1 196 #define kvm_SWINFO_KVMLIB 1 197 #define kvm_SWINFO_DRIVER 2 198 #define kvm_SWINFO_FIRMWARE 3 199 #define kvm_SWINFO_DRIVER_PRODUCT 4 200 #define kvm_SWINFO_CONFIG_VERSION_NEEDED 5 201 #define kvm_SWINFO_CPLD_VERSION 6 204 #include <pshpack1.h> 216 # define canMSG_RTR 0x0001 217 # define canMSG_STD 0x0002 218 # define canMSG_EXT 0x0004 219 # define canMSG_ERROR_FRAME 0x0020 220 # define canMSG_TXACK 0x0040 221 # define canMSG_TXRQ 0x0080 222 # define canMSGERR_OVERRUN 0x0600 223 # define canFDMSG_EDL 0x010000 224 # define canFDMSG_FDF 0x010000 225 # define canFDMSG_BRS 0x020000 226 # define canFDMSG_ESI 0x040000 238 #define TRIGVAR_TYPE_MSG_ID 0 239 #define TRIGVAR_TYPE_MSG_DLC 1 240 #define TRIGVAR_TYPE_MSG_FLAG 2 241 #define TRIGVAR_TYPE_SIGVAL 3 242 #define TRIGVAR_TYPE_EXTERNAL 4 243 #define TRIGVAR_TYPE_TIMER 5 244 #define TRIGVAR_TYPE_DISK_FULL 6 245 #define TRIGVAR_TYPE_STARTUP 9 303 #define kvmLOG_TYPE_INVALID 0 304 #define kvmLOG_TYPE_CLOCK 1 305 #define kvmLOG_TYPE_MSG 2 306 #define kvmLOG_TYPE_TRIGGER 3 307 #define kvmLOG_TYPE_VERSION 4 831 unsigned int *flags);
901 size_t buflen,
size_t *actual_len);
kvmStatus kvmClose(kvmHandle h)
Unsupported version.
Definition: kvmlib.h:156
Error writing log file.
Definition: kvmlib.h:143
Disk full (data).
Definition: kvmlib.h:153
uint32 flags
Message flags canMSG_xxx.
Definition: kvmlib.h:256
uint32 eanLo
Definition: kvmlib.h:292
kmeFileHandle kvmKmeOpenFile(const char *filename, kvmStatus *status, int32 fileType)
kvmStatus kvmKmeCloseFile(kmeFileHandle h)
uint32 trigMask
Bitmask with all active triggers.
Definition: kvmlib.h:276
Queue is full.
Definition: kvmlib.h:147
File not found.
Definition: kvmlib.h:160
HANDLE kvmHandle
A handle to a Memorator or equivalent KMF file.
Definition: kvmlib.h:122
Configuration error.
Definition: kvmlib.h:168
uint16_t uint16
Definition: kvmlib.h:53
int32 postTrigger
Posttrigger time in milliseconds.
Definition: kvmlib.h:275
A RTC clock message.
Definition: kvmlib.h:263
No log message found.
Definition: kvmlib.h:142
kvmStatus kvmDeviceGetRTC(kvmHandle h, uint32 *t)
kvmStatus kvmKmeWriteEvent(kmeFileHandle h, kvmLogEventEx *e)
HANDLE kmeFileHandle
A handle to a KME file.
Definition: kvmlib.h:90
uint32 serialNumber
Definition: kvmlib.h:290
User abort.
Definition: kvmlib.h:166
kmeFileHandle kvmKmeCreateFile(const char *filename, kvmStatus *status, int32 fileType)
File system corrupt.
Definition: kvmlib.h:155
Error while reading log file.
Definition: kvmlib.h:146
OK!
Definition: kvmlib.h:137
Timeout.
Definition: kvmlib.h:163
kvmStatus kvmDeviceFormatDisk(kvmHandle h, int fileSystem, uint32 reserveSpace, uint32 dbaseSpace)
kvmStatus kvmKmfEraseDbaseFile(kvmHandle h)
Disk is write protected.
Definition: kvmlib.h:169
kvmStatus kvmKmeCountEventsEx(kmeFileHandle h, int64 *eventCount)
uint32 id
The message identifier.
Definition: kvmlib.h:252
Wrong disk type.
Definition: kvmlib.h:162
kvmStatus kvmKmfWriteConfig(kvmHandle h, void *buf, size_t buflen)
uint32 fwMinor
Definition: kvmlib.h:288
uint32 lioMinor
Definition: kvmlib.h:286
End of file found.
Definition: kvmlib.h:144
uint32 type
kvmLOG_TYPE_xxx, Event types in log
Definition: kvmlib.h:314
int8_t int8
Definition: kvmlib.h:50
kvmStatus kvmKmfReadConfig(kvmHandle h, void *buf, size_t buflen, size_t *actual_len)
File I/O error.
Definition: kvmlib.h:150
Disk not formatted.
Definition: kvmlib.h:161
uint32 fwMajor
Definition: kvmlib.h:287
kvmStatus kvmKmeScanFileType(const char *filename, int32 *fileType)
Illegal request.
Definition: kvmlib.h:159
The union of events used by kvmKmeReadEvent().
Definition: kvmlib.h:313
int16_t int16
Definition: kvmlib.h:52
uint32 channel
The device channel on which the message arrived, 0,1,...
Definition: kvmlib.h:254
kvmStatus kvmDeviceMountKmfEx(kvmHandle h, int *ldfMajor, int *ldfMinor)
uint32 dlc
The length of the message.
Definition: kvmlib.h:255
kvmStatus kvmGetErrorText(kvmStatus error, char *buf, size_t len)
int32 type
The type of trigger TRIGVAR_TYPE_xxx.
Definition: kvmlib.h:273
kvmStatus kvmDeviceMountKmf(kvmHandle h)
signed __int64 int64
Definition: kvlclib.h:65
CRC check failed.
Definition: kvmlib.h:148
uint32 lioMajor
Definition: kvmlib.h:285
Firmware error.
Definition: kvmlib.h:167
int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvmlib.h:253
int64_t int64
Definition: kvmlib.h:56
Generic error.
Definition: kvmlib.h:138
kvmStatus kvmKmfValidate(kvmHandle h)
Fatal error.
Definition: kvmlib.h:158
Disk full (directory).
Definition: kvmlib.h:152
Not implemented.
Definition: kvmlib.h:157
kvmStatus kvmKmeReadEvent(kmeFileHandle h, kvmLogEventEx *e)
Device occupied.
Definition: kvmlib.h:165
General disk error.
Definition: kvmlib.h:151
uint32_t uint32
Definition: kvmlib.h:55
uint32 fwBuild
Definition: kvmlib.h:289
A trigger message.
Definition: kvmlib.h:272
No disk found.
Definition: kvmlib.h:145
Device communication error.
Definition: kvmlib.h:164
kvmStatus
Definition: kvmlib.h:136
Sector unexpectadly erased.
Definition: kvmlib.h:149
Error in supplied parameters.
Definition: kvmlib.h:139
int32 preTrigger
Pretrigger time in milliseconds.
Definition: kvmlib.h:274
Can't find/open log file.
Definition: kvmlib.h:140
uint8_t uint8
Definition: kvmlib.h:51
int32_t int32
Definition: kvmlib.h:54
kvmStatus kvmKmfGetDbaseFile(kvmHandle h, char *path, char *filenamebuf, size_t buflen)
Result is too big for an out-parameter.
Definition: kvmlib.h:170
kvmStatus kvmDeviceSetRTC(kvmHandle h, uint32 t)
A version message.
Definition: kvmlib.h:283
kvmHandle kvmKmfOpenEx(const char *filename, kvmStatus *status, int32 deviceType, int *ldfMajor, int *ldfMinor)
uint32 calendarTime
RTC date, seconds since 1970-01-01T00:00:00+00:00 (UTC)
Definition: kvmlib.h:264
kvmHandle kvmKmfOpen(const char *filename, kvmStatus *status, int32 deviceType)
uint32 eanHi
Definition: kvmlib.h:291
kvmStatus kvmKmeCountEvents(kmeFileHandle h, uint32 *eventCount)
kvmHandle kvmDeviceOpen(int32 cardNr, kvmStatus *status, int32 deviceType)
Start time not found.
Definition: kvmlib.h:141
Unexpected sequence.
Definition: kvmlib.h:154
kvmStatus kvmKmfPutDbaseFile(kvmHandle h, char *filename)
A CAN message.
Definition: kvmlib.h:251
kvmStatus kvmGetVersion(int *major, int *minor, int *build)