rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
PeriodicTimerController Class Referenceabstract

#include <periodic_task.h>

Inheritance diagram for PeriodicTimerController:
Inheritance graph
[legend]
Collaboration diagram for PeriodicTimerController:
Collaboration graph
[legend]

Public Member Functions

virtual void PeriodicTask ()=0
 
virtual int getPeriodMs ()=0
 
virtual void start ()
 

Data Fields

virtual_timer_t timer
 

Detailed Description

this is an intermediate implementation - we should probably move from using virtual_timer_t which works on interrupts into sharing one thread with potentially lower priority instead

Definition at line 23 of file periodic_task.h.

Member Function Documentation

◆ getPeriodMs()

virtual int PeriodicTimerController::getPeriodMs ( )
pure virtual

This method is invoked after corresponding PeriodicTask() invocation

Referenced by runAndScheduleNext().

Here is the caller graph for this function:

◆ PeriodicTask()

virtual void PeriodicTimerController::PeriodicTask ( )
pure virtual

Referenced by runAndScheduleNext().

Here is the caller graph for this function:

◆ start()

virtual void PeriodicTimerController::start ( )
inlinevirtual

This invokes PeriodicTask() immediately and starts the cycle of invocations and sleeps

Definition at line 40 of file periodic_task.h.

40 {
41#if !EFI_UNIT_TEST
42 chVTObjectInit(&timer);
44#endif // EFI_UNIT_TEST
45 }
virtual_timer_t timer
void runAndScheduleNext(virtual_timer_t *vtp, PeriodicTimerController *controller)
Here is the call graph for this function:

Field Documentation

◆ timer

virtual_timer_t PeriodicTimerController::timer

Definition at line 27 of file periodic_task.h.

Referenced by start().


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