rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
system
efi_output.cpp
Go to the documentation of this file.
1
/*
2
* @file efi_output.cpp
3
*
4
*/
5
6
#include "
pch.h
"
7
#include "
efi_output.h
"
8
9
bool
SwitchedState::update
(
bool
const
newState) {
10
if
(
state
==
nullptr
) {
11
return
false
;
12
}
13
14
if
(newState != *
state
) {
15
*
state
= newState ? 1 : 0;
16
counter
++;
17
return
true
;
18
}
19
20
return
false
;
21
}
22
23
uint16_t
SwitchedState::getCounter
()
const
{
24
return
counter
;
25
}
SwitchedState::update
bool update(bool newState)
Definition
efi_output.cpp:9
SwitchedState::counter
uint16_t counter
Definition
efi_output.h:31
SwitchedState::getCounter
uint16_t getCounter() const
Definition
efi_output.cpp:23
SwitchedState::state
int8_t * state
Definition
efi_output.h:30
efi_output.h
pch.h
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8