2021-11-06 02:12:29 -07:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-06 02:17:50 -07:00
|
|
|
#define RUSEFI_WIDEBAND_VERSION (0xA0)
|
2021-11-06 02:12:29 -07:00
|
|
|
|
2021-11-08 11:01:16 -08:00
|
|
|
// ascii "rus"
|
|
|
|
#define WB_ACK 0x727573
|
|
|
|
#define WB_BL_ENTER 0xEF0'0000
|
|
|
|
#define WB_MSG_SET_INDEX 0xEF4'0000
|
|
|
|
#define WB_MGS_ECU_STATUS 0xEF5'0000
|
|
|
|
|
2021-11-06 02:12:29 -07:00
|
|
|
namespace wbo
|
|
|
|
{
|
|
|
|
struct StandardData
|
|
|
|
{
|
|
|
|
uint8_t Version;
|
|
|
|
uint8_t Valid;
|
|
|
|
|
|
|
|
uint16_t Lambda;
|
|
|
|
uint16_t TemperatureC;
|
|
|
|
|
|
|
|
uint16_t pad;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct DiagData
|
|
|
|
{
|
|
|
|
uint16_t Esr;
|
|
|
|
uint16_t NernstDc;
|
|
|
|
uint8_t PumpDuty;
|
|
|
|
Fault Status;
|
|
|
|
|
|
|
|
uint16_t pad;
|
|
|
|
};
|
|
|
|
} // namespace wbo
|