mirror of
https://github.com/mck1117/wideband.git
synced 2026-09-30 09:57:06 -04:00
* Multichannel AFR * heater: fixes for multi channel mode * f1_dual: fix configuration names * pump_dac: fixes for multi-channel mode * pwm: fixes for multichannel mode * pump_control: reference instead of pointer * sampling: reference instead of pointer * heater_control: reference instead of pointer * sampling: comment about heater/battery voltage * f0_module: fixes for multi-channel update * f1_rev2: fix for multichannel AFR * hello rev 3 Co-authored-by: rusefillc <sdfsdfqsf2334234234>
39 lines
639 B
C
39 lines
639 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "wideband_config.h"
|
|
|
|
/* +0 offset */
|
|
struct livedata_common_s {
|
|
union {
|
|
struct {
|
|
uint32_t test;
|
|
float vbatt;
|
|
};
|
|
uint8_t pad0[32];
|
|
};
|
|
};
|
|
|
|
/* +32 offset */
|
|
struct livedata_afr_s {
|
|
union {
|
|
struct {
|
|
float afr;
|
|
float temperature;
|
|
float nernstVoltage;
|
|
float pumpCurrentTarget;
|
|
float pumpCurrentMeasured;
|
|
float heaterDuty;
|
|
};
|
|
uint8_t pad[32];
|
|
};
|
|
};
|
|
|
|
/* update functions */
|
|
void SamplingUpdateLiveData();
|
|
|
|
/* access functions */
|
|
const struct livedata_common_s * getCommonLiveDataStructAddr();
|
|
const struct livedata_afr_s * getAfrLiveDataStructAddr(const int ch);
|