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

Method read_from_serial_port

src/utils/os_serial.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82int OSSerial::read_from_serial_port (void *bytes_to_read, int size)
83{
84 DWORD readed;
85 if (!ReadFile (this->port_descriptor, bytes_to_read, size, &readed, NULL))
86 {
87 return 0;
88 }
89 return (int)readed;
90}
91
92int OSSerial::send_to_serial_port (const void *message, int length)
93{

Callers 8

read_serial_responseMethod · 0.45
read_threadMethod · 0.45
read_threadMethod · 0.45
read_serial_responseMethod · 0.45
status_checkMethod · 0.45
read_threadMethod · 0.45
read_threadMethod · 0.45
read_threadMethod · 0.45

Calls 1

readFunction · 0.50

Tested by

no test coverage detected