mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-06 07:00:59 +00:00
35 lines
1.1 KiB
TeX
35 lines
1.1 KiB
TeX
% !TEX root = btstack_gettingstarted.tex
|
|
\section{GAP API}
|
|
\label{appendix:api_gap}
|
|
$ $
|
|
\begin{lstlisting}
|
|
/**
|
|
* @brief Enable/disable bonding. Default is enabled.
|
|
* @param enabled
|
|
*/
|
|
void gap_set_bondable_mode(int enabled);
|
|
|
|
/**
|
|
* @brief Start dedicated bonding with device. Disconnect after bonding.
|
|
* @param device
|
|
* @param request MITM protection
|
|
* @return error, if max num acl connections active
|
|
* @result GAP_DEDICATED_BONDING_COMPLETE
|
|
*/
|
|
int gap_dedicated_bonding(bd_addr_t device, int mitm_protection_required);
|
|
|
|
gap_security_level_t gap_security_level_for_link_key_type(link_key_type_t link_key_type);
|
|
gap_security_level_t gap_security_level(hci_con_handle_t con_handle);
|
|
|
|
void gap_request_security_level(hci_con_handle_t con_handle, gap_security_level_t level);
|
|
int gap_mitm_protection_required_for_security_level(gap_security_level_t level);
|
|
|
|
/**
|
|
* @brief Sets local name.
|
|
* @note has to be done before stack starts up
|
|
* @param name is not copied, make sure memory is accessible during stack startup
|
|
*/
|
|
void gap_set_local_name(const char * local_name);
|
|
\end{lstlisting}
|
|
\pagebreak
|