临时

<pre name="code" class="cpp">u16 WideUdpSend_HeartRatePcg(char* str_out)
{
    char* str_begin = str_out;
    *str_out++ = 0XAA;
    *str_out++ = 0XA5;
    memcpy( str_out , gHjkDevState.device_name , 12 );
    str_out += 12;  //
    *str_out++ = WIDE_UDP_CMD_HEART_PKG ;  //
    *str_out++ = 0X00;  //H
    *str_out++ = 0X01;  //L
    *str_out++ = 0X00;  //
    *str_out = GetCheckAddVal( (unsigned char*)(str_begin) , str_out-str_begin );
    str_out++;
    *str_out = 0;
    return (str_out-str_begin);
}
 
 
 
 
 

你可能感兴趣的:(临时)