Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
task_schedule_state Struct Reference

State for a given task schedule. More...

#include <schedule.h>

Data Fields

struct task_schedule_statelinked
 Linked schedule for TASK_PERIODICITY_AFTER.
 
task_schedule_event_cb_t event_cb
 Optional callback to be notified of schedule events.
 
uint32_t last_run
 System uptime that started the last run of this schedule.
 
uint32_t runtime
 Duration of current run.
 
uint32_t last_terminate
 System uptime at termination of last run of this schedule.
 
uint8_t task_idx
 Index into task array that corresponds with schedule task_id.
 

Detailed Description

State for a given task schedule.

One state struct exists per task_schedule

Field Documentation

◆ event_cb

task_schedule_event_cb_t task_schedule_state::event_cb

Optional callback to be notified of schedule events.

◆ last_run

uint32_t task_schedule_state::last_run

System uptime that started the last run of this schedule.

◆ last_terminate

uint32_t task_schedule_state::last_terminate

System uptime at termination of last run of this schedule.

◆ linked

struct task_schedule_state* task_schedule_state::linked

Linked schedule for TASK_PERIODICITY_AFTER.

◆ runtime

uint32_t task_schedule_state::runtime

Duration of current run.

◆ task_idx

uint8_t task_schedule_state::task_idx

Index into task array that corresponds with schedule task_id.


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