USB430

所属分类:单片机开发
开发工具:Visual C++
文件大小:14KB
下载次数:10
上传日期:2009-04-10 15:03:42
上 传 者wusj3
说明:  其中的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 from the bottom of the auto-complete function (correlation function for unsigned char D12_ReadEndpoint (unsigned char endp, unsigned char len, unsigned char* buf) the corresponding endpoint of 2 and 4), the read data stored in GenEpBuf [] (common endpoint), MainEpBuf [] or EpBuf [] (the main endpoint), the user can use a direct reading.)

文件列表:
USB430\SRC\chap_9.c (6085, 2004-04-27)
USB430\SRC\chap_9.h (1482, 2004-03-12)
USB430\SRC\d12ci.c (4008, 2004-03-07)
USB430\SRC\d12ci.h (3082, 2004-07-03)
USB430\SRC\EPPHAL.C (507, 2004-03-08)
USB430\SRC\epphal.h (1404, 2004-03-04)
USB430\SRC\Isr.c (5352, 2004-06-11)
USB430\SRC\mainloop.h (6656, 2004-03-12)
USB430\SRC\protodma.h (870, 2002-06-13)
USB430\SRC\USB100.H (9116, 2004-03-12)
USB430\SRC\usb430.c (10423, 2004-07-03)
USB430\使用说明.txt (694, 2004-11-03)
USB430\SRC (0, 2009-04-05)
USB430 (0, 2009-04-05)

近期下载者

相关文件


收藏者