SRK Version of mDot LoRa_Sensormode_SRK

Dependencies:   libmDot mbed-rtos mbed

Fork of mDot_LoRa_Sensornode by Adrian Mitevski

Embed: (wiki syntax)

« Back to documentation index

TaskLight Class Reference

TaskLight Class Reference

This TaskLight Class handles the light measurement using the MAX44009. More...

#include <TaskLight.h>

Public Member Functions

osStatus start ()
 Starts the task by building and its measurement.
osStatus stop ()
 Stops the task.
TASK_STATE getState ()
 Gets the actual state of the Task either RUNNING or SLEEPING.

Detailed Description

This TaskLight Class handles the light measurement using the MAX44009.

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 26 of file TaskLight.h.


Member Function Documentation

TASK_STATE getState (  )

Gets the actual state of the Task either RUNNING or SLEEPING.

Returns:

Definition at line 96 of file TaskLight.cpp.

osStatus start (  )

Starts the task by building and its measurement.

Returns:

Definition at line 38 of file TaskLight.cpp.

osStatus stop (  )

Stops the task.

Should only be used after start() was used

Returns:

Definition at line 44 of file TaskLight.cpp.