📄 usb_base.h
字号:
#ifndef __USB_BASE_H__
#define __USB_BASE_H__
#include "libusb/usb.h"
#define MY_VID (0x9905)
#define MY_PID (0x6281)
#define ENDPOINT_IN (0x81)
#define ENDPOINT_OUT (0x03)
#define TX_TIMEOUT (1000)
#define RX_TIMEOUT (5000)
#define BUF_SIZE (1024*512)
usb_dev_handle* init_usb_if(void);
int bulk_write(usb_dev_handle *dev, void* data_ptr, int byte_to_send);
int bulk_read(usb_dev_handle *dev, void* data_ptr, int byte_to_read);
#endif //__USB_BASE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -