📄 connection_8h.html
字号:
<br> <a class="el" href="connection_8h.html#a343a198">rfcomm_connect_failed</a>, <br> <a class="el" href="connection_8h.html#a343a199">rfcomm_server_channel_not_registered</a>, <br> <a class="el" href="connection_8h.html#a343a200">rfcomm_connect_timeout</a>, <br> <a class="el" href="connection_8h.html#a343a201">rfcomm_connect_rejected</a>, <br> <a class="el" href="connection_8h.html#a343a202">rfcomm_normal_disconnect</a>, <br> <a class="el" href="connection_8h.html#a343a203">rfcomm_abnormal_disconnect</a>, <br> <a class="el" href="connection_8h.html#a343a204">rfcomm_connect_channel_already_open</a><br> }<dl class="el"><dd class="mdescRight">RFCOMM connection status. <a href="#a343">More...</a><br></dl><li>enum <a class="el" href="connection_8h.html#a344">rfcomm_disconnect_status</a> { <br> <a class="el" href="connection_8h.html#a344a205">rfcomm_disconnect_success</a>, <br> <a class="el" href="connection_8h.html#a344a206">rfcomm_disconnect_connection_pending</a>, <br> <a class="el" href="connection_8h.html#a344a207">rfcomm_disconnect_connection_rej_psm</a>, <br> <a class="el" href="connection_8h.html#a344a208">rfcomm_disconnect_connection_rej_security</a>, <br> <a class="el" href="connection_8h.html#a344a209">rfcomm_disconnect_connection_rej_resources</a>, <br> <a class="el" href="connection_8h.html#a344a210">rfcomm_disconnect_connection_rej_not_ready</a>, <br> <a class="el" href="connection_8h.html#a344a211">rfcomm_disconnect_connection_failed</a>, <br> <a class="el" href="connection_8h.html#a344a212">rfcomm_disconnect_connection_timeout</a>, <br> <a class="el" href="connection_8h.html#a344a213">rfcomm_disconnect_normal_disconnect</a>, <br> <a class="el" href="connection_8h.html#a344a214">rfcomm_disconnect_abnormal_disconnect</a>, <br> <a class="el" href="connection_8h.html#a344a215">rfcomm_disconnect_config_unacceptable</a>, <br> <a class="el" href="connection_8h.html#a344a216">rfcomm_disconnect_config_rejected</a>, <br> <a class="el" href="connection_8h.html#a344a217">rfcomm_disconnect_config_unknown</a>, <br> <a class="el" href="connection_8h.html#a344a218">rfcomm_disconnect_config_rejected_locally</a>, <br> <a class="el" href="connection_8h.html#a344a219">rfcomm_disconnect_config_timeout</a>, <br> <a class="el" href="connection_8h.html#a344a220">rfcomm_disconnect_remote_refusal</a>, <br> <a class="el" href="connection_8h.html#a344a221">rfcomm_disconnect_race_condition_detected</a>, <br> <a class="el" href="connection_8h.html#a344a222">rfcomm_disconnect_insufficient_resources</a>, <br> <a class="el" href="connection_8h.html#a344a223">rfcomm_disconnect_cannot_change_flow_control_mechanism</a>, <br> <a class="el" href="connection_8h.html#a344a224">rfcomm_disconnect_dlc_already_exists</a>, <br> <a class="el" href="connection_8h.html#a344a225">rfcomm_disconnect_dlc_rej_security</a>, <br> <a class="el" href="connection_8h.html#a344a226">rfcomm_disconnect_generic_refusal</a>, <br> <a class="el" href="connection_8h.html#a344a227">rfcomm_disconnect_unexpected_primitive</a>, <br> <a class="el" href="connection_8h.html#a344a228">rfcomm_disconnect_invalid_server_channel</a>, <br> <a class="el" href="connection_8h.html#a344a229">rfcomm_disconnect_unknown_mux_id</a>, <br> <a class="el" href="connection_8h.html#a344a230">rfcomm_disconnect_local_entity_terminated_connection</a>, <br> <a class="el" href="connection_8h.html#a344a231">rfcomm_disconnect_unknown_primitive</a>, <br> <a class="el" href="connection_8h.html#a344a232">rfcomm_disconnect_max_payload_exceeded</a>, <br> <a class="el" href="connection_8h.html#a344a233">rfcomm_disconnect_inconsistent_parameters</a>, <br> <a class="el" href="connection_8h.html#a344a234">rfcomm_disconnect_insufficient_credits</a>, <br> <a class="el" href="connection_8h.html#a344a235">rfcomm_disconnect_credit_flow_control_protocol_violation</a>, <br> <a class="el" href="connection_8h.html#a344a236">rfcomm_disconnect_mux_already_open</a>, <br> <a class="el" href="connection_8h.html#a344a237">rfcomm_disconnect_res_ack_timeout</a>, <br> <a class="el" href="connection_8h.html#a344a238">rfcomm_disconnect_unknown</a><br> }<dl class="el"><dd class="mdescRight">RFCOMM disconnection status. <a href="#a344">More...</a><br></dl><li>enum <a class="el" href="connection_8h.html#a345">msg_group</a> { <br> <a class="el" href="connection_8h.html#a345a239">msg_group_acl</a> = 0x0001, <br> <a class="el" href="connection_8h.html#a345a240">msg_group_mode_change</a> = 0x0002<br> }<dl class="el"><dd class="mdescRight">Message filter groups. Defines which status messages will be sent to the application. The msg_filter will have a combination of these values bitwise Or'ed together. <a href="#a345">More...</a><br></dl></ul><h2>Functions</h2><ul><li>void <a class="el" href="connection_8h.html#a241">ConnectionInit</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">This function is called to initialise the Multipoint Connection Manager. <a href="#a241"></a><br></dl><li>void <a class="el" href="connection_8h.html#a242">ConnectionInitEx</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, const <a class="el" href="connection_8h.html#a6">msg_filter</a> *msgFilter)<dl class="el"><dd class="mdescRight">This function is called to initialise the Multipoint Connection Manager. It also allows the application to define which status messages it would like to receive. <a href="#a242"></a><br></dl><li>void <a class="el" href="connection_8h.html#a243">ConnectionSmSetSdpSecurityIn</a> (<a class="el" href="csrtypes_8h.html#a9">bool</a> enable)<dl class="el"><dd class="mdescRight">This function will allow a profile library to configure the Security Manager to permit SDP browsing without the need for authentication. <a href="#a243"></a><br></dl><li>void <a class="el" href="connection_8h.html#a244">ConnectionSmSetSdpSecurityOut</a> (<a class="el" href="csrtypes_8h.html#a9">bool</a> enable, const <a class="el" href="structbdaddr.html">bdaddr</a> *bd_addr)<dl class="el"><dd class="mdescRight">This function will allow a profile library to configure the Security Manager to permit the local device to initiate SDP browsing without locally enforcing authentication. <a href="#a244"></a><br></dl><li>void <a class="el" href="connection_8h.html#a245">ConnectionLinkPolicyResponse</a> (<a class="el" href="struct_task_data.html">Task</a> task, <a class="el" href="structlp__config__params.html">lp_config_params</a> *config, <a class="el" href="csrtypes_8h.html#a4">uint16</a> priority, <a class="el" href="sink___8h.html#a0">Sink</a> sink, <a class="el" href="csrtypes_8h.html#a4">uint16</a> timeout, <a class="el" href="connection_8h.html#a317">hci_role</a> role, <a class="el" href="csrtypes_8h.html#a4">uint16</a> number_power_table_entries, <a class="el" href="structlp__power__table.html">lp_power_table</a> const *power_table)<dl class="el"><dd class="mdescRight">This function is called by a profile library in response to an CL_DM_LINK_POLICY_IND message to let the Connection Library know it's requirements for link policy and low power control. <a href="#a245"></a><br></dl><li>void <a class="el" href="connection_8h.html#a246">ConnectionSetRole</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink, <a class="el" href="connection_8h.html#a317">hci_role</a> role)<dl class="el"><dd class="mdescRight">This function changes the current role for a particular connection. <a href="#a246"></a><br></dl><li>void <a class="el" href="connection_8h.html#a247">ConnectionGetRole</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink)<dl class="el"><dd class="mdescRight">This function returns the current role for a particular connection. <a href="#a247"></a><br></dl><li>void <a class="el" href="connection_8h.html#a248">ConnectionWriteInquiryMode</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="connection_8h.html#a329">inquiry_mode</a> mode)<dl class="el"><dd class="mdescRight">Configures the inquiry mode. <a href="#a248"></a><br></dl><li>void <a class="el" href="connection_8h.html#a249">ConnectionReadInquiryMode</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">Obtains the current inquiry mode. <a href="#a249"></a><br></dl><li>void <a class="el" href="connection_8h.html#a250">ConnectionInquire</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="csrtypes_8h.html#a3">uint32</a> inquiry_lap, <a class="el" href="csrtypes_8h.html#a8">uint8</a> max_responses, <a class="el" href="csrtypes_8h.html#a4">uint16</a> timeout, <a class="el" href="csrtypes_8h.html#a3">uint32</a> class_of_device)<dl class="el"><dd class="mdescRight">Initiate an inquiry to discover other Bluetooth devices. <a href="#a250"></a><br></dl><li>void <a class="el" href="connection_8h.html#a251">ConnectionInquireCancel</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">Cancel an active inquiry process. <a href="#a251"></a><br></dl><li>void <a class="el" href="connection_8h.html#a252">ConnectionReadRemoteName</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, const <a class="el" href="structbdaddr.html">bdaddr</a> *bd_addr)<dl class="el"><dd class="mdescRight">This function is called to read the remote name of the device with the specified Bluetooth device address. <a href="#a252"></a><br></dl><li>void <a class="el" href="connection_8h.html#a253">ConnectionReadLocalName</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">This function is called to read the local name of the device. <a href="#a253"></a><br></dl><li>void <a class="el" href="connection_8h.html#a254">ConnectionWritePagescanActivity</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> interval, <a class="el" href="csrtypes_8h.html#a4">uint16</a> window)<dl class="el"><dd class="mdescRight">This function is called to set the page scan parameters for the device. <a href="#a254"></a><br></dl><li>void <a class="el" href="connection_8h.html#a255">ConnectionWriteInquiryscanActivity</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> interval, <a class="el" href="csrtypes_8h.html#a4">uint16</a> window)<dl class="el"><dd class="mdescRight">This function is called to set the inquiry scan parameters for the device. <a href="#a255"></a><br></dl><li>void <a class="el" href="connection_8h.html#a256">ConnectionWriteInquiryAccessCode</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, const <a class="el" href="csrtypes_8h.html#a3">uint32</a> *iac, <a class="el" href="csrtypes_8h.html#a4">uint16</a> num_iac)<dl class="el"><dd class="mdescRight">This function is called to set the inquiry access code the device will respond to when in inquiry scan mode. <a href="#a256"></a><br></dl><li>void <a class="el" href="connection_8h.html#a257">ConnectionWriteScanEnable</a> (<a class="el" href="connection_8h.html#a328">hci_scan_enable</a> mode)<dl class="el"><dd class="mdescRight">This function is called to set the scan mode. <a href="#a257"></a><br></dl><li>void <a class="el" href="connection_8h.html#a258">ConnectionChangeLocalName</a> (<a class="el" href="csrtypes_8h.html#a4">uint16</a> size_local_name, const <a class="el" href="csrtypes_8h.html#a8">uint8</a> *local_name)<dl class="el"><dd class="mdescRight">This function is called to change the local name of the device. <a href="#a258"></a><br></dl><li>void <a class="el" href="connection_8h.html#a259">ConnectionWriteClassOfDevice</a> (<a class="el" href="csrtypes_8h.html#a3">uint32</a> cod)<dl class="el"><dd class="mdescRight">This function is called to set the class of device of the local device to the supplied value. <a href="#a259"></a><br></dl><li>void <a class="el" href="connection_8h.html#a260">ConnectionReadClassOfDevice</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">Read the local class of device. <a href="#a260"></a><br></dl><li>void <a class="el" href="connection_8h.html#a261">ConnectionWriteCachedPageMode</a> (const <a class="el" href="structbdaddr.html">bdaddr</a> *addr, <a class="el" href="connection_8h.html#a327">page_scan_mode</a> <a class="el" href="connection_8h.html#a327">page_scan_mode</a>, <a class="el" href="connection_8h.html#a326">page_scan_rep_mode</a> <a class="el" href="connection_8h.html#a326">page_scan_rep_mode</a>)<dl class="el"><dd class="mdescRight">This function is called to cache the page mode for a specific device. <a href="#a261"></a><br></dl><li>void <a class="el" href="connection_8h.html#a262">ConnectionWriteCachedClockOffset</a> (const <a class="el" href="structbdaddr.html">bdaddr</a> *addr, <a class="el" href="csrtypes_8h.html#a4">uint16</a> clk_offset)<dl class="el"><dd class="mdescRight">This function is called to cache the clock offset for a specific device. <a href="#a262"></a><br></dl><li>void <a class="el" href="connection_8h.html#a263">ConnectionClearParameterCache</a> (const <a class="el" href="structbdaddr.html">bdaddr</a> *addr)<dl class="el"><dd class="mdescRight">This function is called to clear the cache of parameters stored for a specific device. <a href="#a263"></a><br></dl><li>void <a class="el" href="connection_8h.html#a264">ConnectionWriteFlushTimeout</a> (<a class="el" href="sink___8h.html#a0">Sink</a> sink, <a class="el" href="csrtypes_8h.html#a4">uint16</a> flush_timeout)<dl class="el"><dd class="mdescRight">Set the flush timeout parameter for the specified connection. <a href="#a264"></a><br></dl><li>void <a class="el" href="connection_8h.html#a265">ConnectionSyncRegister</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">This function is used by tasks to indicate to the connection library that the task may be setting up a Synchronous connection (or that the device it is connected to might initiate one). <a href="#a265"></a><br></dl><li>void <a class="el" href="connection_8h.html#a266">ConnectionSyncUnregister</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">This function is used by tasks to indicate to the connection library that they do not expect to use Synchronous connections. <a href="#a266"></a><br></dl><li>void <a class="el" href="connection_8h.html#a267">ConnectionSyncConnectRequest</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink, const <a class="el" href="structsync__config__params.html">sync_config_params</a> *config_params)<dl class="el"><dd class="mdescRight">The function initiates the creation of a Synchronous connection to a remote device. <a href="#a267"></a><br></dl><li>void <a class="el" href="connection_8h.html#a268">ConnectionSyncConnectResponse</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, const <a class="el" href="structbdaddr.html">bdaddr</a> *addr, <a class="el" href="csrtypes_8h.html#a9">bool</a> accept, const <a class="el" href="structsync__config__params.html">sync_config_params</a> *config_params)<dl class="el"><dd class="mdescRight">This function is used to accept or reject an incoming Synchronous connection request. <a href="#a268"></a><br></dl><li>void <a class="el" href="connection_8h.html#a269">ConnectionSyncDisconnect</a> (<a class="el" href="sink___8h.html#a0">Sink</a> sink, <a class="el" href="connection_8h.html#a316">hci_status</a> reason)<dl class="el"><dd class="mdescRight">The function requests disconnection of an existing Synchronous connection. <a href="#a269"></a><br></dl><li>void <a class="el" href="connection_8h.html#a270">ConnectionSyncRenegotiate</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink, const <a class="el" href="structsync__config__params.html">sync_config_params</a> *config_params)<dl class="el"><dd class="mdescRight">This function is used to adjust the parameters for an existing Synchronous connection. <a href="#a270"></a><br></dl><li>void <a class="el" href="connection_8h.html#a271">ConnectionReadLocalAddr</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask)<dl class="el"><dd class="mdescRight">This function reads the local device address. <a href="#a271"></a><br></dl><li>void <a class="el" href="connection_8h.html#a272">ConnectionGetLinkQuality</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink)<dl class="el"><dd class="mdescRight">This function is used to obtain the link quality as defined in the HCI specification. <a href="#a272"></a><br></dl><li>void <a class="el" href="connection_8h.html#a273">ConnectionGetRssi</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink)<dl class="el"><dd class="mdescRight">This function is used to obtain the RSSI value as defined in the HCI specification. <a href="#a273"></a><br></dl><li>void <a class="el" href="connection_8h.html#a274">ConnectionReadRemoteSuppFeatures</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink)<dl class="el"><dd class="mdescRight">This function is used to obtain the supported features of the remote device. <a href="#a274"></a><br></dl><li>void <a class="el" href="connection_8h.html#a275">ConnectionReadClockOffset</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="sink___8h.html#a0">Sink</a> sink)<dl class="el"><dd class="mdescRight">This function is used to obtain the clock offset of the remote device. <a href="#a275"></a><br></dl><li>void <a class="el" href="connection_8h.html#a276">ConnectionSmSetSecurityMode</a> (<a class="el" href="struct_task_data.html">Task</a> theAppTask, <a class="el" href="connection_8h.html#a334">dm_security_mode</a> sec_mode, <a class="el" href="connection_8h.html#a333">encryption_mode</a> enc_mode)<dl class="el"><dd class="mdescRight">This function is called to request to place the Bluestack Security Manager into the specified security mode. <a href="#a276"></a><br></dl><li>void <a class="el" href="connection_8h.html#a277">ConnectionSmRegisterIncomingService</a> (<a class="el
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -