distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::SoftwareTimerStep Class Reference

test step that creates software timer, starts it and waits until it stops More...

Public Types

using Function = void(TestStepsRange &testStepsRange, Thread &, const SignalInformation *)
 type of function for software timer More...
 

Public Member Functions

constexpr SoftwareTimerStep (Function &function)
 SoftwareTimerStep's constructor. More...
 
int operator() (TestStepsRange &testStepsRange, Thread &thread) const
 SoftwareTimerStep's function call operator. More...
 

Private Attributes

Functionfunction_
 reference to function executed by software timer More...
 

Detailed Description

test step that creates software timer, starts it and waits until it stops

Member Typedef Documentation

◆ Function

using distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::SoftwareTimerStep::Function = void(TestStepsRange& testStepsRange, Thread&, const SignalInformation*)

type of function for software timer

Constructor & Destructor Documentation

◆ SoftwareTimerStep()

constexpr distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::SoftwareTimerStep::SoftwareTimerStep ( Function function)
inline

SoftwareTimerStep's constructor.

Parameters
[in]functionis a reference to function executed by software timer
Here is the call graph for this function:

Member Function Documentation

◆ operator()()

int distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::SoftwareTimerStep::operator() ( TestStepsRange testStepsRange,
Thread thread 
) const

SoftwareTimerStep's function call operator.

Creates software timer with provided range of test steps, starts it and waits until it stops.

Parameters
[in]testStepsRangeis a reference to range of test steps
[in]threadis a reference to Thread passed to software timer
Returns
0 on success, error code otherwise
Here is the call graph for this function:

Member Data Documentation

◆ function_

Function& distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::SoftwareTimerStep::function_
private

reference to function executed by software timer


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