Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Core
Error codes | |
typedef int | nfc_err_t |
Type for NFC errors. | |
Scheduler | |
typedef struct __nfc_timer | nfc_scheduler_timer_t |
typedef struct __nfc_task | nfc_task_t |
typedef struct __scheduler | nfc_scheduler_t |
typedef void(* | nfc_task_fn )(uint32_t events, void *pUserData) |
void | nfc_scheduler_timer_init (nfc_scheduler_timer_t *timer) |
void | nfc_scheduler_timer_start (nfc_scheduler_timer_t *timer) |
uint32_t | nfc_scheduler_timer_get (nfc_scheduler_timer_t *timer) |
void | nfc_scheduler_timer_stop (nfc_scheduler_timer_t *timer) |
void | nfc_scheduler_timer_reset (nfc_scheduler_timer_t *timer) |
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. |
Typedef Documentation
typedef int nfc_err_t |
Type for NFC errors.
Definition at line 59 of file nfc_errors.h.
Function Documentation
void nfc_scheduler_dequeue_task | ( | nfc_scheduler_t * | pScheduler, |
bool | abort, | ||
nfc_task_t * | pTask | ||
) |
Remove a task to execute.
- Parameters:
-
pScheduler scheduler instance pTask task to remove abort abort task if queued
Definition at line 148 of file nfc_scheduler.c.
void nfc_scheduler_init | ( | nfc_scheduler_t * | pScheduler, |
nfc_scheduler_timer_t * | pTimer | ||
) |
Init scheduler.
- Parameters:
-
pScheduler scheduler instance to init pTimer timer instance
Definition at line 34 of file nfc_scheduler.c.
uint32_t nfc_scheduler_iteration | ( | nfc_scheduler_t * | pScheduler, |
uint32_t | events | ||
) |
Iterate through all tasks.
- Parameters:
-
pScheduler scheduler instance events mask of events (except EVENT_TIMEOUT) that have been raised since this function last returned (0 on first call)
- Returns:
- time after which this function must be called again if no other event arises
Definition at line 45 of file nfc_scheduler.c.
void nfc_scheduler_queue_task | ( | nfc_scheduler_t * | pScheduler, |
nfc_task_t * | pTask | ||
) |
Queue a task to execute.
- Parameters:
-
pScheduler scheduler instance pTask task to queue
Definition at line 131 of file nfc_scheduler.c.
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.
- 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
Definition at line 179 of file nfc_scheduler.c.
Generated on Tue Jul 12 2022 13:55:27 by
