Lines Matching refs:cy_ble_configPtr

62 __WEAK const cy_stc_ble_config_t *cy_ble_configPtr = NULL;  variable
139 cy_ble_configPtr = config; in Cy_BLE_InitHost()
140 Cy_BLE_HAL_SetConfigStructure(cy_ble_configPtr); in Cy_BLE_InitHost()
150 if((cy_ble_configPtr->params->gattRole & CY_BLE_GATT_CLIENT) != 0u) in Cy_BLE_InitHost()
152 for(idx = 0u; idx < cy_ble_configPtr->params->maxClientCount; idx++) in Cy_BLE_InitHost()
154 uint32 servCnt = cy_ble_configPtr->context->discServiCount; in Cy_BLE_InitHost()
155 (void)memset(&cy_ble_configPtr->context->serverInfo[idx * servCnt], 0, in Cy_BLE_InitHost()
157 …(void)memset(&cy_ble_configPtr->context->discovery[idx], 0, sizeof(cy_stc_ble_discovery_t)); … in Cy_BLE_InitHost()
160cy_ble_configPtr->context->discovery[idx].connIndex = CY_BLE_INVALID_CONN_HANDLE_VALUE; in Cy_BLE_InitHost()
164 if(cy_ble_configPtr->ServiceInitFunc != NULL) in Cy_BLE_InitHost()
166 cy_ble_configPtr->ServiceInitFunc(); in Cy_BLE_InitHost()
253 if (cy_ble_configPtr != NULL) in Cy_BLE_EnableHost()
273 uint16_t dataBuffIdx0 = CY_BLE_ALIGN_TO_4(cy_ble_configPtr->params->mtuSize + in Cy_BLE_EnableHost()
277 uint16_t dataBuffIdx1 = CY_BLE_ALIGN_TO_4(cy_ble_configPtr->params->l2capPsmCount * in Cy_BLE_EnableHost()
281 uint16_t dataBuffIdx2 = CY_BLE_ALIGN_TO_4(cy_ble_configPtr->params->l2capChanCount * in Cy_BLE_EnableHost()
285 uint16_t dataBuffIdx3 = CY_BLE_ALIGN_TO_4(cy_ble_configPtr->params->l2capMtuSize + in Cy_BLE_EnableHost()
290 uint16_t dbInxCount = cy_ble_configPtr->params->gattDbIndexCount; in Cy_BLE_EnableHost()
296 uint16_t mtuBuffCount = (cy_ble_configPtr->stackParam->maxConnCount * in Cy_BLE_EnableHost()
297 ((cy_ble_configPtr->params->mtuSize > CY_BLE_MTU_MIN_VALUE) ? in Cy_BLE_EnableHost()
298 … ((uint16_t)cy_ble_configPtr->stackParam->l2capBufferPerConn - 1u) : in Cy_BLE_EnableHost()
304 { dataBuffIdx1, cy_ble_configPtr->params->l2capPsmCount }, in Cy_BLE_EnableHost()
305 { dataBuffIdx2, 2u * cy_ble_configPtr->params->l2capChanCount }, in Cy_BLE_EnableHost()
306 { dataBuffIdx3, 2u * cy_ble_configPtr->params->l2capChanCount }, in Cy_BLE_EnableHost()
325 if(cy_ble_configPtr->flashStorage->stackFlashPtr != NULL) in Cy_BLE_EnableHost()
327 … stackInitParam.memParam.bleStackFlashPointer = cy_ble_configPtr->flashStorage->stackFlashPtr; in Cy_BLE_EnableHost()
328 … stackInitParam.memParam.bleStackFlashSize = cy_ble_configPtr->flashStorage->stackFlashSize; in Cy_BLE_EnableHost()
332 …stackInitParam.stackConfig.l2capConfig.l2capBufferPerConn = cy_ble_configPtr->stackParam->l2capBuf… in Cy_BLE_EnableHost()
335 stackInitParam.memParam.totalHeapSz = cy_ble_configPtr->stackParam->totalHeapSz; in Cy_BLE_EnableHost()
338 …stackInitParam.stackConfig.dleConfig.dleMaxTxCapability = cy_ble_configPtr->stackParam->dleMaxTxCa… in Cy_BLE_EnableHost()
339 …stackInitParam.stackConfig.dleConfig.dleMaxRxCapability = cy_ble_configPtr->stackParam->dleMaxRxCa… in Cy_BLE_EnableHost()
346 cy_ble_configPtr->stackParam->featureMask; in Cy_BLE_EnableHost()
350 cy_ble_configPtr->stackParam->maxConnCount; in Cy_BLE_EnableHost()
354 cy_ble_configPtr->stackParam->maxBondedDevListSize; in Cy_BLE_EnableHost()
358 cy_ble_configPtr->stackParam->maxWhiteListSize; in Cy_BLE_EnableHost()
362 cy_ble_configPtr->stackParam->maxResolvableDevListSize; in Cy_BLE_EnableHost()
372 if((cy_ble_configPtr->stackParam->featureMask & CY_BLE_DLE_FEATURE_MASK) != 0u) in Cy_BLE_EnableHost()
378 if((cy_ble_configPtr->stackParam->featureMask & CY_BLE_PRIVACY_1_2_FEATURE_MASK) != 0u) in Cy_BLE_EnableHost()
384 if((cy_ble_configPtr->stackParam->featureMask & CY_BLE_PHY_UPDATE_FEATURE_MASK) != 0u) in Cy_BLE_EnableHost()
394 stackInitParam.memParam.memoryHeapPtr = cy_ble_configPtr->stackParam->memoryHeapPtr; in Cy_BLE_EnableHost()
397 if(cy_ble_configPtr->stackParam->paCalConfig != NULL) in Cy_BLE_EnableHost()
399 stackInitParam.stackConfig.paCalConfig = *cy_ble_configPtr->stackParam->paCalConfig; in Cy_BLE_EnableHost()
411 … if((cy_ble_configPtr->params->gapRole & (CY_BLE_GAP_PERIPHERAL | CY_BLE_GAP_BROADCASTER)) != 0u) in Cy_BLE_EnableHost()
416 … if((cy_ble_configPtr->params->gapRole & (CY_BLE_GAP_OBSERVER | CY_BLE_GAP_CENTRAL)) != 0u) in Cy_BLE_EnableHost()