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 kvmKmeCountEvents(kmeFileHandle h, uint32 *eventCount)
HANDLE kvmHandle
A handle to a Memorator or equivalent KMF file.
Definition: kvmlib.h:122
No log message found.
Definition: kvmlib.h:142
uint32 id
The message identifier.
Definition: kvmlib.h:252
kvmStatus kvmKmeCloseFile(kmeFileHandle h)
int32 type
The type of trigger TRIGVAR_TYPE_xxx.
Definition: kvmlib.h:273
signed __int64 int64
Definition: kvlclib.h:65
kvmStatus kvmDeviceFormatDisk(kvmHandle h, int fileSystem, uint32 reserveSpace, uint32 dbaseSpace)
Timeout.
Definition: kvmlib.h:163
kvmStatus
Definition: kvmlib.h:136
Configuration error.
Definition: kvmlib.h:168
Unexpected sequence.
Definition: kvmlib.h:154
kvmStatus kvmKmeScanFileType(const char *filename, int32 *fileType)
kvmHandle kvmDeviceOpen(int32 cardNr, kvmStatus *status, int32 deviceType)
Wrong disk type.
Definition: kvmlib.h:162
kvmHandle kvmKmfOpen(const char *filename, kvmStatus *status, int32 deviceType)
OK!
Definition: kvmlib.h:137
kvmStatus kvmGetVersion(int *major, int *minor, int *build)
Sector unexpectadly erased.
Definition: kvmlib.h:149
uint32 fwBuild
Definition: kvmlib.h:289
Disk not formatted.
Definition: kvmlib.h:161
kvmStatus kvmKmfReadConfig(kvmHandle h, void *buf, size_t buflen, size_t *actual_len)
Error in supplied parameters.
Definition: kvmlib.h:139
kvmStatus kvmDeviceMountKmf(kvmHandle h)
CRC check failed.
Definition: kvmlib.h:148
uint32 lioMajor
Definition: kvmlib.h:285
kvmStatus kvmDeviceDiskStatus(kvmHandle h, int *present)
Result is too big for an out-parameter.
Definition: kvmlib.h:170
Device communication error.
Definition: kvmlib.h:164
uint32 serialNumber
Definition: kvmlib.h:290
uint32 trigMask
Bitmask with all active triggers.
Definition: kvmlib.h:276
uint32 eanLo
Definition: kvmlib.h:292
General disk error.
Definition: kvmlib.h:151
uint8_t uint8
Definition: kvmlib.h:51
A version message.
Definition: kvmlib.h:283
File I/O error.
Definition: kvmlib.h:150
Disk full (data).
Definition: kvmlib.h:153
File not found.
Definition: kvmlib.h:160
int8_t int8
Definition: kvmlib.h:50
int32 preTrigger
Pretrigger time in milliseconds.
Definition: kvmlib.h:274
kvmStatus kvmKmfEraseDbaseFile(kvmHandle h)
uint32 eanHi
Definition: kvmlib.h:291
kvmStatus kvmClose(kvmHandle h)
kvmStatus kvmKmfPutDbaseFile(kvmHandle h, char *filename)
Firmware error.
Definition: kvmlib.h:167
Fatal error.
Definition: kvmlib.h:158
int64 timeStamp
The timestamp in units of 1 nanosecond.
Definition: kvmlib.h:253
HANDLE kmeFileHandle
A handle to a KME file.
Definition: kvmlib.h:90
Illegal request.
Definition: kvmlib.h:159
uint16_t uint16
Definition: kvmlib.h:53
Unsupported version.
Definition: kvmlib.h:156
int32 postTrigger
Posttrigger time in milliseconds.
Definition: kvmlib.h:275
kvmStatus kvmDeviceGetRTC(kvmHandle h, uint32 *t)
uint32 dlc
The length of the message.
Definition: kvmlib.h:255
kvmHandle kvmKmfOpenEx(const char *filename, kvmStatus *status, int32 deviceType, int *ldfMajor, int *ldfMinor)
No disk found.
Definition: kvmlib.h:145
Start time not found.
Definition: kvmlib.h:141
A trigger message.
Definition: kvmlib.h:272
kvmStatus kvmKmeCountEventsEx(kmeFileHandle h, int64 *eventCount)
uint32 fwMajor
Definition: kvmlib.h:287
uint32_t uint32
Definition: kvmlib.h:55
int16_t int16
Definition: kvmlib.h:52
int64_t int64
Definition: kvmlib.h:56
kvmStatus kvmDeviceSetRTC(kvmHandle h, uint32 t)
End of file found.
Definition: kvmlib.h:144
kvmStatus kvmKmfGetDbaseFile(kvmHandle h, char *path, char *filenamebuf, size_t buflen)
Disk is write protected.
Definition: kvmlib.h:169
User abort.
Definition: kvmlib.h:166
kvmStatus kvmKmfValidate(kvmHandle h)
int32_t int32
Definition: kvmlib.h:54
kmeFileHandle kvmKmeOpenFile(const char *filename, kvmStatus *status, int32 fileType)
Device occupied.
Definition: kvmlib.h:165
A RTC clock message.
Definition: kvmlib.h:263
Error while reading log file.
Definition: kvmlib.h:146
kvmStatus kvmDeviceMountKmfEx(kvmHandle h, int *ldfMajor, int *ldfMinor)
uint32 fwMinor
Definition: kvmlib.h:288
uint32 lioMinor
Definition: kvmlib.h:286
A CAN message.
Definition: kvmlib.h:251
uint32 channel
The device channel on which the message arrived, 0,1,...
Definition: kvmlib.h:254
Not implemented.
Definition: kvmlib.h:157
kvmStatus kvmKmfWriteConfig(kvmHandle h, void *buf, size_t buflen)
File system corrupt.
Definition: kvmlib.h:155
uint32 flags
Message flags canMSG_xxx.
Definition: kvmlib.h:256
Queue is full.
Definition: kvmlib.h:147
Error writing log file.
Definition: kvmlib.h:143
kvmStatus kvmKmeReadEvent(kmeFileHandle h, kvmLogEventEx *e)
Generic error.
Definition: kvmlib.h:138
The union of events used by kvmKmeReadEvent().
Definition: kvmlib.h:313
uint32 calendarTime
RTC date, seconds since 1970-01-01T00:00:00+00:00 (UTC)
Definition: kvmlib.h:264
uint32 type
kvmLOG_TYPE_xxx, Event types in log
Definition: kvmlib.h:314
kmeFileHandle kvmKmeCreateFile(const char *filename, kvmStatus *status, int32 fileType)
kvmStatus kvmGetErrorText(kvmStatus error, char *buf, size_t len)
kvmStatus kvmKmeWriteEvent(kmeFileHandle h, kvmLogEventEx *e)
Can't find/open log file.
Definition: kvmlib.h:140
Disk full (directory).
Definition: kvmlib.h:152