⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hid_8h.html

📁 BlueLab3 bluetooth API 说明文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>BlueLab: hid.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>hid.h File Reference</h1>Header file for the Human Interface Device library. <a href="#_details">More...</a><p><h2>Data Structures</h2><ul><li>struct <a class="el" href="structhid__config.html">hid_config</a><dl class="el"><dd class="mdescRight">HID library configuration structure.  <a href="structhid__config.html#_details">More...</a><br></dl><li>struct <a class="el" href="structhid__connection__config.html">hid_connection_config</a><dl class="el"><dd class="mdescRight">HID connection configuration structure.  <a href="structhid__connection__config.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___i_n_i_t___c_f_m___t.html">HID_INIT_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application when the HID library has initialised. The application must check the status code to verifiy that initialisation was successful. The hid_lib pointer should be stored by the application as it is required when making outgoing connections using HidConnect.  <a href="struct_h_i_d___i_n_i_t___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___c_o_n_n_e_c_t___i_n_d___t.html">HID_CONNECT_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application when the remote host/device it attempting to create a connection. The application must respond by calling HidConnectResponse to indicate whether to allow the conenction or not.  <a href="struct_h_i_d___c_o_n_n_e_c_t___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___c_o_n_n_e_c_t___c_f_m___t.html">HID_CONNECT_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application when the connection to the remote host/device has been setup or if it has failed.  <a href="struct_h_i_d___c_o_n_n_e_c_t___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___d_i_s_c_o_n_n_e_c_t___i_n_d___t.html">HID_DISCONNECT_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever the connection to the remote host/device has been disconnected, this can either be from a local or remote disconnection.  <a href="struct_h_i_d___d_i_s_c_o_n_n_e_c_t___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___c_o_n_t_r_o_l___i_n_d___t.html">HID_CONTROL_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a HID_CONTROL request is received from the remote host/device. See HID Profile 7.4.2.  <a href="struct_h_i_d___c_o_n_t_r_o_l___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___g_e_t___r_e_p_o_r_t___i_n_d___t.html">HID_GET_REPORT_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a GET_REPORT request is received from the host. See HID Profile 7.4.3. The application must respond by calling HidGetReportResponse to send the required report to the host.  <a href="struct_h_i_d___g_e_t___r_e_p_o_r_t___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___s_e_t___r_e_p_o_r_t___i_n_d___t.html">HID_SET_REPORT_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a SET_REPORT request is received from the host.  <a href="struct_h_i_d___s_e_t___r_e_p_o_r_t___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___g_e_t___i_d_l_e___i_n_d___t.html">HID_GET_IDLE_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a GET_IDLE request is received from the host.  <a href="struct_h_i_d___g_e_t___i_d_l_e___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___s_e_t___i_d_l_e___i_n_d___t.html">HID_SET_IDLE_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a SET_IDLE request is received from the host.  <a href="struct_h_i_d___s_e_t___i_d_l_e___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___g_e_t___p_r_o_t_o_c_o_l___i_n_d___t.html">HID_GET_PROTOCOL_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a GET_PROTOCOL request is received from the host.  <a href="struct_h_i_d___g_e_t___p_r_o_t_o_c_o_l___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___s_e_t___p_r_o_t_o_c_o_l___i_n_d___t.html">HID_SET_PROTOCOL_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a SET_PROTOCOL request is received from the host.  <a href="struct_h_i_d___s_e_t___p_r_o_t_o_c_o_l___i_n_d___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___g_e_t___r_e_p_o_r_t___c_f_m___t.html">HID_GET_REPORT_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a GET_REPORT response is received from the device.  <a href="struct_h_i_d___g_e_t___r_e_p_o_r_t___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___s_e_t___r_e_p_o_r_t___c_f_m___t.html">HID_SET_REPORT_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a SET_REPORT response is received from the device.  <a href="struct_h_i_d___s_e_t___r_e_p_o_r_t___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___g_e_t___i_d_l_e___c_f_m___t.html">HID_GET_IDLE_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a GET_IDLE response is received from the device.  <a href="struct_h_i_d___g_e_t___i_d_l_e___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___s_e_t___i_d_l_e___c_f_m___t.html">HID_SET_IDLE_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a SET_IDLE response is received from the device.  <a href="struct_h_i_d___s_e_t___i_d_l_e___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___g_e_t___p_r_o_t_o_c_o_l___c_f_m___t.html">HID_GET_PROTOCOL_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a GET_PROTOCOL response is received from the device.  <a href="struct_h_i_d___g_e_t___p_r_o_t_o_c_o_l___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="struct_h_i_d___s_e_t___p_r_o_t_o_c_o_l___c_f_m___t.html">HID_SET_PROTOCOL_CFM_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a SET_PROTOCOL response is received from the device.  <a href="struct_h_i_d___s_e_t___p_r_o_t_o_c_o_l___c_f_m___t.html#_details">More...</a><br></dl><li>struct <a class="el" href="structhid__pin.html">hid_pin</a><dl class="el"><dd class="mdescRight">Pin code state structure.  <a href="structhid__pin.html#_details">More...</a><br></dl></ul><h2>Defines</h2><ul><li>#define <a class="el" href="hid_8h.html#a0">HID_DEVICE</a><dl class="el"><dd class="mdescRight">Defines if HID profile library supports device or host, default to HID device &amp; host.  <a href="#a0"></a><br></dl><li>#define <a class="el" href="hid_8h.html#a1">HID_HOST</a><li>#define <a class="el" href="hid_8h.html#a2">HID_L2CAP_MTU</a>&nbsp;&nbsp;&nbsp;(672)<dl class="el"><dd class="mdescRight">Defines MTU size that L2CAP will advertise.  <a href="#a2"></a><br></dl><li>#define <a class="el" href="hid_8h.html#a3">HID_MAJOR_DEVICE_CLASS</a>&nbsp;&nbsp;&nbsp;0x0500<dl class="el"><dd class="mdescRight">This identifies the device as a general device.  <a href="#a3"></a><br></dl><li>#define <a class="el" href="hid_8h.html#a4">HID_MINOR_MOUSE</a>&nbsp;&nbsp;&nbsp;0x000080<li>#define <a class="el" href="hid_8h.html#a5">HID_MINOR_KEYBOARD</a>&nbsp;&nbsp;&nbsp;0x000040<li>#define <a class="el" href="hid_8h.html#a6">HID_MESSAGE_BASE</a>&nbsp;&nbsp;&nbsp;0x7100<dl class="el"><dd class="mdescRight">Base message number for this library.  <a href="#a6"></a><br></dl><li>#define <a class="el" href="hid_8h.html#a7">HID_PIN_MAX_LENGTH</a>&nbsp;&nbsp;&nbsp;(16)<dl class="el"><dd class="mdescRight">Maximum length of pin code.  <a href="#a7"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef __HID <a class="el" href="hid_8h.html#a8">HID</a><dl class="el"><dd class="mdescRight">The Human Interface Device Profile structures.  <a href="#a8"></a><br></dl><li>typedef __HID_LIB <a class="el" href="hid_8h.html#a9">HID_LIB</a><li>typedef <a class="el" href="struct_h_i_d___s_e_t___r_e_p_o_r_t___i_n_d___t.html">HID_SET_REPORT_IND_T</a> <a class="el" href="hid_8h.html#a10">HID_DATA_IND_T</a><dl class="el"><dd class="mdescRight">This message is sent to the application whenever a DATA packet received on the interrupt channel when the applciation hasn't attached a stream.  <a href="#a10"></a><br></dl></ul><h2>Enumerations</h2><ul><li>enum <a class="el" href="hid_8h.html#a89">HidMessageId</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a11">HID_INIT_CFM</a> =  HID_MESSAGE_BASE, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a12">HID_CONNECT_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a13">HID_CONNECT_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a14">HID_DISCONNECT_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a15">HID_CONTROL_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a16">HID_GET_REPORT_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a17">HID_SET_REPORT_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a18">HID_GET_PROTOCOL_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a19">HID_SET_PROTOCOL_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a20">HID_GET_IDLE_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a21">HID_SET_IDLE_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a22">HID_DATA_IND</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a23">HID_GET_REPORT_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a24">HID_SET_REPORT_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a25">HID_GET_PROTOCOL_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a26">HID_SET_PROTOCOL_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a27">HID_GET_IDLE_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a28">HID_SET_IDLE_CFM</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a89a29">HID_MESSAGE_TOP</a><br> }<dl class="el"><dd class="mdescRight">Messages sent from HID library to the application.  <a href="#a89">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a90">hid_init_status</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a90a30">hid_init_success</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a90a31">hid_init_sdp_reg_fail</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a90a32">hid_init_l2cap_reg_fail</a><br> }<dl class="el"><dd class="mdescRight">Possible status codes for the initialiation confirmation.  <a href="#a90">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a91">hid_connect_status</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a91a33">hid_connect_success</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a91a34">hid_connect_failed</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a91a35">hid_connect_out_of_resources</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a91a36">hid_connect_timeout</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a91a37">hid_connect_disconnected</a><br> }<dl class="el"><dd class="mdescRight">Possible status codes for the connection.  <a href="#a91">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a92">hid_disconnect_status</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a92a38">hid_disconnect_success</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a92a39">hid_disconnect_link_loss</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a92a40">hid_disconnect_timeout</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a92a41">hid_disconnect_violation</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a92a42">hid_disconnect_error</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a92a43">hid_disconnect_virtual_unplug</a><br> }<dl class="el"><dd class="mdescRight">Possible status codes for the disconnection.  <a href="#a92">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a93">hid_status</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a44">hid_success</a> =  0, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a45">hid_busy</a> =  1, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a46">hid_invalid_id</a> =  2, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a47">hid_unsupported</a> =  3, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a48">hid_invalid_param</a> =  4, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a49">hid_failed</a> =  14, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a50">hid_timeout</a> =  15, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a93a51">hid_resource_error</a> =  16<br> }<dl class="el"><dd class="mdescRight">Possible result codes for the HANDSHAKE messages. See HID profile 7,4,1 table 5. NOTE: These values must match those defined in the HID profile specification.  <a href="#a93">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a94">hid_protocol</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a94a52">hid_protocol_boot</a> =  0, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a94a53">hid_protocol_report</a> =  1<br> }<dl class="el"><dd class="mdescRight">HID boot modes. See HID profile 7.4.5, table 10 &amp; 7.4.6, table 11. NOTE: These values must match those defined in the HID profile specification.  <a href="#a94">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a95">hid_control_op</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a95a54">hid_control_op_nop</a> =  0, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a95a55">hid_control_op_hard_reset</a> =  1, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a95a56">hid_control_op_soft_reset</a> =  2, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a95a57">hid_control_op_suspend</a> =  3, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a95a58">hid_control_op_exit_suspend</a> =  4, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a95a59">hid_control_op_unplug</a> =  5<br> }<dl class="el"><dd class="mdescRight">HID control operations. See HID profile 7.4.2, table 6. NOTE: These values must match those defined in the HID profile specification.  <a href="#a95">More...</a><br></dl><li>enum <a class="el" href="hid_8h.html#a96">hid_pin_status</a> { <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a60">hid_pin_ok</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a61">hid_pin_full</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a62">hid_pin_complete</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a63">hid_pin_add</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a64">hid_pin_delete</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a65">hid_pin_cleared</a>, <br>&nbsp;&nbsp;<a class="el" href="hid_8h.html#a96a66">hid_pin_error</a><br> }<dl class="el"><dd class="mdescRight">Status of pin code entry.  <a href="#a96">More...</a><br></dl></ul><h2>Functions</h2><ul><li>void <a class="el" href="hid_8h.html#a67">HidInit</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, const <a class="el" href="structhid__config.html">hid_config</a> *config)<dl class="el"><dd class="mdescRight">Initialise the HID library for a device.  <a href="#a67"></a><br></dl><li>void <a class="el" href="hid_8h.html#a68">HidConnect</a> (<a class="el" href="hid_8h.html#a9">HID_LIB</a> *hid_lib, <a class="el" href="struct_task_data.html">Task</a> task, const <a class="el" href="structbdaddr.html">bdaddr</a> *bd_addr, const <a class="el" href="structhid__connection__config.html">hid_connection_config</a> *config)<dl class="el"><dd class="mdescRight">Called to initiate a new connection,.  <a href="#a68"></a><br></dl><li>void <a class="el" href="hid_8h.html#a69">HidConnectResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="struct_task_data.html">Task</a> task, <a class="el" href="csrtypes_8h.html#a9">bool</a> accept, const <a class="el" href="structhid__connection__config.html">hid_connection_config</a> *config)<dl class="el"><dd class="mdescRight">Called by application in reponse to a HID_CONNECT_IND.  <a href="#a69"></a><br></dl><li>void <a class="el" href="hid_8h.html#a70">HidDisconnect</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid)<dl class="el"><dd class="mdescRight">Called to disconnect the specified HID connection. Application will receive HID_DISCONNECT_IND once connection has been disconnected.  <a href="#a70"></a><br></dl><li>void <a class="el" href="hid_8h.html#a71">HidControl</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a95">hid_control_op</a> op)<dl class="el"><dd class="mdescRight">Called to send a HID_CONTROL message.  <a href="#a71"></a><br></dl><li>void <a class="el" href="hid_8h.html#a72">HidInterruptReport</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid__if_8h.html#a7">hid_report_type</a> report_type, <a class="el" href="csrtypes_8h.html#a4">uint16</a> report_length, const <a class="el" href="csrtypes_8h.html#a8">uint8</a> *data)<dl class="el"><dd class="mdescRight">Called by application to send a report on the interrupt channel.  <a href="#a72"></a><br></dl><li>void <a class="el" href="hid_8h.html#a73">HidGetReportResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a93">hid_status</a> status, <a class="el" href="hid__if_8h.html#a7">hid_report_type</a> report_type, <a class="el" href="csrtypes_8h.html#a4">uint16</a> report_length, const <a class="el" href="csrtypes_8h.html#a8">uint8</a> *data)<dl class="el"><dd class="mdescRight">Called by application in response to a HID_GET_REPORT_IND message.  <a href="#a73"></a><br></dl><li>void <a class="el" href="hid_8h.html#a74">HidSetReportResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a93">hid_status</a> status)<dl class="el"><dd class="mdescRight">Called by application in response to a HID_SET_REPORT_IND message.  <a href="#a74"></a><br></dl><li>void <a class="el" href="hid_8h.html#a75">HidGetProtocolResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a93">hid_status</a> status, <a class="el" href="hid_8h.html#a94">hid_protocol</a> protocol)<dl class="el"><dd class="mdescRight">Called by application in response to a HID_GET_PROTOCOL_IND message.  <a href="#a75"></a><br></dl><li>void <a class="el" href="hid_8h.html#a76">HidSetProtocolResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a93">hid_status</a> status)<dl class="el"><dd class="mdescRight">Called by application in response to a HID_SET_PROTOCOL_IND message.  <a href="#a76"></a><br></dl><li>void <a class="el" href="hid_8h.html#a77">HidGetIdleResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a93">hid_status</a> status, <a class="el" href="csrtypes_8h.html#a8">uint8</a> idle_rate)<dl class="el"><dd class="mdescRight">Called by application in response to a HID_GET_IDLE_IND message.  <a href="#a77"></a><br></dl><li>void <a class="el" href="hid_8h.html#a78">HidSetIdleResponse</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a93">hid_status</a> status)<dl class="el"><dd class="mdescRight">Called by application in response to a HID_SET_IDLE_IND message.  <a href="#a78"></a><br></dl><li>void <a class="el" href="hid_8h.html#a79">HidGetReport</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid__if_8h.html#a7">hid_report_type</a> report_type, <a class="el" href="csrtypes_8h.html#a8">uint8</a> report_id, <a class="el" href="csrtypes_8h.html#a4">uint16</a> report_length)<dl class="el"><dd class="mdescRight">Called by application to request a report from the remote device.  <a href="#a79"></a><br></dl><li>void <a class="el" href="hid_8h.html#a80">HidSetReport</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid__if_8h.html#a7">hid_report_type</a> report_type, <a class="el" href="csrtypes_8h.html#a4">uint16</a> report_length, const <a class="el" href="csrtypes_8h.html#a8">uint8</a> *data)<dl class="el"><dd class="mdescRight">Called by application to send a report to the remote device.  <a href="#a80"></a><br></dl><li>void <a class="el" href="hid_8h.html#a81">HidGetProtocol</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid)<dl class="el"><dd class="mdescRight">Called by application to get the current remote device protocol mode. The application will receive a HID_GET_PROTOCOL_CFM reply from the remove device.  <a href="#a81"></a><br></dl><li>void <a class="el" href="hid_8h.html#a82">HidSetProtocol</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="hid_8h.html#a94">hid_protocol</a> protocol)<dl class="el"><dd class="mdescRight">Called by application to set the remote device protocol, The application will receive a HID_SET_PROTOCOL_CFM reply from remote device.  <a href="#a82"></a><br></dl><li>void <a class="el" href="hid_8h.html#a83">HidGetIdle</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid)<dl class="el"><dd class="mdescRight">Called by application to get the current remove device idle rate. The application will receive a HID_GET_IDLE_CFM reply from the remote device.  <a href="#a83"></a><br></dl><li>void <a class="el" href="hid_8h.html#a84">HidSetIdle</a> (<a class="el" href="hid_8h.html#a8">HID</a> *hid, <a class="el" href="csrtypes_8h.html#a8">uint8</a> idle_rate)<dl class="el"><dd class="mdescRight">Called by the application to set the remove device idle rate. The application will receive a HID_SET_IDLE_CFM reply from the remote device.  <a href="#a84"></a><br></dl><li>void <a class="el" href="hid_8h.html#a85">HidPinInit</a> (<a class="el" href="structhid__pin.html">hid_pin</a> *pin)<dl class="el"><dd class="mdescRight">Called by application start pin code entry.  <a href="#a85"></a><br></dl><li><a class="el" href="hid_8h.html#a96">hid_pin_status</a> <a class="el" href="hid_8h.html#a86">HidPinCodeHandleReport</a> (<a class="el" href="structhid__pin.html">hid_pin</a> *pin, const <a class="el" href="csrtypes_8h.html#a8">uint8</a> *data, int length)<dl class="el"><dd class="mdescRight">Called by application to handle a keyboard input report.  <a href="#a86"></a><br></dl><li>const <a class="el" href="csrtypes_8h.html#a8">uint8</a> * <a class="el" href="hid_8h.html#a87">HidPinCodeData</a> (<a class="el" href="structhid__pin.html">hid_pin</a> *pin)<dl class="el"><dd class="mdescRight">Called by application to retreive entered pin code.  <a href="#a87"></a><br></dl><li>int <a class="el" href="hid_8h.html#a88">HidPinCodeLength</a> (<a class="el" href="structhid__pin.html">hid_pin</a> *pin)<dl class="el"><dd class="mdescRight">Called by application to retreive length of entered pin code.  <a href="#a88"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Header file for the Human Interface Device library. <p><hr><h2>Define Documentation</h2><a class="anchor" name="a0" doxytag="hid.h::HID_DEVICE" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define HID_DEVICE          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Defines if HID profile library supports device or host, default to HID device &amp; host. <p>    </td>  </tr></table><a class="anchor" name="a1" doxytag="hid.h::HID_HOST" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define HID_HOST          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a class="anchor" name="a2" doxytag="hid.h::HID_L2CAP_MTU" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> #define HID_L2CAP_MTU&nbsp;&nbsp;&nbsp;(672)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Defines MTU size that L2CAP will advertise. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -