13.07.2015 Views

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

VCI - Virtual CAN Interface - Ixxat

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Types and structures5 Types and structures5.1 <strong>VCI</strong>-specific data typesThe declarations of all <strong>VCI</strong>-specific data types and constants are located in the file.5.1.1 <strong>VCI</strong>IDThe data type describes a <strong>VCI</strong> locally unique ID. The data type has the followingstructure:typedef union{LUID AsLuid;INT64 AsInt64} <strong>VCI</strong>ID, *P<strong>VCI</strong>ID;• AsLuid:ID in the form of an LUID. The data type LUID is defined in Windows.• AsInt64:ID as a signed 64-bit integer.5.1.2 <strong>VCI</strong>DEVICEINFOThe structure describes the information on a <strong>CAN</strong> interface board. The structure isas follows:typedef struct _<strong>VCI</strong>DEVICEINFO{<strong>VCI</strong>ID VciObjectId;// unique <strong>VCI</strong> object identifierGUID DeviceClass; // device class identifierUINT8 DriverMajorVersion;UINT8 DriverMinorVersion;UINT16 DriverBuildVersion;// major driver version number// minor driver version number// build driver version numberUINT8 HardwareBranchVersion;// branch hardware version numberUINT8 HardwareMajorVersion; // major hardware version numberUINT8 HardwareMinorVersion; // minor hardware version numberUINT8 HardwareBuildVersion; // build hardware version numberunion _UniqueHardwareId{CHAR AsChar[16];GUID AsGuid;} UniqueHardwareId;CHAR Description [128];CHAR Manufacturer[126];// unique hardware identifier// device description (e.g: "PC-I04-PCI")// device manufacturer (e.g: "IXXAT")UINT16 DriverReleaseVersion; // release driver version number} <strong>VCI</strong>DEVICEINFO, *P<strong>VCI</strong>DEVICEINFO;89Copyright IXXAT Automation GmbH C-API Programming Manual, Version 1.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!