Log cached connector temperature and ADC freshness while charging (v1.0.38)

This commit is contained in:
raduet committed 2026-10-13 14:02:52 +02:00
1 parent 10691b77f2
commit 3b04e532af
11 files changed
+9605 -9410

No files matched your search

+11
View File
@@ -27,6 +27,17 @@ uint8_t ADC_TryLock(void);
void ADC_LockBlocking(void);
void ADC_Unlock(void);
int16_t GBT_ReadTemp(uint8_t ch);
/* Observability only: snapshot of the last normal temperature read. */
typedef struct {
uint32_t raw_adc;
uint32_t filtered_adc;
int16_t temperature_c;
uint32_t age_ms;
const char *status;
} ConnectorTempDiag_t;
ConnectorTempDiag_t Board_GetConnectorTempDiag(uint8_t ch);
int16_t CONN_ReadTemp(uint8_t ch);
typedef enum{