Please explain the "Last BLE event" enum

7 posts / 0 new
Last post
ciano
Offline
Last seen:5 days 17 hours ago
加入:2014-10-03 08:13
Please explain the "Last BLE event" enum

Hi Dialog,

I need to do some measurements synchronized with the BLE stack in the inline function app_asynch_trm(void)
In this function I need to do some testing on the current state of the BLE stack.
I believe the right place to look is the enum called last_ble_evt.

Could you give a detailed description of this enum, and how it is intended for being used?

I have listed the enum here, which can be found in arch_sleep.h

/*Last BLE event. Used for application's synchronisation with BLE activity

For Future use
BLE_EVT_WKUP,
BLE_EVT_CSCNT,
BLE_EVT_FINE,
*/
enum last_ble_evt
{
BLE_EVT_SLP,
BLE_EVT_RX,
BLE_EVT_TX,
BLE_EVT_END,

};

Best Regards,
Ciano Frost
Denmark

JE_Dialog
Offline
Last seen:3 weeks 3 days ago
Staff
加入:2013-12-05 14:02
Hello Ciano,

Hello Ciano,

I'm looking into this : we added it on SDK3.0.4 feature, but i cannot find the documentation to it. Will get back to you as soon as i have that .

BR JE_Dialog

ciano
Offline
Last seen:5 days 17 hours ago
加入:2014-10-03 08:13
Hi JE_Dialog

Hi JE_Dialog

That explains why I couldn't find any description of it :-)
Looking forward to get the info from you.

Best Regards,
Ciano Frost
Denmark

ciano
Offline
Last seen:5 days 17 hours ago
加入:2014-10-03 08:13
Dear Dialog,

Dear Dialog,

Do you have any news on the starting question on this thread?

Best Regards,
Ciano Frost
Denmark

JE_Dialog
Offline
Last seen:3 weeks 3 days ago
Staff
加入:2013-12-05 14:02
Hello Ciano : sorry for

Hello Ciano : sorry for delayed response -check paragraph 7 of UM-B-006 : Sleep mode configuration . Its the last tabulated definition.

BR JE_Dialog

hardy.chen
Offline
Last seen:1 year 9 months ago
加入:2015-03-13 04:20
Hi Dialog team,

Hi Dialog team,

I still don't understand the cause of app_last_rwble_evt_get () from UM-B-006, can someone explain it for me?
Please refer to my question on post 'http://support.dialog-semiconductor.com/modifying-advertising-data-package'

---From UM-B-006---
uint8_t app_last_rwble_evt_get(void)
Returns a value that informs about the last BLE or radio interrupt that has occurred. The values returned by this function are defined in last_ble_evt
enumeration in arch_sleep.h. It can be used to synchronise asynchronous tasks, which are executed in previously described hooks, with BLE or radio events.

MT_dialog
Offline
Last seen:1 month 4 weeks ago
Staff
加入:2015-06-08 11:34
Hi hardy.chen,

Hi hardy.chen,

The app_last_rwble_evt_get returns the last BLE interrupt that has been occured in the system, for example if the system executes a Transmit event, the function will return BLE_EVT_TX and when the trasmition is over the function will return a BLE_EVT_END.

Thanks MT_dialog