I'm trying to understand the function app_sched_queue_space_get()
There is a description on the following page:
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v16.0.0%2Fgroup__app__scheduler.html
Function for getting the current amount of free space in the queue. The real amount of free space may be less if entries are being added from an interrupt. To get the sxact value, this function should be called from the critical section.
|
I'm not sure what sxact means? It could be a typo, but I found it on all SDK versions.
The documentation doesn't tell what unit this function returns? Is it available bytes or slots?
When I run my program, this function usually returns 31. I thought that if I increase SCHED_QUEUE_SIZE, the value would increase as well?
I tried SCHED_QUEUE_SIZE 192 and 1024, but the return value remains around 31.
I do see a decrease in RAM in the memory usage (view - memory usage) when I increase the queue size.
I'm using s140_nrf52_7.0.1_softdevice