摘要: 1. u16 g_summ = 0; u8 buf[2] = {0x10, 0x05}; g_summ = (buf[1] << 8) | buf[0]; // g_summ = 0x0510 2. u16 g_summ = 0x0510; buf[0] = (u8 )g_summ; // buf[ 阅读全文
posted @ 2018-12-08 11:41 nxz_diy 阅读(246) 评论(1) 推荐(0) 编辑