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

Method flush_buffer

src/utils/os_serial.cpp:76–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76int OSSerial::flush_buffer ()
77{
78 PurgeComm (this->port_descriptor, PURGE_TXCLEAR | PURGE_RXCLEAR);
79 return SerialExitCodes::OK;
80}
81
82int OSSerial::read_from_serial_port (void *bytes_to_read, int size)
83{

Callers 4

start_streamMethod · 0.45
read_serial_responseMethod · 0.45
read_serial_responseMethod · 0.45
start_streamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected