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

Method close_serial_port

src/utils/libftdi_serial.cpp:209–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209int LibFTDISerial::close_serial_port ()
210{
211 last_result = ftdi_usb_close (&ftdi);
212 if (last_result == 0)
213 {
214 port_open = false;
215 return (int)SerialExitCodes::OK;
216 }
217 else
218 {
219 log_error ("close_serial_port ()");
220 return (int)SerialExitCodes::CLOSE_ERROR;
221 }
222}
223
224const char *LibFTDISerial::get_port_name ()
225{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected