/********************************************************************* * @fn simpleTopology_processStackMsg * * @brief Process an incoming stack message. * * @param pMsg - message to process * * @return TRUE if safe to deallocate incoming message, FALSE otherwise. */ static uint8_t simpleTopology_processStackMsg(ICall_Hdr *pMsg) { uint8_t safeToDealloc = TRUE; switch (pMsg->event) { case GAP_MSG_EVENT: simpleTopology_processRoleEvent((gapMultiRoleEvent_t *)pMsg); break; default: // do nothing break; } return (safeToDealloc); }
/********************************************************************* * @fn simpleTopology_processStackMsg * * @brief Process an incoming stack message. * * @param pMsg - message to process * * @return TRUE if safe to deallocate incoming message, FALSE otherwise. */ static uint8_t simpleTopology_processStackMsg(ICall_Hdr *pMsg) { uint8_t safeToDealloc = TRUE; switch (pMsg->event) { case GATT_MSG_EVENT: // Process GATT message safeToDealloc = simpleTopology_processGATTMsg((gattMsgEvent_t *)pMsg); break; case HCI_GAP_EVENT_EVENT: { // Process HCI message switch(pMsg->status) { case HCI_COMMAND_COMPLETE_EVENT_CODE: // Process HCI Command Complete Event break; default: break; } } break; case GAP_MSG_EVENT: simpleTopology_processRoleEvent((gapMultiRoleEvent_t *)pMsg); break; default: // do nothing break; } return (safeToDealloc); }