![]() |
Mbed OS Reference
|
Data Structures | |
| struct | __scheduler |
| struct | __nfc_task |
Scheduler | |
| void | nfc_scheduler_init (nfc_scheduler_t *pScheduler, nfc_scheduler_timer_t *pTimer) |
| Init scheduler. | |
| uint32_t | nfc_scheduler_iteration (nfc_scheduler_t *pScheduler, uint32_t events) |
| Iterate through all tasks. | |
| void | nfc_scheduler_queue_task (nfc_scheduler_t *pScheduler, nfc_task_t *pTask) |
| Queue a task to execute. | |
| void | nfc_scheduler_dequeue_task (nfc_scheduler_t *pScheduler, bool abort, nfc_task_t *pTask) |
| Remove a task to execute. | |
| void | task_init (nfc_task_t *pTask, uint32_t events, uint32_t timeout, nfc_task_fn fn, void *pUserData) |
| Initialize task with the following parameters. | |
| void nfc_scheduler_init | ( | nfc_scheduler_t * | pScheduler, |
| nfc_scheduler_timer_t * | pTimer | ||
| ) |
Init scheduler.
| pScheduler | scheduler instance to init |
| pTimer | timer instance |
| uint32_t nfc_scheduler_iteration | ( | nfc_scheduler_t * | pScheduler, |
| uint32_t | events | ||
| ) |
Iterate through all tasks.
| pScheduler | scheduler instance |
| events | mask of events (except EVENT_TIMEOUT) that have been raised since this function last returned (0 on first call) |
| void nfc_scheduler_queue_task | ( | nfc_scheduler_t * | pScheduler, |
| nfc_task_t * | pTask | ||
| ) |
Queue a task to execute.
| pScheduler | scheduler instance |
| pTask | task to queue |
| void nfc_scheduler_dequeue_task | ( | nfc_scheduler_t * | pScheduler, |
| bool | abort, | ||
| nfc_task_t * | pTask | ||
| ) |
Remove a task to execute.
| pScheduler | scheduler instance |
| pTask | task to remove |
| abort | abort task if queued |
| void task_init | ( | nfc_task_t * | pTask, |
| uint32_t | events, | ||
| uint32_t | timeout, | ||
| nfc_task_fn | fn, | ||
| void * | pUserData | ||
| ) |
Initialize task with the following parameters.
| pTask | task to initialize |
| events | events on which to call task |
| timeout | if relevant |
| fn | function to be called |
| pUserData | data that will be passed to function |