From 174a07fb898291e0ca2e8dadc4384d3962de1320 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 3 Jul 2022 22:14:23 +0800 Subject: update readme --- docs/source/api/api_device.rst | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'docs/source/api') diff --git a/docs/source/api/api_device.rst b/docs/source/api/api_device.rst index fff16d48..708659d7 100644 --- a/docs/source/api/api_device.rst +++ b/docs/source/api/api_device.rst @@ -241,7 +241,7 @@ CDC ACM usbd_cdc_add_acm_interface """""""""""""""""""""""""""""""""""" -``usbd_cdc_add_acm_interface`` 用来给 USB CDC ACM 类添加接口,并实现该接口相关的函数: +``usbd_cdc_add_acm_interface`` 用来给 USB CDC ACM 类添加接口,并实现该接口相关的函数。 - ``cdc_acm_class_request_handler`` 用来处理 USB CDC ACM 类 Setup 请求。 - ``cdc_notify_handler`` 用来处理 USB CDC 其他中断回调函数。 @@ -339,29 +339,6 @@ usbd_hid_report_descriptor_register - **desc** 报告描述符 - **desc_len** 报告描述符长度 -usbd_hid_set_request_callback -"""""""""""""""""""""""""""""""""""" - -``usbd_hid_set_request_callback`` 用来注册 hid 类请求命令的回调函数。 - -.. code-block:: C - - void usbd_hid_set_request_callback( uint8_t intf_num, - uint8_t (*get_report_callback)(uint8_t report_id, uint8_t report_type), - void (*set_report_callback)(uint8_t report_id, uint8_t report_type, uint8_t *report, uint8_t report_len), - uint8_t (*get_idle_callback)(uint8_t report_id), - void (*set_idle_callback)(uint8_t report_id, uint8_t duration), - void (*set_protocol_callback)(uint8_t protocol), - uint8_t (*get_protocol_callback)(void)); - -- **intf_num** 当前 hid 报告描述符所在接口偏移 -- **get_report_callback** get report命令处理回调函数 -- **set_report_callback** set report命令处理回调函数 -- **get_idle_callback** get idle命令处理回调函数 -- **set_idle_callback** set idle命令处理回调函数 -- **set_protocol_callback** set protocol命令处理回调函数 -- **get_protocol_callback** get protocol命令处理回调函数 - MSC ----------------- -- cgit v1.3.1