forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-05-17 6ea1a42391f86e72f53042a966dae970a3fd77cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include "upper_com_data_pro.h"
#include "upper_com.h"
#include "system_mem_para.h"
 
 
 
 
//É豸»ù´¡ÐÅÏ¢ÉèÖúͶÁÈ¡
void COM_equipment_basic_inf_handle(uint8_t WriteOrRead,u16 data_category_ID,uint8_t *DataPtr,UC_RECV_DATA_UNION_T *uc_respond_data_p)  //DataPtrÉèÖÃʱָÏòIDÖ®ºóµÄÕæÊµÊý¾Ý
{
    uint16_t count_i;
    uint8_t * respond_buf_p;
    
    respond_buf_p= uc_respond_data_p->uc_recv_buf;
    if(WriteOrRead==UC_CMD_WRITE)
    {
        //´¦ÀíÊý¾Ý
        
        
        //´æ´¢Êý¾Ý
        
        
        //Ó¦´ðÊý¾Ý´¦Àí
        uc_respond_data_p->uc_protocol_head_s.data_field_length = UC_PROTOCOL_TABLE_ID_LENGTH + 1;
        respond_buf_p[UC_PROTOCOL_HEAD_LENGTH + UC_PROTOCOL_TABLE_ID_LENGTH] = 0;
        
        
        
    }else if(WriteOrRead==UC_CMD_READ)
    {
        //Ó¦´ðÊý¾Ý´¦Àí
//        uc_respond_data_p->uc_protocol_head_s.data_field_length = UC_PROTOCOL_TABLE_ID_LENGTH + N;
        arrayA_2_arrayB((uint8_t*)equipment_basic_inf_g.specification_model , &respond_buf_p[UC_PROTOCOL_HEAD_LENGTH + UC_PROTOCOL_HEAD_LENGTH], sizeof (equipment_basic_inf_g.specification_model), LITTLE_ENDIAN)  ;
    }else
    {
    }
    
    
    
    
}