#ifndef PACK_DEFINE_H
|
#define PACK_DEFINE_H
|
|
#include "app_define.h"
|
|
|
|
//哈啰单车
|
//============================================================================
|
#define Halo_RegAddr_Version 600
|
#define Halo_RegCount_Version 39
|
|
//#define Halo_RegAddr_CellCount 700
|
//#define Halo_RegCount_CellCount 70
|
|
#define Halo_RegAddr_Soc 650
|
#define Halo_RegCount_Soc 120
|
|
//============================================================================
|
|
|
|
#pragma pack(1)
|
|
|
typedef struct __pack_data_
|
{
|
quint16 soft_version[8]; //600
|
quint16 boot_version[8];
|
quint16 hard_version[8];
|
quint16 Barcode_info[9];
|
quint16 pack_id[6];
|
|
quint16 reserved1[11];
|
|
quint16 soc; //650
|
quint16 soh;
|
quint16 pack_vol_inside;
|
quint16 pack_vol_outside;
|
quint16 cell_sum_vol;
|
quint16 cell_vol_max;
|
quint16 cell_vol_min;
|
quint16 cell_diff_vol_max;
|
qint16 cell_tempe_max;
|
qint16 cell_tempe_min;
|
quint16 pack_current;
|
quint16 soc_max_vol;
|
quint16 soc_min_vol;
|
quint16 real_soc;
|
quint16 vol_topcharger;
|
quint16 vol_loaddetect;
|
|
quint16 reserved2[4];
|
|
quint16 bms_error_state; //670
|
quint16 junheng_on_state;
|
quint16 load_in_state;
|
quint16 top_chg_in_state;
|
quint16 comm_certification_state;
|
quint16 pre_charge_mos_state;
|
quint16 charge_mos_state;
|
quint16 dischg_mos_state;
|
quint16 life_data_signal;
|
|
quint16 reserved6[21];
|
|
quint16 cell_count; //700
|
quint16 temp_count;
|
|
quint16 reserved3[8];
|
|
quint16 error[2];
|
|
quint16 reserved4[8];
|
|
qint16 cell_temp[5];
|
|
quint16 reserved5[15];
|
|
quint16 cell_vol[30];
|
|
}PACK_DATA;
|
|
|
#pragma pack()
|
|
|
|
#endif // PACK_DEFINE_H
|