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

test step that generates or queues a signal More...

Public Member Functions

constexpr GenerateQueueSignalStep (const SignalInformation::Code code, const uint8_t signalNumber, const int value={})
 GenerateQueueSignalStep's constructor. More...
 
int operator() (Thread &thread) const
 GenerateQueueSignalStep's function call operator. More...
 

Private Attributes

int value_
 value that will be queued with the signal, relevant only if code_ is SignalInformation::Code::generated More...
 
SignalInformation::Code code_
 
uint8_t signalNumber_
 signal number that will be generated or queued More...
 

Detailed Description

test step that generates or queues a signal

Constructor & Destructor Documentation

◆ GenerateQueueSignalStep()

constexpr distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::GenerateQueueSignalStep::GenerateQueueSignalStep ( const SignalInformation::Code  code,
const uint8_t  signalNumber,
const int  value = {} 
)
inline

GenerateQueueSignalStep's constructor.

Parameters
[in]codeselects whether the signal will be generated (SignalInformation::Code::generated) or queued (SignalInformation::Code::queued)
[in]signalNumberis the signal number that will be generated or queued
[in]valueis the value that will be queued with the signal, relevant only if code is SignalInformation::Code::queued, default - default constructed int value
Here is the call graph for this function:

Member Function Documentation

◆ operator()()

int distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::GenerateQueueSignalStep::operator() ( Thread thread) const

GenerateQueueSignalStep's function call operator.

Generates or queues selected signal.

Parameters
[in]threadis a reference to Thread to which the signal will be generated/queued
Returns
0 on success, error code otherwise
Here is the call graph for this function:

Member Data Documentation

◆ code_

SignalInformation::Code distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::GenerateQueueSignalStep::code_
private

selects whether the signal will be generated (SignalInformation::Code::generated) or queued (SignalInformation::Code::queued)

◆ signalNumber_

uint8_t distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::GenerateQueueSignalStep::signalNumber_
private

signal number that will be generated or queued

◆ value_

int distortos::test::anonymous_namespace{SignalsCatchingTestCase.cpp}::GenerateQueueSignalStep::value_
private

value that will be queued with the signal, relevant only if code_ is SignalInformation::Code::generated


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