摘要:
https://www.msys2.org/ pacman -S mingw-w64-ucrt-x86_64-gcc C:\msys64\ucrt64\bin pacman -S mingw-w64-ucrt-x86_64-gdb 阅读全文
摘要:
#include <stdio.h> #include <stdint.h> // CRC-16-CCITT标准的多项式 #define POLY 0x1021 uint16_t crc16(uint16_t crc, const unsigned char *buffer, size_t len) 阅读全文
摘要:
#include <stdio.h> #include <stdint.h> uint16_t crc16(uint8_t *data, int length) { uint16_t crc = 0xFFFF; for (int i = 0; i < length; i++) { crc ^= da 阅读全文
摘要:
根据UTF-8编码规则,UTF-8字节序列以字节的高位位数来判断字节序列的长度,从而确定一个Unicode字符的开始和结束。 UTF-8的规则如下: 一个字节字符(ASCII字符)的第一个字节的最高位为0,后续7位用于表示字符的值。 两字节字符的第一个字节的前3位为110,后续5位用于表示字符的值; 阅读全文
摘要:
ASCII 码表只包含 0 到 127 的字符表示,用单个字节即可表示。而对于超过 127 的字符,比如 0x9A,无法用 ASCII 码表表示。 对于超过 ASCII 码表的字符,可以使用其他字符编码表来表示,如 Unicode 编码表。Unicode 是一种用于表示所有字符的标准编码系统,它包含 阅读全文
摘要:
IMPLEMENT_DYNCREATE(CMainFrm, CFrameWnd)IMPLEMENT_DYNAMIC(CMainFrm, CFrameWnd) 阅读全文
摘要:
SetUnhandledExceptionFilter作用 SetUnhandledExceptionFilter作用 SetUnhandledExceptionFilter作用 设置异常捕获函数 阅读全文
摘要:
https://www.arduined.eu/ch340-windows-10-driver-download/ 阅读全文
摘要:
https://www.sprinter.com.cn/show-58-14-1.html 阅读全文
摘要:
#include "stdafx.h" #include <iostream> using namespace std; bool uc_is_usb(char *devid) { return strlen(devid) > 3 && devid[0] == 'U' && devid[1] == 阅读全文