SENSOR TASK cpp_freertos class.
More...
#include <rain_sensor_task.h>
|
| void | TaskWatchDog (uint32_t millis_standby) |
| | local watchDog and Sleep flag Task (optional) More...
|
| |
| void | TaskState (uint8_t state_position, uint8_t state_subposition, task_flag state_operation) |
| | local suspend flag and positor running state Task (optional) More...
|
| |
SENSOR TASK cpp_freertos class.
Definition at line 72 of file rain_sensor_task.h.
◆ State_t
Enum for state switch of running method.
| Enumerator |
|---|
| SENSOR_STATE_CREATE | |
| SENSOR_STATE_WAIT_CFG | |
| SENSOR_STATE_INIT | |
| SENSOR_STATE_CHECK_SPIKE | |
| SENSOR_STATE_READ | |
| SENSOR_STATE_SPIKE | |
| SENSOR_STATE_END | |
| SENSOR_STATE_SAVE_SIGNAL | |
Definition at line 75 of file rain_sensor_task.h.
◆ RainSensorTask()
| RainSensorTask::RainSensorTask |
( |
const char * |
taskName, |
|
|
uint16_t |
stackSize, |
|
|
uint8_t |
priority, |
|
|
RainSensorParam_t |
rainSensorParam |
|
) |
| |
Constructor for the sensor Task.
- Parameters
-
| taskName | name of the task |
| stackSize | size of the stack |
| priority | priority of the task |
| rainSensorParam | local parameters for the task |
Definition at line 45 of file rain_sensor_task.cpp.
◆ ISR_tipping_bucket()
| void RainSensorTask::ISR_tipping_bucket |
( |
void |
| ) |
|
|
staticprivate |
◆ Run()
| void RainSensorTask::Run |
( |
| ) |
|
|
protectedvirtual |
◆ TaskState()
| void RainSensorTask::TaskState |
( |
uint8_t |
state_position, |
|
|
uint8_t |
state_subposition, |
|
|
task_flag |
state_operation |
|
) |
| |
|
private |
local suspend flag and positor running state Task (optional)
- Parameters
-
| state_position | Sw_Position (Local STATE) |
| state_subposition | Sw_SubPosition (Optional Local SUB_STATE Position Monitor) |
| state_operation | operative mode flag status for this task |
Definition at line 108 of file rain_sensor_task.cpp.
◆ TaskWatchDog()
| void RainSensorTask::TaskWatchDog |
( |
uint32_t |
millis_standby | ) |
|
|
private |
local watchDog and Sleep flag Task (optional)
- Parameters
-
| millis_standby | time in ms to perfor check of WDT. If longer than WDT Reset, WDT is temporanly suspend |
Definition at line 83 of file rain_sensor_task.cpp.
◆ is_isr_event_running
| bool RainSensorTask::is_isr_event_running |
|
inlinestaticprivate |
◆ localRainQueue
| cpp_freertos::Queue* RainSensorTask::localRainQueue |
|
inlinestaticprivate |
◆ param
◆ rain_sensor
| rain_t RainSensorTask::rain_sensor |
|
private |
◆ state
The documentation for this class was generated from the following files: