📄 ezusb_lib.h
字号:
//////////////////////////////////////////////////////////////////////
// File - EzUsb_lib.h
//
// Library for accessing the EZ-USB device.
// Accesses the hardware via WinDriver functions.
//
// Copyright (c) 2003 - 2004 Jungo Ltd. http://www.jungo.com
//
//////////////////////////////////////////////////////////////////////
#ifndef _EZUSB_LIB_H_
#define _EZUSB_LIB_H_
#include "../../include/windrvr.h"
#include "../../include/wdu_lib.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
WORD wVendorId;
WORD wProductId;
const char *pcDeviceDescription;
BOOL isFx2;
const char *pcFirmwareFile;
} CYPRESS_DEVICE;
typedef struct
{
DWORD dwInterfaceNum;
DWORD dwAlternateSetting;
WDU_DEVICE_HANDLE hDev;
HANDLE hEvent;
DWORD dwAttachError;
CYPRESS_DEVICE cypressDevice;
} DEVICE_CONTEXT;
extern CYPRESS_DEVICE cypressDevices[];
extern const DWORD dwCypressDevices;
BOOL DLLCALLCONV CypressDeviceAttach(WDU_DEVICE_HANDLE hDevice,
WDU_DEVICE *pDeviceInfo, PVOID pUserData);
void DLLCALLCONV CypressDeviceDetach(WDU_DEVICE_HANDLE hDevice, PVOID pUserData);
extern char sInfoString[4000];
BOOL DownloadFirmware(HANDLE hDev, PCHAR pHexFileName, BOOL IsFx2);
char *ReadFirmwareFileName(const char *pcDefaultFileName);
BOOL CopyDeviceFromTable(CYPRESS_DEVICE *dstDevice, CYPRESS_DEVICE cypressDevices[],
const DWORD dwDevicesNum, USHORT idVendor, USHORT idProduct);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -