- 博客(0)
- 资源 (2)
- 收藏
- 关注
GBK转Unicode转码表
// GBK 双字节编码转索引值
// high: 高字节 (0x81~0xFE)
// low: 低字节 (0x40~0x7E 或 0x80~0xFE)
uint16_t gbk_to_index(uint8_t high, uint8_t low)
{
uint16_t offset = low - 0x40 - (low >> 7); // low>=0x80 时减1跳过0x7F
return (high - 0x81) * 190 + offset;
}
// 查表获取 Unicode
uint16_t gbk_to_unicode(uint8_t high, uint8_t low)
{
uint16_t idx = gbk_to_index(high, low);
uint16_t pos = idx * 2;
return (gbk2unicode_table[pos] << 8) | gbk2unicode_table[pos + 1];
}
2026-05-25
BusHound-v6.01.zip
这是一款非常好的USB调试工具,最主要是它解决了现在使用HID协议的设备调试,除了BUS Hound.exe支持USB HID设备调试,目前还没有其他软件能做到这个功能 -This is a very good USB debugging tools, the most important is that it solved now using HID protocol debugging equipment, in addition to BUS Hound.exe support for USB HID device debugging, there is no other software can do this function
2013-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅