Stm32wb BLE callback function:
void hci_disconnection_complete_event( uint8_t Status,
uint16_t Connection_Handle,
uint8_t Reason )
{
printf("hci_disconnection_complete_event");
}
not working.
STM32WB use a utility function to control the BLE functionality.
some observed points are -
- connection/disconnection event monitor using SVCCTL_App_Notification() function only.
- ble functionality is control by UTIL_SEQ_Run() function, which is call in loop.
- UTIL_SEQ_Run() function run a single task on calling.
- Connection complete and disconnection complete events are detected using IPCC_C1_RX_IRQHandler() and IPCC_C1_TX_IRQHandler() interrupt handlers, which are called after every IPCC transmission/reception event.