This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BLE Stack event dispatch

Other Parts Discussed in Thread: CC2650

Hi,

I'm reading cc2650 Software Developers Guide and I have a question about stack event dispatch.

During the task initialization ICall_registerApp function is called to register the thread and making possible to receive messages from ble stack.

In this way, when the stack has something to say to the thread the stack it can send a message using ICALL module. 

My question is: suppose we are talking about gapRole_task and the event is GAP_BOND_COMPLETE_EVENT, how can the stack "know" which one is the gapRole_task and send the event only to that thread? Or every stack event is passed to every registered thread and if a thread doesn't care about that particular event it simply discard it?

Davide.

  • Hello Davide,

    There is a queue and event (semaphore) mechanism used for this messaging. It's a bit out of scope to explain the internal behavior in this forum, but you can use the debugger to trace the ICall code - it's provided in 100% source form.

    Best wishes