Einzelnen Beitrag anzeigen

edbayer

Registriert seit: 16. Jun 2003
1 Beiträge
 
Delphi 5 Professional
 
#1

C-Bibliothek in Delphi7 importieren !!EILT SEHR!!!

  Alt 26. Jan 2011, 17:06
Hallo

Ich benötige für ein Prüfgerät eine Implemtierung der DBusDRV.lib ( Delphi7)

Wer könnten so etwas übernehmen
Kostenerstattung wird zugesichert.



Beispiel Dbusdrv.h

! Type for the port handle
/*!
*/
typedef ULONG VDBusPortHandle;

/*--------------------------------------------------------------------*/
//! Error codes
/*!
*/
typedef enum {
VDBUS_SUCCESS = 0, //!< The operation was completed successfully
VDBUS_NO_FRAME_AVAILABLE = 1, //!< VIDBusPort::GetFrame has nothing received
VDBUS_ERROR = 0x100, //!< An error occured

// API erros
VDBUS_INVALIDARG = 0x1000, //!< An argument is not valid
VDBUS_TX_BUFFER_FULL = 0x1001,
VDBUS_INVALID_HANDLE = 0x1002, //!< The port handle is not valid

VDBUS_PORT_NOT_OPENED = 0x1800, // the port is not opened for cummunication
VDBUS_INVALID_MODE = 0x1801, // the current mode (raw or dbus) is not valid for this function
VDBUS_FW_VERSION_MISMATCH = 0x1802, // the current FW version does not support the called function

VDBUS_INTERNAL_ERROR = 0x1900,
VDBUS_INTERNAL_ERROR_SEND_BUFFER_OVERFLOW = 0x1901,
VDBUS_INTERNAL_ERROR_USB_WRITE = 0x1902,
VDBUS_INTERNAL_ERROR_ANSWER_TIMEOUT = 0x1903,
VDBUS_INTERNAL_ERROR_INVALID_ANSWER = 0x1904,
VDBUS_INTERNAL_ERROR_INVALID_ANSWER_CODE = 0x1905,
VDBUS_INTERNAL_ERROR_INVALID_ANSWER_SIZE = 0x1906,
VDBUS_INTERNAL_ERROR_SIZE_MISMATCH = 0x1907,

// hardware errors
VDBUS_PORT_NOT_FOUND = 0x2000, //!< Serial port not found
VDBUS_PORT_ALREADY_LOCKED = 0x2001, //!< Serial port is already locked by another application
VDBUS_PORT_SET_COMM_FAILED = 0x2002, //!< Cannot set communication parameter of COM port

VDBUS_POWER_MODULE_NOT_INSTALLED = 0x2400,

VDBUS_ERROR_REPORTED_BY_FW = 0x2800,
VDBUS_ERROR_WATCHDOG_RESET = 0x2801,
VDBUS_ERROR_HARDWARE_RESET = 0x2802,
VDBUS_ERROR_SOFTWARE_RESET = 0x2803,

VDBUS_INVALID_FW = 0x3000 // the specified FW is invalid
} VResult;


Es gibt auch nboch weitere Erläuterungen dazu.
Bitte um Rückfragen den Verfasser
Angehängte Dateien
Dateityp: zip Header Analyse.zip (4,8 KB, 10x aufgerufen)
Dateityp: zip DBusDrv_h.zip (7,1 KB, 15x aufgerufen)
Hallo und Danke für eure Hilfe
  Mit Zitat antworten Zitat