Lines Matching refs:loop
13 - run loop
19 that is necessary to setup BTstack. From the point when the run loop
277 // select embedded run loop
297 First, BTstack’s memory pools are set up. Then, the standard run loop
317 executing the run loop.
342 ## Run loop configuration {#sec:runLoopHowTo}
345 and [the run loop](#sec:runLoopHowTo) respectively, then setup HCI and all needed higher
348 BTstack uses the concept of a run loop to handle incoming data and to schedule work.
349 The run loop handles events from two different types of sources: data
374 BTstack provides different run loop implementations that implement the *btstack_run_loop_t* interfa…
386 are not used as the HCI transport driver and the run loop is implemented in a different way (WICED).
389 In your code, you'll have to configure the run loop before you start it
394 The run loop is set up by calling *btstack_run_loop_init* function and providing
395 an instance of the actual run loop. E.g. for the embedded platform, it is:
401 If the run loop allows to trigger polling of data sources from interrupt context,
405 *btstack_run_loop_execute_code_on_main_thread* can be used to schedule a callback on the main loop.
407 The complete Run loop API is provided [here](appendix/apis/#sec:runLoopAPIAppendix).
412 In the embedded run loop implementation, data sources are constantly polled and
415 The complete run loop cycle looks like this: first, the callback
418 Finally, it will be checked if another run loop iteration has been
419 requested by an interrupt handler. If not, the run loop will put the MCU
424 situation where a data source becomes ready just before the run loop
429 entering sleep mode causing another run loop cycle.
439 The FreeRTOS run loop is used on a dedicated FreeRTOS thread and it uses a FreeRTOS queue to schedu…
452 The data sources are standard File Descriptors. In the run loop execute implementation,
461 ### Run loop CoreFoundation (OS X/iOS)
463 This run loop directly maps BTstack's data source and timer source with CoreFoundation objects.
474 This run loop directly maps BTstack's data source and timer source with Qt Core objects.
482 ### Run loop Windows
484 The data sources are Event objects. In the run loop implementation WaitForMultipleObjects() call
490 ### Run loop WICED
494 Instead, the run loop provides a message queue that allows to schedule functions calls on its threa…
597 After the hardware and BTstack are set up, the run loop is entered. From