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

#include <engine_parts.h>

Collaboration diagram for warning_t:
Collaboration graph
[legend]

Public Member Functions

 warning_t ()
 
 warning_t (ObdCode code)
 
bool operator== (const warning_t &other) const
 
bool operator== (const ObdCode other) const
 

Data Fields

Timer LastTriggered
 
ObdCode Code = ObdCode::None
 

Detailed Description

Definition at line 31 of file engine_parts.h.

Constructor & Destructor Documentation

◆ warning_t() [1/2]

warning_t::warning_t ( )
inline

Definition at line 35 of file engine_parts.h.

35{ }

◆ warning_t() [2/2]

warning_t::warning_t ( ObdCode  code)
inlineexplicit

Definition at line 37 of file engine_parts.h.

38 : Code(code)
39 {
40 }
uint8_t code
Definition bluetooth.cpp:40
ObdCode Code

Member Function Documentation

◆ operator==() [1/2]

bool warning_t::operator== ( const ObdCode  other) const
inline

Definition at line 48 of file engine_parts.h.

48 {
49 return other == Code;
50 }

◆ operator==() [2/2]

bool warning_t::operator== ( const warning_t other) const
inline

Definition at line 43 of file engine_parts.h.

43 {
44 return other.Code == Code;
45 }

Field Documentation

◆ Code

ObdCode warning_t::Code = ObdCode::None

Definition at line 33 of file engine_parts.h.

Referenced by operator==(), operator==(), and WarningCodeState::refreshTs().

◆ LastTriggered

Timer warning_t::LastTriggered

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