YAHAL
Yet Another Hardware Abstraction Library
Loading...
Searching...
No Matches
task_monitor Class Reference
Inheritance diagram for task_monitor:
task_timer task timer_interface

Public Member Functions

 task_monitor (const task_monitor &)=delete
 
task_monitoroperator= (const task_monitor &)=delete
 
- Public Member Functions inherited from task_timer
 task_timer (const char *name, uint16_t stack_size=DEFAULT_STACK_SIZE)
 
 task_timer (const task_timer &)=delete
 
task_timeroperator= (const task_timer &)=delete
 
void setPeriod (uint32_t us, TIMER::timer_mode mode) override
 
uint32_t getPeriod () override
 
void setCallback (function< void()> f) override
 
void start () override
 
void stop () override
 
bool isRunning () override
 
void reset () override
 
void run () override
 
- Public Member Functions inherited from task
 task (std::function< void()> f, const char *n, uint16_t stack_size=DEFAULT_STACK_SIZE)
 
 task (const task &)=delete
 
taskoperator= (const task &)=delete
 
void sign_up (core_t=core_t::CURRENT_CORE, uint16_t priority=DEFAULT_PRIORITY, bool priv=false)
 
void stop ()
 
void suspend ()
 
void resume ()
 
void block (lock_base_interface *lbi)
 
void join () const
 
const char * getName () const
 
uint16_t getPriority () const
 
void setPriority (uint16_t p)
 
state_t getState () const
 
uint32_t getMillisRun () const
 
uint16_t getStackSize () const
 
bool isLinkedIn () const
 
uint16_t getUsedStack ()
 
uint32_t getDeltaTicks ()
 
bool isPrivileged () const
 
bool isUsingFloat () const
 
- Public Member Functions inherited from timer_interface

Additional Inherited Members

- Public Types inherited from task
enum  state_t : uint8_t { READY = 0 , SLEEPING = 1 , SUSPENDED = 2 , BLOCKED = 3 }
 
- Static Public Member Functions inherited from task
static const char * state_to_str (state_t state)
 
static void sleep_ms (uint32_t ms)
 
static void start_scheduler ()
 
static void yield ()
 
static void cpu_sleep ()
 
static void enterCritical ()
 
static void leaveCritical ()
 
static uint64_t millis ()
 
static bool is_irq_context ()
 
static bool multitasking_running ()
 
static int8_t get_core ()
 
static void _scheduler ()
 
static void _tick_handler ()
 
static taskcurrentTask ()
 
static void _switchToHead ()
 
static void _switchToNext ()
 
static uint8_t * _getStackBase ()
 
static uint8_t * _getStackPtr ()
 
static void _setStackPtr (uint8_t *s)
 
- Protected Member Functions inherited from task
 task (const char *n, uint16_t stack_size=DEFAULT_STACK_SIZE)
 
- Protected Member Functions inherited from timer_interface

Detailed Description

Definition at line 44 of file task_monitor.h.

Constructor & Destructor Documentation

◆ task_monitor()

task_monitor::task_monitor ( )
inline

Definition at line 47 of file task_monitor.h.


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