在D12的数据手册中定义了一套压缩了所有访问PDIUSBD12功能的命令集,命令接口部分就是将各命令用函数的形式加以实现。对应的函数主要有:
void D12_SetAddressEnable(unsigned char bAddress, unsigned char bEnable); //设置地址使能
void D12_SetEndpointEnable(unsigned char bEnable); //设置端点使能
void D12_SetMode(unsigned char bConfig, unsigned char bClkDiv); //设置模式
unsigned short D12_ReadInterruptRegister(void); //读中断寄存器
unsigned char D12_SelectEndpoint(unsigned char bEndp); //选择端点
unsigned char D12_ReadLastTransactionStatus(unsigned char bEndp); //读最后处理状态
unsigned char D12_ReadEndpointStatus(unsigned char bEndp); //读端点状态
void D12_SetEndpointStatus(unsigned char bEndp, unsigned char bStalled); //设置端点状态
void D12_SendResume(void); //发送恢复
unsigned short D12_ReadCurrentFrameNumber(void); //读取当前帧号
unsigned short D12_ReadChipID(void); //读D12芯片ID
unsigned char D12_ReadEndpoint(unsigned char endp, unsigned char len, unsigned char * buf);//读取端点数据
unsigned char D12_WriteEndpoint(unsigned char endp, unsigned char len, unsigned char * buf);//写端点数据
void D12_AcknowledgeEndpoint(unsigned char endp);//设置端点应答
PDIUSBD12.rar_pdiusbd12
版权申诉
94 浏览量
2022-09-24
13:30:32
上传
评论
收藏 893B RAR 举报
JaniceLu
- 粉丝: 79
- 资源: 1万+
最新资源
- 以简单、易用、高性能为目标、开源的时序数据库,支持Linux及Windows, Time Series Database.zip
- python-leetcode面试题解之第198题打家劫舍-题解.zip
- python-leetcode面试题解之第191题位1的个数-题解.zip
- python-leetcode面试题解之第186题反转字符串中的单词II-题解.zip
- 一个基于python的web后端高性能开发框架,下载可用
- python-leetcode面试题解之第179题最大数-题解.zip
- python-leetcode面试题解之第170题两数之和III数据结构设计-题解.zip
- python-leetcode面试题解之第168题Excel表列名称-题解.zip
- python-leetcode面试题解之第167题两数之和II输入有序数组-题解.zip
- python-leetcode面试题解之第166题分数到小数-题解.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈