AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
AFBR-S50 Explorer Application - Tasks. More...
Enumerations | |
enum | explorer_task_t { TASK_ERROR = 7U , TASK_HNDL_CMD = 6U , TASK_SEND_DAT = 2U , TASK_EVAL_DAT = 1U , TASK_IDLE = 0U } |
Functions | |
status_t | ExplorerApp_InitTasks () |
Initializes the scheduler tasks. | |
status_t | ExplorerApp_MeasurementReadyCallback (status_t status, argus_hnd_t *argus) |
Callback function after measurement cycle was finished. | |
void | ExplorerApp_SwitchContext (void) |
Switches the scheduler task context. | |
AFBR-S50 Explorer Application - Tasks.
Contains the scheduler task definitions for the AFBR-S50 Explorer Application.
A simple task scheduler is used to host the Argus API and a simple systems communication interface is implemented to connect to the AFBR-S50 Explorer GUI. The latter is an evaluation software for the Argus time-of-flight devices.
enum explorer_task_t |
Explorer Application Task numbers (and priority!).
status_t ExplorerApp_InitTasks | ( | ) |
status_t ExplorerApp_MeasurementReadyCallback | ( | status_t | status, |
argus_hnd_t * | argus | ||
) |
Callback function after measurement cycle was finished.
Pass this to the Argus_StartMeasurementTimer and Argus_TriggerMeasurement functions.
status | The current API measurement status. |
argus | The AFBR-S50-API instance that invokes the callback. |
void ExplorerApp_SwitchContext | ( | void | ) |
Switches the scheduler task context.
Pauses the execution of the current task and lets the lower priority tasks run. Useful when current task depends on any lower priority task.