⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usb.~h

📁 可以检测你开发的USB设备是否OK的一个程序
💻 ~H
字号:

#ifndef usbH
#define usbH

#include "windows.h"

//---------------------------------------------------------------------------
class TUSB{
private:
        HANDLE hDevice;
public:
        bool OpenDevice();
        bool CloseDevice();
        bool SendCommand(unsigned char command);
        bool ResetFifo();
        bool GetImage(unsigned char *buf);
        bool GetCardResponse(unsigned char *buf) ;
        bool SendCardCommand(unsigned char *buf) ;
        bool PutImage(unsigned char *buf);
};
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -