modm API documentation
TestingSpawningComplexThread Class Reference
Inheritance diagram for TestingSpawningComplexThread:
modm::NestedResumable< 2 >

Public Member Functions

modm::ResumableResult< uint16_t > parentResumable ()
 
modm::ResumableResult< ReturnType > resumable function (...)
 
int8_t getResumableDepth () const
 
bool isResumableRunning () const
 
void stopResumable ()
 Force all resumable functions to stop running at the current nesting level.
 

Public Attributes

uint8_t state
 
uint8_t result1
 
int8_t result2
 
uint8_t resultLocal1
 
int8_t resultLocal2
 
uint8_t resultIf1
 
int8_t resultIf2
 
uint8_t resultFunction1
 
int8_t resultFunction2
 
uint8_t resultStack1
 
int8_t resultStack2
 

Protected Member Functions

modm::ResumableResult< uint8_t > spawningResumable1 ()
 
modm::ResumableResult< int8_t > spawningResumable2 ()
 
void setResultFunction1 (uint8_t value)
 
void setResultFunction2 (const int8_t &value)
 

Member Function Documentation

modm::ResumableResult< ReturnType > resumable modm::NestedResumable< 1 >::function (   ...)
inherited

Run the resumable function.

You need to implement this method in you subclass yourself.

Returns
>NestingError if still running, <=NestingError if it has finished.
int8_t modm::NestedResumable< 1 >::getResumableDepth ( ) const
inheritedinline
Returns
the nesting depth in the current resumable function, or -1 if called outside any resumable function
bool modm::NestedResumable< 1 >::isResumableRunning ( ) const
inheritedinline
Returns
true if a resumable function is running at the current nesting level, else false

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