|
| enum | state_t : uint8_t { READY = 0
, SLEEPING = 1
, SUSPENDED = 2
, BLOCKED = 3
} |
| |
|
| | task (const char *n, uint16_t stack_size=DEFAULT_STACK_SIZE) |
| |
| virtual void | run () |
| |
Definition at line 39 of file task.h.
◆ state_t
| enum task::state_t : uint8_t |
◆ task() [1/2]
| task::task |
( |
std::function< void()> | f, |
|
|
const char * | n, |
|
|
uint16_t | stack_size = DEFAULT_STACK_SIZE ) |
◆ ~task()
◆ task() [2/2]
| task::task |
( |
const char * | n, |
|
|
uint16_t | stack_size = DEFAULT_STACK_SIZE ) |
|
explicitprotected |
◆ _getStackBase()
| static uint8_t * task::_getStackBase |
( |
| ) |
|
|
inlinestatic |
◆ _getStackPtr()
| static uint8_t * task::_getStackPtr |
( |
| ) |
|
|
inlinestatic |
◆ _scheduler()
| void task::_scheduler |
( |
| ) |
|
|
static |
◆ _setStackPtr()
| static void task::_setStackPtr |
( |
uint8_t * | s | ) |
|
|
inlinestatic |
◆ _switchToHead()
| static void task::_switchToHead |
( |
| ) |
|
|
inlinestatic |
◆ _switchToNext()
| static void task::_switchToNext |
( |
| ) |
|
|
inlinestatic |
◆ _tick_handler()
| void task::_tick_handler |
( |
| ) |
|
|
static |
◆ block()
◆ cpu_sleep()
◆ currentTask()
| static task * task::currentTask |
( |
| ) |
|
|
inlinestatic |
◆ enterCritical()
| void task::enterCritical |
( |
| ) |
|
|
static |
◆ get_core()
| int8_t task::get_core |
( |
| ) |
|
|
static |
◆ getDeltaTicks()
| uint32_t task::getDeltaTicks |
( |
| ) |
|
◆ getMillisRun()
| uint32_t task::getMillisRun |
( |
| ) |
const |
|
inline |
◆ getName()
| const char * task::getName |
( |
| ) |
const |
|
inline |
◆ getPriority()
| uint16_t task::getPriority |
( |
| ) |
const |
|
inline |
◆ getStackSize()
| uint16_t task::getStackSize |
( |
| ) |
const |
|
inline |
◆ getState()
| state_t task::getState |
( |
| ) |
const |
|
inline |
◆ getUsedStack()
| uint16_t task::getUsedStack |
( |
| ) |
|
◆ is_irq_context()
| bool task::is_irq_context |
( |
| ) |
|
|
static |
◆ isLinkedIn()
| bool task::isLinkedIn |
( |
| ) |
const |
|
inline |
◆ isPrivileged()
| bool task::isPrivileged |
( |
| ) |
const |
◆ isUsingFloat()
| bool task::isUsingFloat |
( |
| ) |
const |
◆ join()
| void task::join |
( |
| ) |
const |
◆ leaveCritical()
| void task::leaveCritical |
( |
| ) |
|
|
static |
◆ millis()
| uint64_t task::millis |
( |
| ) |
|
|
static |
◆ multitasking_running()
| bool task::multitasking_running |
( |
| ) |
|
|
static |
◆ resume()
◆ run()
| virtual void task::run |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ setPriority()
| void task::setPriority |
( |
uint16_t | p | ) |
|
|
inline |
◆ sign_up()
| void task::sign_up |
( |
core_t | c = core_t::CURRENT_CORE, |
|
|
uint16_t | priority = DEFAULT_PRIORITY, |
|
|
bool | priv = false ) |
◆ sleep_ms()
| void task::sleep_ms |
( |
uint32_t | ms | ) |
|
|
static |
◆ start_scheduler()
| void task::start_scheduler |
( |
| ) |
|
|
static |
◆ state_to_str()
| static const char * task::state_to_str |
( |
state_t | state | ) |
|
|
inlinestatic |
◆ stop()
◆ suspend()
◆ yield()
◆ circular_list< task >
◆ task_monitor
The documentation for this class was generated from the following files:
- /builds/Terstegge/yahal_with_examples/src/task/task.h
- /builds/Terstegge/yahal_with_examples/src/MCU/msp432p401r/task_msp432.cpp
- /builds/Terstegge/yahal_with_examples/src/MCU/rp2040/task_rp2040.cpp
- /builds/Terstegge/yahal_with_examples/src/MCU/rp2350/task_rp2350.cpp
- /builds/Terstegge/yahal_with_examples/src/task/task.cpp