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

Method open_serial_port

src/utils/os_serial.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int OSSerial::open_serial_port ()
29{
30 this->port_descriptor =
31 CreateFile (this->port_name, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
32 if (this->port_descriptor == INVALID_HANDLE_VALUE)
33 {
34 return SerialExitCodes::OPEN_PORT_ERROR;
35 }
36 return SerialExitCodes::OK;
37}
38
39int OSSerial::set_serial_port_settings (int ms_timeout, bool timeout_only)
40{

Callers 4

createMethod · 0.45
open_portMethod · 0.45
open_portMethod · 0.45
open_portMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected