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

Method create

src/utils/serial.cpp:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6Serial *Serial::create (const char *port_name, Board *board)
7{
8#ifdef USE_LIBFTDI
9 {
10 LibFTDISerial ftdi_probe (port_name);
11 if (ftdi_probe.open_serial_port () != SerialExitCodes::PORT_NAME_ERROR)
12 {
13 return new LibFTDISerial (port_name, board);
14 }
15 }
16#endif
17
18 return new OSSerial (port_name);
19}

Callers

nothing calls this directly

Calls 1

open_serial_portMethod · 0.45

Tested by

no test coverage detected