Stima V4 Slave RAIN  4.2
RainSensorTask Class Reference

SENSOR TASK cpp_freertos class. More...

#include <rain_sensor_task.h>

Inheritance diagram for RainSensorTask:

Public Member Functions

 RainSensorTask (const char *taskName, uint16_t stackSize, uint8_t priority, RainSensorParam_t rainSensorParam)
 Constructor for the sensor Task. More...
 

Protected Member Functions

virtual void Run ()
 RUN Task. More...
 

Private Types

enum  State_t {
  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
}
 Enum for state switch of running method. More...
 

Private Member Functions

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...
 

Static Private Member Functions

static void ISR_tipping_bucket (void)
 ISR Waiting event (restore task) More...
 

Private Attributes

State_t state
 
RainSensorParam_t param
 
rain_t rain_sensor
 

Static Private Attributes

static cpp_freertos::Queue * localRainQueue
 
static bool is_isr_event_running
 

Detailed Description

SENSOR TASK cpp_freertos class.

Definition at line 72 of file rain_sensor_task.h.

Member Enumeration Documentation

◆ 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.

Constructor & Destructor Documentation

◆ RainSensorTask()

RainSensorTask::RainSensorTask ( const char *  taskName,
uint16_t  stackSize,
uint8_t  priority,
RainSensorParam_t  rainSensorParam 
)

Constructor for the sensor Task.

Parameters
taskNamename of the task
stackSizesize of the stack
prioritypriority of the task
rainSensorParamlocal parameters for the task

Definition at line 45 of file rain_sensor_task.cpp.

Member Function Documentation

◆ ISR_tipping_bucket()

void RainSensorTask::ISR_tipping_bucket ( void  )
staticprivate

ISR Waiting event (restore task)

Definition at line 389 of file rain_sensor_task.cpp.

◆ Run()

void RainSensorTask::Run ( )
protectedvirtual

RUN Task.

Definition at line 123 of file rain_sensor_task.cpp.

◆ 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_positionSw_Position (Local STATE)
state_subpositionSw_SubPosition (Optional Local SUB_STATE Position Monitor)
state_operationoperative 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_standbytime 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.

Member Data Documentation

◆ is_isr_event_running

bool RainSensorTask::is_isr_event_running
inlinestaticprivate

Definition at line 110 of file rain_sensor_task.h.

◆ localRainQueue

cpp_freertos::Queue* RainSensorTask::localRainQueue
inlinestaticprivate

Definition at line 107 of file rain_sensor_task.h.

◆ param

RainSensorParam_t RainSensorTask::param
private

Definition at line 103 of file rain_sensor_task.h.

◆ rain_sensor

rain_t RainSensorTask::rain_sensor
private

Definition at line 104 of file rain_sensor_task.h.

◆ state

State_t RainSensorTask::state
private

Definition at line 102 of file rain_sensor_task.h.


The documentation for this class was generated from the following files: