- 博客(2)
- 资源 (2)
- 收藏
- 关注
一个跨平台、接口灵活的C++串口通信库
该库接口丰富,且调用灵活,例如,其read功能的函数就有以下几种重载或实现:
size_t read (uint8_t *buffer, size_t size);
size_t read (std::vector<uint8_t> &buffer, size_t size = 1);
size_t read (std::string &buffer, size_t size = 1);
std::string read (size_t size = 1);
size_t readline (std::string &buffer, size_t size = 65536, std::string eol = "\n");
std::string readline (size_t size = 65536, std::string eol = "\n");
std::vector<std::string> readlines (size_t size = 65536, std::string eol = "\n")。
2022-04-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人