#include <modm/processing/resumable/nested_resumable.hpp>
template<uint8_t Levels = 1>
class modm::NestedResumable< Levels >
- Author
- Niklas Hauser
- Template Parameters
-
Levels | maximum number of nesting levels (should be <128): max(number of resumable functions that are called within resumable functions) + 1 |
template<uint8_t Levels = 1>
Run the resumable function.
You need to implement this method in you subclass yourself.
- Returns
- >
NestingError
if still running, <=NestingError
if it has finished.
template<uint8_t Levels = 1>
int8_t modm::NestedResumable< Levels >::getResumableDepth |
( |
| ) |
const |
|
inline |
- Returns
- the nesting depth in the current resumable function, or -1 if called outside any resumable function
template<uint8_t Levels = 1>
bool modm::NestedResumable< Levels >::isResumableRunning |
( |
| ) |
const |
|
inline |
- 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: