forked from achamaikin/CCSModuleSW30Web
Log cached connector temperature and ADC freshness while charging (v1.0.38)
This commit is contained in:
1 parent
10691b77f2
commit
3b04e532af
11 files changed
+9605
-9410
No files matched your search
@@ -36,6 +36,8 @@ void MX_ADC1_Init(void);
|
||||
|
||||
/* USER CODE BEGIN Prototypes */
|
||||
void ADC_ScanStart(void);
|
||||
/* UINT32_MAX until the first completed scan. */
|
||||
uint32_t ADC_GetScanAgeMs(void);
|
||||
|
||||
/* USER CODE END Prototypes */
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ extern "C" {
|
||||
/* USER CODE BEGIN EC */
|
||||
#define FW_VERSION_MAJOR 1
|
||||
#define FW_VERSION_MINOR 0
|
||||
#define FW_VERSION_PATCH 37
|
||||
#define FW_VERSION_PATCH 38
|
||||
/* USER CODE END EC */
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
|
||||
Reference in new issue
Block a user