Add GBT_ApplyShortPacket function for immediate processing of single-frame messages from EVSE to EV. Refactor GBT_Init and GBT_ChargerTask for improved readability and functionality. Update connector initialization to set default requested limits and SOC for both connectors. Enhance logging for load enable changes.

This commit is contained in:
2026-05-12 21:18:17 +03:00
parent 7a74ef1367
commit d568fb8025
12 changed files with 187 additions and 128 deletions
+3
View File
@@ -230,6 +230,9 @@ extern GBT_StopSource_t GBT_StopSource;
void GBT_Init();
void GBT_Reset();
/** Немедленная обработка однокадровых сообщений EVSE→EV (не через j_rx TP). */
void GBT_ApplyShortPacket(uint32_t pgn, const uint8_t *data, uint8_t dlc);
//void GBT_Stop(uint32_t causecode);
void GBT_StopEV(uint32_t causecode);
void GBT_StopEVSE(uint32_t causecode);
+1
View File
@@ -9,6 +9,7 @@
#define INC_CONNECTOR_H_
#include "main.h"
#include <stdint.h>
typedef enum __attribute__((packed)) {
Unknown,