-
其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写:
unsigned char D12_WriteEndpo...
其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写:
unsigned char D12_WriteEndpoint(unsigned char endp, unsigned char len, unsigned char * buf) 此为usb端点输出函数,endp是要进行通信的端点,取值为3(普通端点,最大可一次传输16byte)或5(主端点,最大可一次传输64byte);len为一次输出数据长度;*buf为数据所在位置。
usb端点数据的读操作是由底层函数自动完成的(相关函数为unsigned char D12_ReadEndpoint(unsigned char endp, unsigned char len, unsigned char * buf); 相应端点为2和4),所读到的数据存于GenEpBuf[](普通端点)、MainEpBuf[]或EpBuf[](主端点)中,用户可以直接读取使用。-Usb port communication which has been used as a module, the user can use the following function on the usb port can easily read and write:
unsigned char D12_WriteEndpoint (unsigned char endp, unsigned char len, unsigned char* buf) This is the endpoint usb output function, endp is to communicate the endpoint, the value for 3 (common endpoint, the first transmission maximum 16byte) or 5 ( the main endpoint, the first transmission maximum 64byte) len Length of output data for the first time * buf location for data.
usb endpoint data is read
- 2023-06-14 23:15:04下载
- 积分:1
-
/**************************
0 1 2 3
4 5 6 7
8 9 . CLR
+
/**************************
0 1 2 3
4 5 6 7
8 9 . CLR
+ - = CLR
***************************/ 用键盘扫描,数码管显示实现计算功能,能实现xxx.x任意正数的加减
运算,超过范围显0000,功能键如上-/**************************
0 1 2 3
4 5 6 7
8 9. CLR
+- = CLR
***************************/ With keyboard scan, digital tube display of computing power, to achieve any positive xxx.x addition and subtraction
Operation, significantly more than the scope of 0000, above function keys
- 2022-01-24 16:53:38下载
- 积分:1
-
many procedures, sending messages Serial procedures.
好多51的程序,还有串口发送短信的程序。-many procedures, sending messages Serial procedures.
- 2022-03-03 03:29:39下载
- 积分:1
-
这是一个关于串口通信的程序,是用C
语言和汇编编写的,适合大多同学。...
这是一个关于串口通信的程序,是用C
语言和汇编编写的,适合大多同学。-This is a serial communication about the procedure is written in C and assembly language for most students.
- 2022-04-22 17:53:20下载
- 积分:1
-
一个直流电机的闭环控制源代码程序,使用AVR单片机做控制,...
一个直流电机的闭环控制源代码程序,使用AVR单片机做控制,-A closed-loop DC motor control source code, the use of AVR single-chip microcomputer controlling,
- 2023-05-03 17:25:03下载
- 积分:1
-
很少见的源码公开的msc51和z80的c编译器。
很少见的源码公开的msc51和z80的c编译器。-rarely seen in the open-source and Z80 msc51 c compiler.
- 2022-03-01 01:20:12下载
- 积分:1
-
Philips SC16C554 string mouth use basic agreement
Philips SC16C554串口使用基本协议-Philips SC16C554 string mouth use basic agreement
- 2022-03-13 09:14:48下载
- 积分:1
-
ACM
ACM-12864汉字液晶显示驱动程序,用于单片机开发-ACM- 12864 Chinese character LCD driver for the development of SCM
- 2023-07-10 00:05:03下载
- 积分:1
-
2401_Quick_Dev无线模块的源代码_source code for AVR 8515
2401_Quick_Dev无线模块的源代码_source code for AVR 8515-2401_Quick_Dev wireless module
- 2022-01-31 12:15:08下载
- 积分:1
-
液晶显示器LCD1602的驱动。适合于51单片机系统。
液晶显示器LCD1602的驱动。适合于51单片机系统。-LCD1602 LCD driver. Suitable for single-chip microcomputer system 51.
- 2022-02-20 06:58:20下载
- 积分:1