return BTM_SUCCESS;
}
-uint16_t bluetooth::shim::BTM_ReadConnectability(uint16_t* p_window,
- uint16_t* p_interval) {
- ConnectabilityState state =
- Stack::GetInstance()->GetBtm()->GetClassicConnectabilityState();
-
- if (p_window) *p_window = state.window;
- if (p_interval) *p_interval = state.interval;
-
- return state.mode;
-}
-
uint16_t bluetooth::shim::BTM_IsInquiryActive(void) {
if (Stack::GetInstance()->GetBtm()->IsGeneralInquiryActive()) {
return BTM_GENERAL_INQUIRY_ACTIVE;
/*******************************************************************************
*
- * Function BTM_ReadConnectability
- *
- * Description This function is called to read the current discoverability
- * mode of the device.
- * Output Params p_window - current page scan duration
- * p_interval - current time between page scans
- *
- * Returns BTM_NON_CONNECTABLE or BTM_CONNECTABLE
- *
- ******************************************************************************/
-uint16_t BTM_ReadConnectability(uint16_t* p_window, uint16_t* p_interval);
-
-/*******************************************************************************
- *
* Function BTM_IsInquiryActive
*
* Description Return a bit mask of the current inquiry state
/*******************************************************************************
*
- * Function BTM_ReadConnectability
- *
- * Description This function is called to read the current discoverability
- * mode of the device.
- * Output Params p_window - current page scan duration
- * p_interval - current time between page scans
- *
- * Returns BTM_NON_CONNECTABLE or BTM_CONNECTABLE
- *
- ******************************************************************************/
-uint16_t BTM_ReadConnectability(uint16_t* p_window, uint16_t* p_interval) {
- if (bluetooth::shim::is_gd_shim_enabled()) {
- return bluetooth::shim::BTM_ReadConnectability(p_window, p_interval);
- }
-
- BTM_TRACE_API("BTM_ReadConnectability");
- if (p_window) *p_window = btm_cb.btm_inq_vars.page_scan_window;
-
- if (p_interval) *p_interval = btm_cb.btm_inq_vars.page_scan_period;
-
- return (btm_cb.btm_inq_vars.connectable_mode);
-}
-
-/*******************************************************************************
- *
* Function BTM_IsInquiryActive
*
* Description This function returns a bit mask of the current inquiry
/*******************************************************************************
*
- * Function BTM_ReadConnectability
- *
- * Description This function is called to read the current discoverability
- * mode of the device.
- * Output Params p_window - current page scan duration
- * p_interval - current time between page scans
- *
- * Returns BTM_NON_CONNECTABLE or BTM_CONNECTABLE
- *
- ******************************************************************************/
-uint16_t BTM_ReadConnectability(uint16_t* p_window, uint16_t* p_interval);
-
-/*******************************************************************************
- *
* Function BTM_SetInquiryMode
*
* Description This function is called to set standard, with RSSI