[NUC120] 请问这个NUC120点灯程序中下位机HID程序怎么理解?

[复制链接]
3579|2
 楼主| baisen 发表于 2011-5-20 09:53 | 显示全部楼层 |阅读模式
本帖最后由 缥缈九哥 于 2012-9-14 12:04 编辑

/* This callback will be executed whenever the interrupt IN transaction is received from HOST to get
   report. */

void HID_GetInReport(uint8_t *buf)
     //这是干啥用的?
{

}

/* This callback will be executed whenever the interrupt OUT transaction is received from HOST to set
   report. */
void HID_SetOutReport(uint8_t *pu8EpBuf)
//这是干啥用的?
{
    uint32_t u32Size = (uint32_t)pu8EpBuf[1];

    //Set new index
    g_u8CmdIndex = pu8EpBuf[0];

    V6M_ProcessCommand((uint8_t *)&pu8EpBuf[2], u32Size);
hotpower 发表于 2011-5-20 10:24 | 显示全部楼层
这要先看usb相关的书籍了,。
枚举,传输,请求,接口,设备,描述符,……
 楼主| baisen 发表于 2011-5-21 09:59 | 显示全部楼层
哦,谢谢 2# hotpower
您需要登录后才可以回帖 登录 | 注册

本版积分规则

0

主题

27

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部