AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
Loading...
Searching...
No Matches
AFBR-S50 Explorer Application - Tasks

AFBR-S50 Explorer Application - Tasks. More...

Collaboration diagram for AFBR-S50 Explorer Application - Tasks:

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.
 

Detailed Description

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.

Enumeration Type Documentation

◆ explorer_task_t

Explorer Application Task numbers (and priority!).

Enumerator
TASK_ERROR 

ID and Priority of error handling task.

TASK_HNDL_CMD 

ID and Priority of command handling task.

TASK_SEND_DAT 

ID and Priority of send results task.

TASK_EVAL_DAT 

ID and Priority of evaluate data task.

TASK_IDLE 

ID and Priority of the idle task.

Function Documentation

◆ ExplorerApp_InitTasks()

status_t ExplorerApp_InitTasks ( )

Initializes the scheduler tasks.


Returns
Returns the status (STATUS_OK on success).

◆ ExplorerApp_MeasurementReadyCallback()

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.

Parameters
statusThe current API measurement status.
argusThe AFBR-S50-API instance that invokes the callback.
Returns
Returns the status (STATUS_OK on success).

◆ ExplorerApp_SwitchContext()

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.