2019年1月4日

(USB HID) VC++ 使用 SetupAPI 操作 USB HID Device

摘要: 在VC裡頭使用 Api必須include 跟加入 lib,加入之後就可以在VC裡頭任意使用api了 暫時先貼上程式碼...等待有空時候在更新說明 Dialog head file FindHid WriteFile ReadFile OutReport InReprot 阅读全文

posted @ 2019-01-04 22:45 OO程式猿 阅读(2383) 评论(0) 推荐(0) 编辑

(USB HID) In/Out Report 收發 Function

摘要: 在紀錄 In/Out Report 收發之前先來看一下一個struct 這邊有特別註解 Control Endpoint, Class Specific Endpoint,理解翻譯就是Control Endpoint 即是所謂的Endpoint 0 在USB協定中,一定是透過Endpoint 0,而 阅读全文

posted @ 2019-01-04 22:06 OO程式猿 阅读(3183) 评论(0) 推荐(0) 编辑

(USB HID) Configuration Descriptor

摘要: 最近完成了HID的基本收發,使用的配置用了2個Endpoint,把一些特別重要要的地方紀錄下來 整個Configuration 分成4大部分 : 1. Configuration 2. Interface 3. HID descriptor 4. Endpoint 以下分散開來記錄,首先紀錄Conf 阅读全文

posted @ 2019-01-04 20:51 OO程式猿 阅读(2503) 评论(0) 推荐(1) 编辑

(USB HID) Report Descriptor 理解

摘要: 在這理整理一下基本 Report Descriptor 對於入門基礎的了解。 在很多文件、Blog都有提到HID report 總共分為3種 : Input、Output、Feature reports。 在這些 In/Out 方向提的是Host的方向(PC),則 Feature是雙向傳輸的。 US 阅读全文

posted @ 2019-01-04 20:29 OO程式猿 阅读(17057) 评论(0) 推荐(0) 编辑

导航