rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
system
timer
scheduler.cpp
Go to the documentation of this file.
1
/**
2
* @file scheduler.h
3
*
4
* @date October 1, 2020
5
*/
6
#include "
pch.h
"
7
8
#include "
scheduler.h
"
9
10
void
action_s::execute
() {
11
efiAssertVoid(
ObdCode::CUSTOM_ERR_ASSERT
,
m_callback
!= NULL,
"callback==null1"
);
12
m_callback
(
m_param
);
13
}
14
15
schfunc_t
action_s::getCallback
()
const
{
16
return
m_callback
;
17
}
18
19
void
*
action_s::getArgument
()
const
{
20
return
m_param
;
21
}
22
23
#if EFI_UNIT_TEST
24
efitick_t
scheduling_s::getMomentUs
()
const
{
25
return
NT2US(
momentNt
);
26
}
27
#endif
action_s::execute
void execute()
Definition
scheduler.cpp:10
action_s::getArgument
void * getArgument() const
Definition
scheduler.cpp:19
action_s::m_callback
schfunc_t m_callback
Definition
scheduler.h:55
action_s::m_param
void * m_param
Definition
scheduler.h:56
action_s::getCallback
schfunc_t getCallback() const
Definition
scheduler.cpp:15
ObdCode::CUSTOM_ERR_ASSERT
@ CUSTOM_ERR_ASSERT
pch.h
scheduler.h
schfunc_t
void(* schfunc_t)(void *)
Definition
scheduler.h:9
scheduling_s::getMomentUs
efitick_t getMomentUs() const
Definition
scheduler.cpp:24
scheduling_s::momentNt
volatile efitick_t momentNt
Definition
scheduler.h:89
Generated on Sun Jun 15 2025 00:10:37 for rusEFI by
1.9.8