SRK Version of mDot LoRa_Sensormode_SRK
Dependencies: libmDot mbed-rtos mbed
Fork of mDot_LoRa_Sensornode by
TaskProximity Class Reference
This TaskProximity Class handles the proximity measurement using the SI1143. More...
#include <TaskProximity.h>
Public Member Functions | |
osStatus | start () |
Starts the task by building it and connecting a callback function to the mbed::Thread. | |
osStatus | stop () |
Stops the task. | |
TASK_STATE | getState () |
Gets the actual state of the Task either RUNNING or SLEEPING. |
Detailed Description
This TaskProximity Class handles the proximity measurement using the SI1143.
Starting the task using the start() starts the measurement. It can be used alongside with other measurement Tasks inside the mbed::rtos environment. The Task Class basically wraps mbeds Thread functionality.
Definition at line 22 of file TaskProximity.h.
Member Function Documentation
TASK_STATE getState | ( | ) |
Gets the actual state of the Task either RUNNING or SLEEPING.
- Returns:
Definition at line 88 of file TaskProximity.cpp.
osStatus start | ( | ) |
Starts the task by building it and connecting a callback function to the mbed::Thread.
- Returns:
Definition at line 32 of file TaskProximity.cpp.
osStatus stop | ( | ) |
Stops the task.
Should only be used after start() was used
- Returns:
Definition at line 37 of file TaskProximity.cpp.
Generated on Wed Jul 13 2022 09:23:48 by 1.7.2