Let us start here, from square one. No, from Zero!

This commit is contained in:
smpn2
2022-09-30 22:45:51 +09:00
parent 14215af0d1
commit b7a60638a4
1005 changed files with 303069 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#pragma once
#include <string>
#include <thread>
#include <windows.h>
namespace api {
class Controller;
struct ClientState;
class SerialController {
public:
SerialController(Controller *controller, std::string port, DWORD baud);
~SerialController();
void open_port();
void free_port();
private:
Controller *controller = nullptr;
std::string port = "";
DWORD baud = 0;
HANDLE handle = INVALID_HANDLE_VALUE;
std::thread *thread = nullptr;
ClientState *state = nullptr;
bool running = true;
};
}