rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Private Attributes
scheduling_s Struct Reference

#include <scheduler.h>

Collaboration diagram for scheduling_s:
Collaboration graph
[legend]

Public Member Functions

efitick_t getMomentNt () const
 
efitick_t getMomentUs () const
 
void setMomentNt (efitick_t p_moment)
 

Data Fields

virtual_timer_t timer
 
scheduling_snextScheduling_s = nullptr
 
action_s action
 

Private Attributes

volatile efitick_t momentNt = 0
 

Detailed Description

This structure holds information about an event scheduled in the future: when to execute what callback with what parameters

Definition at line 269 of file scheduler.h.

Member Function Documentation

◆ getMomentNt()

efitick_t scheduling_s::getMomentNt ( ) const
inline

Definition at line 270 of file scheduler.h.

270 {
271 return momentNt;
272 }
volatile efitick_t momentNt
Definition scheduler.h:301

Referenced by EventQueue::assertListIsSorted(), EventQueue::executeOne(), EventQueue::getNextEventTime(), EventQueue::insertTask(), and HpfpController::pinTurnOn().

Here is the caller graph for this function:

◆ getMomentUs()

efitick_t scheduling_s::getMomentUs ( ) const
inline

Definition at line 279 of file scheduler.h.

279 {
280 return NT2US(momentNt);
281 }

◆ setMomentNt()

void scheduling_s::setMomentNt ( efitick_t  p_moment)
inline

Definition at line 284 of file scheduler.h.

284 {
285 momentNt = p_moment;
286 }

Referenced by EventQueue::clear(), and EventQueue::insertTask().

Here is the caller graph for this function:

Field Documentation

◆ action

action_s scheduling_s::action

Definition at line 296 of file scheduler.h.

Referenced by EventQueue::executeOne(), EventQueue::insertTask(), and EventQueue::remove().

◆ momentNt

volatile efitick_t scheduling_s::momentNt = 0
private

timestamp represented as 64-bit value of ticks since MCU start

Definition at line 301 of file scheduler.h.

Referenced by getMomentNt(), getMomentUs(), and setMomentNt().

◆ nextScheduling_s

scheduling_s* scheduling_s::nextScheduling_s = nullptr

◆ timer

virtual_timer_t scheduling_s::timer

Definition at line 290 of file scheduler.h.


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