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
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
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
Dear Dialog,
Do you have any news on the starting question on this thread?
Best Regards,
Ciano Frost
Denmark
Hello Ciano : sorry for delayed response -check paragraph 7 of UM-B-006 : Sleep mode configuration . Its the last tabulated definition.
BR JE_Dialog
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.
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