Release:5.20灰测

This commit is contained in:
2026-05-21 10:01:28 +08:00
parent 8a5a32b139
commit fd65e9c6a2
68 changed files with 4329 additions and 1489 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,27 @@
#ifndef POINT_HANDLER_H
#define POINT_HANDLER_H
#include "global.h"
#include "cJSON.h"
#include <stdint.h>
#include "udp_manager.h"
/* ── 路由表注册接口─────────────── */
void point_callback_power_on(uint8_t id, cJSON *json); // 上电
void point_callback_heartbeat(uint8_t id, cJSON *json); // 心跳包
void point_callback_start_charging(uint8_t stake_index, cJSON *json_pack); // 开始充电反馈
void point_callback_end_charging(uint8_t stake_index, cJSON *json_pack); // 停止充电反馈
void point_callback_realtime_data(uint8_t stake_index, cJSON *json); // 实时数据
void point_callback_settlement_bill(uint8_t stake_index, cJSON *json); // 结算单
void point_callback_proactive_end(uint8_t stake_index, cJSON *json); // 主动结束
void point_callback_charge_process(uint8_t stake_index, cJSON *json); // 实时信息
void point_callback_bms_info(uint8_t stake_index, cJSON *json); // BMS 信息
void point_callback_proactive_end_charging(uint8_t stake_index, cJSON *json_pack); // 主动结束充电
/* ── 主动下发接口(供业务层调用)────────────────────── */
void point_send_start_charging(uint8_t stake_index, uint8_t gun_id); // 开始充电
void point_send_stop_charging(uint8_t stake_index, uint8_t gun_id); // 停止充电
/* ── 工具函数 ─────────────────────────────────────────── */
void trade_serial_to_string(uint8_t *trade_serial, char *output_str); // 转换交易序列号为字符串
#endif /* POINT_HANDLER_H */