MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / OSSerial

Method OSSerial

src/utils/os_serial.cpp:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#ifdef _WIN32
10
11OSSerial::OSSerial (const char *port_name)
12{
13 std::string port_name_string (port_name);
14 // add winapi specific prefix for port name if not provided
15 if (port_name_string.find (std::string ("COM")) == 0)
16 {
17 port_name_string = std::string ("\\\\.\\") + port_name_string;
18 }
19 strcpy (this->port_name, port_name_string.c_str ());
20 port_descriptor = NULL;
21}
22
23bool OSSerial::is_port_open ()
24{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected