Stima V4 Slave RAIN  4.2
ElaborateDataTask Class Reference

ELABORATE DATA TASK cpp_freertos class. More...

#include <elaborate_data_task.h>

Inheritance diagram for ElaborateDataTask:

Public Member Functions

 ElaborateDataTask (const char *taskName, uint16_t stackSize, uint8_t priority, ElaborateDataParam_t elaborateDataParam)
 Construct the Elaborate Data Task::ElaborateDataTask object. More...
 

Protected Member Functions

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

Private Types

enum  State_t { ELABORATE_DATA_CREATE , ELABORATE_DATA_INIT , ELABORATE_DATA_RUN , ELABORATE_DATA_SUSPEND }
 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...
 
void make_report (uint16_t report_time_s=REPORTS_TIME_S, uint8_t observation_time_s=OBSERVATIONS_TIME_S)
 Create an RMAP report value. More...
 
uint8_t checkRain (void)
 Check sensor Quality. More...
 

Private Attributes

STM32RTC & rtc = STM32RTC::getInstance()
 
State_t state
 
ElaborateDataParam_t param
 
sample_t rain_samples
 
rain_t rain_elaborate
 
report_t report_last
 
report_t report
 

Detailed Description

ELABORATE DATA TASK cpp_freertos class.

Definition at line 88 of file elaborate_data_task.h.

Member Enumeration Documentation

◆ State_t

Enum for state switch of running method.

Enumerator
ELABORATE_DATA_CREATE 
ELABORATE_DATA_INIT 
ELABORATE_DATA_RUN 
ELABORATE_DATA_SUSPEND 

Definition at line 91 of file elaborate_data_task.h.

Constructor & Destructor Documentation

◆ ElaborateDataTask()

ElaborateDataTask::ElaborateDataTask ( const char *  taskName,
uint16_t  stackSize,
uint8_t  priority,
ElaborateDataParam_t  elaborateDataParam 
)

Construct the Elaborate Data Task::ElaborateDataTask object.

Parameters
taskNamename of the task
stackSizesize of the stack
prioritypriority of the task
elaborateDataParamparameters for the task

Definition at line 43 of file elaborate_data_task.cpp.

Member Function Documentation

◆ checkRain()

uint8_t ElaborateDataTask::checkRain ( void  )
private

Check sensor Quality.

Returns
Quality of measure (0-100%)

Definition at line 282 of file elaborate_data_task.cpp.

◆ make_report()

void ElaborateDataTask::make_report ( uint16_t  report_time_s = REPORTS_TIME_S,
uint8_t  observation_time_s = OBSERVATIONS_TIME_S 
)
private

Create an RMAP report value.

Parameters
report_time_stime of report
observation_time_stime to make an observation

Definition at line 336 of file elaborate_data_task.cpp.

◆ Run()

void ElaborateDataTask::Run ( )
protectedvirtual

RUN Task.

Definition at line 108 of file elaborate_data_task.cpp.

◆ TaskState()

void ElaborateDataTask::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 93 of file elaborate_data_task.cpp.

◆ TaskWatchDog()

void ElaborateDataTask::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 68 of file elaborate_data_task.cpp.

Member Data Documentation

◆ param

ElaborateDataParam_t ElaborateDataTask::param
private

Definition at line 119 of file elaborate_data_task.h.

◆ rain_elaborate

rain_t ElaborateDataTask::rain_elaborate
private

Definition at line 123 of file elaborate_data_task.h.

◆ rain_samples

sample_t ElaborateDataTask::rain_samples
private

Definition at line 121 of file elaborate_data_task.h.

◆ report

report_t ElaborateDataTask::report
private

Definition at line 125 of file elaborate_data_task.h.

◆ report_last

report_t ElaborateDataTask::report_last
private

Definition at line 124 of file elaborate_data_task.h.

◆ rtc

STM32RTC& ElaborateDataTask::rtc = STM32RTC::getInstance()
private

Definition at line 116 of file elaborate_data_task.h.

◆ state

State_t ElaborateDataTask::state
private

Definition at line 118 of file elaborate_data_task.h.


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