Library for accessing Kvaser Memorator (2nd generation) devices. More...
#include <windows.h>
#include <stdint.h>
#include <stdio.h>
#include <pshpack1.h>
#include <poppack.h>
Go to the source code of this file.
Data Structures | |
struct | kvmLogMsgEx |
A CAN message. More... | |
struct | kvmLogRtcClockEx |
A RTC clock message. More... | |
struct | kvmLogTriggerEx |
A trigger message. More... | |
struct | kvmLogVersionEx |
A version message. More... | |
struct | kvmLogEventEx |
The union of events used by kvmKmeReadEvent(). More... | |
union | kvmLogEventEx.eventUnion |
Macros | |
kvmDEVICE_xxx | |
#define | kvmDEVICE_MHYDRA 0 |
Kvaser Memorator (2nd generation) More... | |
#define | kvmDEVICE_MHYDRA_EXT 1 |
Kvaser Memorator (2nd generation) with extended data capabilities. More... | |
kvmLDF_MAJOR_xxx | |
#define | kvmLDF_MAJOR_CAN 3 |
Used in Kvaser Memorator (2nd generation) More... | |
#define | kvmLDF_MAJOR_CAN64 5 |
Used in Kvaser Memorator (2nd generation) with extended data capabilities. More... | |
kvmFS_xxx | |
#define | kvmFS_FAT16 0 |
fat16 More... | |
#define | kvmFS_FAT32 1 |
fat32 More... | |
kvmFILE_xxx | |
#define | kvmFILE_KME24 0 |
Deprecated. More... | |
#define | kvmFILE_KME25 1 |
Deprecated. More... | |
#define | kvmFILE_KME40 2 |
Kvaser binary format (KME 4.0) More... | |
#define | kvmFILE_KME50 3 |
Kvaser binary format (KME 5.0) More... | |
#define | kvmFILE_KME60 4 |
Kvaser binary format (KME 6.0) (Experimental) More... | |
kvmLogFileType_xxx | |
#define | kvmLogFileType_ERR 0 |
a log file containing only error frames, and some frames before and after the error frame. More... | |
#define | kvmLogFileType_ALL 1 |
a log file with all frames. More... | |
kvm_SWINFO_xxx | |
Different types of version information that can be extracted using kvmDeviceGetSoftwareInfo() | |
#define | kvm_SWINFO_KVMLIB 1 |
Returns the version of kvmlib. More... | |
#define | kvm_SWINFO_DRIVER 2 |
Returns the used driver version information. More... | |
#define | kvm_SWINFO_FIRMWARE 3 |
Returns the device firmware version information. More... | |
#define | kvm_SWINFO_DRIVER_PRODUCT 4 |
Obsolete. Returns the product version information. More... | |
#define | kvm_SWINFO_CONFIG_VERSION_NEEDED 5 |
Returns the version of the binary format the device requires (param.lif). More... | |
#define | kvm_SWINFO_CPLD_VERSION 6 |
Obsolete. More... | |
TRIGVAR_TYPE_xxx | |
The following trigger types can be found in a kvmLogTriggerEx message type field. | |
#define | TRIGVAR_TYPE_MSG_ID 0 |
Message ID trigger. More... | |
#define | TRIGVAR_TYPE_MSG_DLC 1 |
Message DLC trigger. More... | |
#define | TRIGVAR_TYPE_MSG_FLAG 2 |
Message flag trigger. More... | |
#define | TRIGVAR_TYPE_SIGVAL 3 |
Signal value trigger. More... | |
#define | TRIGVAR_TYPE_EXTERNAL 4 |
External trigger. More... | |
#define | TRIGVAR_TYPE_TIMER 5 |
Timer trigger. More... | |
#define | TRIGVAR_TYPE_DISK_FULL 6 |
Disk is full trigger. More... | |
#define | TRIGVAR_TYPE_STARTUP 9 |
Startup trigger. More... | |
kvmLOG_TYPE_xxx | |
#define | kvmLOG_TYPE_INVALID 0 |
Invalid MEMOLOG type. More... | |
#define | kvmLOG_TYPE_CLOCK 1 |
The type used in kvmLogRtcClockEx. More... | |
#define | kvmLOG_TYPE_MSG 2 |
The type used in kvmLogMsgEx. More... | |
#define | kvmLOG_TYPE_TRIGGER 3 |
The type used in kvmLogTriggerEx. More... | |
#define | kvmLOG_TYPE_VERSION 4 |
The type used in kvmLogVersionEx. More... | |
Typedefs | |
typedef int8_t | int8 |
typedef uint8_t | uint8 |
typedef int16_t | int16 |
typedef uint16_t | uint16 |
typedef int32_t | int32 |
typedef uint32_t | uint32 |
typedef int64_t | int64 |
typedef HANDLE | kmeFileHandle |
A handle to a KME file. More... | |
typedef HANDLE | kvmHandle |
A handle to a Memorator or equivalent KMF file. More... | |
Enumerations | |
kvmStatus | |
enum | kvmStatus { kvmOK = 0, kvmFail = -1, kvmERR_PARAM = -3, kvmERR_LOGFILEOPEN = -8, kvmERR_NOSTARTTIME = -9, kvmERR_NOLOGMSG = -10, kvmERR_LOGFILEWRITE = -11, kvmEOF = -12, kvmERR_NO_DISK = -13, kvmERR_LOGFILEREAD = -14, kvmERR_QUEUE_FULL = -20, kvmERR_CRC_ERROR = -21, kvmERR_SECTOR_ERASED = -22, kvmERR_FILE_ERROR = -23, kvmERR_DISK_ERROR = -24, kvmERR_DISKFULL_DIR = -25, kvmERR_DISKFULL_DATA = -26, kvmERR_SEQ_ERROR = -27, kvmERR_FILE_SYSTEM_CORRUPT = -28, kvmERR_UNSUPPORTED_VERSION = -29, kvmERR_NOT_IMPLEMENTED = -30, kvmERR_FATAL_ERROR = -31, kvmERR_ILLEGAL_REQUEST = -32, kvmERR_FILE_NOT_FOUND = -33, kvmERR_NOT_FORMATTED = -34, kvmERR_WRONG_DISK_TYPE = -35, kvmERR_TIMEOUT = -36, kvmERR_DEVICE_COMM_ERROR = -37, kvmERR_OCCUPIED = -38, kvmERR_USER_CANCEL = -39, kvmERR_FIRMWARE = -40, kvmERR_CONFIG_ERROR = -41, kvmERR_WRITE_PROT = -42, kvmERR_RESULT_TOO_BIG = -43 } |
Library for accessing Kvaser Memorator (2nd generation) devices.
This library is used to extract log data, initialize disk, read and write configuration to a device, handle on device databases and more.
struct kvmLogMsgEx |
A CAN message.
Data Fields | ||
---|---|---|
uint32 | channel | The device channel on which the message arrived, 0,1,... |
uint8 | data[64] | Message data (64 bytes) |
uint32 | dlc | The length of the message. |
uint32 | flags | Message flags canMSG_xxx. |
uint32 | id | The message identifier. |
int64 | timeStamp | The timestamp in units of 1 nanosecond. |
struct kvmLogRtcClockEx |
struct kvmLogTriggerEx |
struct kvmLogVersionEx |
struct kvmLogEventEx |
The union of events used by kvmKmeReadEvent().
Data Fields | ||
---|---|---|
union kvmLogEventEx | eventUnion | |
uint32 | type | kvmLOG_TYPE_xxx, Event types in log |
union kvmLogEventEx.eventUnion |
Data Fields | ||
---|---|---|
kvmLogMsgEx | msg | A CAN message. |
uint8 | raw[128] | Raw data in a array. |
kvmLogRtcClockEx | rtc | An RTC message. |
kvmLogTriggerEx | trig | A trigger message. |
kvmLogVersionEx | ver | A version message. |
#define kvm_SWINFO_CONFIG_VERSION_NEEDED 5 |
Returns the version of the binary format the device requires (param.lif).
#define kvm_SWINFO_CPLD_VERSION 6 |
Obsolete.
#define kvm_SWINFO_DRIVER 2 |
Returns the used driver version information.
#define kvm_SWINFO_DRIVER_PRODUCT 4 |
Obsolete. Returns the product version information.
#define kvm_SWINFO_FIRMWARE 3 |
Returns the device firmware version information.
#define kvm_SWINFO_KVMLIB 1 |
Returns the version of kvmlib.
#define kvmDEVICE_MHYDRA 0 |
Kvaser Memorator (2nd generation)
#define kvmDEVICE_MHYDRA_EXT 1 |
Kvaser Memorator (2nd generation) with extended data capabilities.
#define kvmFILE_KME24 0 |
Deprecated.
#define kvmFILE_KME25 1 |
Deprecated.
#define kvmFILE_KME40 2 |
Kvaser binary format (KME 4.0)
#define kvmFILE_KME50 3 |
Kvaser binary format (KME 5.0)
#define kvmFILE_KME60 4 |
Kvaser binary format (KME 6.0) (Experimental)
#define kvmFS_FAT16 0 |
fat16
#define kvmFS_FAT32 1 |
fat32
#define kvmLDF_MAJOR_CAN 3 |
Used in Kvaser Memorator (2nd generation)
#define kvmLDF_MAJOR_CAN64 5 |
Used in Kvaser Memorator (2nd generation) with extended data capabilities.
#define kvmLOG_TYPE_CLOCK 1 |
The type used in kvmLogRtcClockEx.
#define kvmLOG_TYPE_INVALID 0 |
Invalid MEMOLOG type.
#define kvmLOG_TYPE_MSG 2 |
The type used in kvmLogMsgEx.
#define kvmLOG_TYPE_TRIGGER 3 |
The type used in kvmLogTriggerEx.
#define kvmLOG_TYPE_VERSION 4 |
The type used in kvmLogVersionEx.
#define kvmLogFileType_ALL 1 |
a log file with all frames.
#define kvmLogFileType_ERR 0 |
a log file containing only error frames, and some frames before and after the error frame.
#define TRIGVAR_TYPE_DISK_FULL 6 |
Disk is full trigger.
#define TRIGVAR_TYPE_EXTERNAL 4 |
External trigger.
#define TRIGVAR_TYPE_MSG_DLC 1 |
Message DLC trigger.
#define TRIGVAR_TYPE_MSG_FLAG 2 |
Message flag trigger.
#define TRIGVAR_TYPE_MSG_ID 0 |
Message ID trigger.
#define TRIGVAR_TYPE_SIGVAL 3 |
Signal value trigger.
#define TRIGVAR_TYPE_STARTUP 9 |
Startup trigger.
#define TRIGVAR_TYPE_TIMER 5 |
Timer trigger.
typedef int16_t int16 |
typedef int32_t int32 |
typedef int64_t int64 |
typedef int8_t int8 |
typedef HANDLE kmeFileHandle |
A handle to a KME file.
typedef HANDLE kvmHandle |
A handle to a Memorator or equivalent KMF file.
typedef uint16_t uint16 |
typedef uint32_t uint32 |
typedef uint8_t uint8 |
enum kvmStatus |