rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions
AemXSeriesEgt Class Referencefinal

#include <AemXSeriesEgt.h>

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

Public Member Functions

 AemXSeriesEgt (uint8_t sensorIndex, SensorType type)
 
- Public Member Functions inherited from CanSensorBase
 CanSensorBase (uint32_t eid, SensorType type, efidur_t timeout)
 
void showInfo (const char *sensorName) const override
 
- Public Member Functions inherited from StoredValueSensor
SensorResult get () const final override
 
 StoredValueSensor (SensorType type, efidur_t timeoutNt)
 
void invalidate ()
 
void invalidate (UnexpectedCode why)
 
void setValidValue (float value, efitick_t timestamp)
 
void showInfo (const char *sensorName) const override
 
virtual void setTimeout (int timeoutMs)
 
- Public Member Functions inherited from Sensor
bool Register ()
 
const chargetSensorName () const
 
virtual bool hasSensor () const
 
virtual float getRaw () const
 
virtual bool isRedundant () const
 
void unregister ()
 
SensorType type () const
 
- Public Member Functions inherited from CanListener
 CanListener (uint32_t id)
 
CanListenerprocessFrame (const size_t busIndex, const CANRxFrame &frame, efitick_t nowNt)
 
uint32_t getId ()
 
void setNext (CanListener *next)
 
virtual CanListenerrequest ()
 
bool hasNext () const
 
virtual bool acceptFrame (const size_t busIndex, const CANRxFrame &frame) const
 

Protected Member Functions

void decodeFrame (const CANRxFrame &frame, efitick_t nowNt) override
 
- Protected Member Functions inherited from Sensor
 Sensor (SensorType type)
 

Additional Inherited Members

- Static Public Member Functions inherited from Sensor
static void showAllSensorInfo ()
 
static void showInfo (SensorType type)
 
static void resetRegistry ()
 
static const SensorgetSensorOfType (SensorType type)
 
static SensorResult get (SensorType type)
 
static float getOrZero (SensorType type)
 
static float getRaw (SensorType type)
 
static bool isRedundant (SensorType type)
 
static bool hasSensor (SensorType type)
 
static void setMockValue (SensorType type, float value, bool mockRedundant=false)
 
static void setInvalidMockValue (SensorType type)
 
static void resetMockValue (SensorType type)
 
static void resetAllMocks ()
 
static void inhibitTimeouts (bool inhibit)
 
static const chargetSensorName (SensorType type)
 
- Static Protected Attributes inherited from Sensor
static bool s_inhibitSensorTimeouts = false
 

Detailed Description

Definition at line 5 of file AemXSeriesEgt.h.

Constructor & Destructor Documentation

◆ AemXSeriesEgt()

AemXSeriesEgt::AemXSeriesEgt ( uint8_t  sensorIndex,
SensorType  type 
)

Definition at line 9 of file AemXSeriesEgt.cpp.

11 aem_egt_base + sensorIndex,
12 type,
13 MS2NT(3 * AEM_EGT_DEFAULT_PERIOD_MS) // sensor transmits at 10hz, allow a frame to be missed
14 )
15{
16 // nope
17}
static constexpr uint32_t aem_egt_base
SensorType type() const
Definition sensor.h:162

Member Function Documentation

◆ decodeFrame()

void AemXSeriesEgt::decodeFrame ( const CANRxFrame frame,
efitick_t  nowNt 
)
overrideprotectedvirtual

Implements CanListener.

Definition at line 19 of file AemXSeriesEgt.cpp.

19 {
20 // No status flags, just a value
21 uint16_t egt = SWAP_UINT16(frame.data16[0]);
22
23 setValidValue((float)egt, nowNt);
24}
void setValidValue(float value, efitick_t timestamp)
uint16_t SWAP_UINT16(uint16_t x)
Definition efilib.h:22
uint16_t data16[4]
Frame data.
Definition can_mocks.h:56
Here is the call graph for this function:

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