#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 { } }