Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/STM32_WPAN/App/dt_client_app.c')
-rw-r--r--Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/STM32_WPAN/App/dt_client_app.c39
1 files changed, 18 insertions, 21 deletions
diff --git a/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/STM32_WPAN/App/dt_client_app.c b/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/STM32_WPAN/App/dt_client_app.c
index 855ba6a1b..20b2549cf 100644
--- a/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/STM32_WPAN/App/dt_client_app.c
+++ b/Projects/NUCLEO-WB15CC/Applications/BLE/BLE_DataThroughput/STM32_WPAN/App/dt_client_app.c
@@ -131,7 +131,6 @@ void DTC_App_LinkReadyNotification(uint16_t ConnectionHandle)
#endif
DataTransferClientContext.connHandle = ConnectionHandle;
-
#if(CFG_BLE_CENTRAL != 1)
GattProcReq(GATT_PROC_MTU_UPDATE);
@@ -144,8 +143,6 @@ void DTC_App_LinkReadyNotification(uint16_t ConnectionHandle)
/**
* Enable notification on the remote server
*/
-
-
APP_DBG_MSG("Enable notification on the remote server\n");
status = aci_gatt_write_char_desc(
@@ -174,7 +171,7 @@ static SVCCTL_EvtAckStatus_t DTC_Event_Handler( void *Event )
{
SVCCTL_EvtAckStatus_t return_value;
hci_event_pckt * event_pckt;
- evt_blue_aci * blue_evt;
+ evt_blecore_aci * blecore_evt;
uint8_t CRC_Result;
uint8_t CRC_Received;
@@ -183,21 +180,21 @@ static SVCCTL_EvtAckStatus_t DTC_Event_Handler( void *Event )
switch (event_pckt->evt)
{
- case EVT_VENDOR:
+ case HCI_VENDOR_SPECIFIC_DEBUG_EVT_CODE:
{
- blue_evt = (evt_blue_aci*) event_pckt->data;
- switch (blue_evt->ecode)
+ blecore_evt = (evt_blecore_aci*) event_pckt->data;
+ switch (blecore_evt->ecode)
{
- case EVT_BLUE_ATT_READ_BY_GROUP_TYPE_RESP:
+ case ACI_ATT_READ_BY_GROUP_TYPE_RESP_VSEVT_CODE:
{
- aci_att_read_by_group_type_resp_event_rp0 *pr = (void*) blue_evt->data;
+ aci_att_read_by_group_type_resp_event_rp0 *pr = (void*) blecore_evt->data;
uint8_t numServ, i, idx;
uint16_t uuid, handle;
handle = pr->Connection_Handle;
- APP_DBG_MSG("DTC_Event_Handler: EVT_BLUE_ATT_READ_BY_GROUP_TYPE_RESP\n");
+ APP_DBG_MSG("DTC_Event_Handler: ACI_ATT_READ_BY_GROUP_TYPE_RESP_VSEVT_CODE\n");
DataTransferClientContext.connHandle = handle;
@@ -241,13 +238,13 @@ static SVCCTL_EvtAckStatus_t DTC_Event_Handler( void *Event )
}
break;
- case EVT_BLUE_ATT_READ_BY_TYPE_RESP:
+ case ACI_ATT_READ_BY_TYPE_RESP_VSEVT_CODE:
{
- aci_att_read_by_type_resp_event_rp0 *pr = (void*) blue_evt->data;
+ aci_att_read_by_type_resp_event_rp0 *pr = (void*) blecore_evt->data;
uint8_t idx;
uint16_t uuid, handle;
- APP_DBG_MSG("DTC_Event_Handler: EVT_BLUE_ATT_READ_BY_TYPE_RESP\n");
+ APP_DBG_MSG("DTC_Event_Handler: ACI_ATT_READ_BY_TYPE_RESP_VSEVT_CODE\n");
/* the event data will be
* 2 bytes start handle
@@ -289,9 +286,9 @@ static SVCCTL_EvtAckStatus_t DTC_Event_Handler( void *Event )
}
}
break;
- case EVT_BLUE_ATT_FIND_INFORMATION_RESP:
+ case ACI_ATT_FIND_INFO_RESP_VSEVT_CODE:
{
- aci_att_find_info_resp_event_rp0 *pr = (void*) blue_evt->data;
+ aci_att_find_info_resp_event_rp0 *pr = (void*) blecore_evt->data;
uint8_t numDesc, idx, i;
uint16_t uuid, handle;
@@ -319,11 +316,11 @@ static SVCCTL_EvtAckStatus_t DTC_Event_Handler( void *Event )
}
}
}
- break; /*EVT_BLUE_ATT_FIND_INFORMATION_RESP*/
+ break; /*ACI_ATT_FIND_INFO_RESP_VSEVT_CODE*/
- case EVT_BLUE_GATT_NOTIFICATION:
+ case ACI_GATT_NOTIFICATION_VSEVT_CODE:
{
- aci_gatt_notification_event_rp0 *pr = (void*) blue_evt->data;
+ aci_gatt_notification_event_rp0 *pr = (void*) blecore_evt->data;
if ((pr->Attribute_Handle == DataTransferClientContext.DataTransferTxCharHdle)
&& (pr->Attribute_Value_Length > (2)))
@@ -356,11 +353,11 @@ static SVCCTL_EvtAckStatus_t DTC_Event_Handler( void *Event )
DataTransfered += NotificationData.DataTransfered.Length;
}
}
- break;/* end EVT_BLUE_GATT_NOTIFICATION */
+ break;/* end ACI_GATT_NOTIFICATION_VSEVT_CODE */
- case EVT_BLUE_GATT_PROCEDURE_COMPLETE:
+ case ACI_GATT_PROC_COMPLETE_VSEVT_CODE:
UTIL_SEQ_SetEvt(1 << CFG_IDLEEVT_GATT_PROC_COMPLETE);
- break; /*EVT_BLUE_GATT_PROCEDURE_COMPLETE*/
+ break; /*ACI_GATT_PROC_COMPLETE_VSEVT_CODE*/
default:
break;