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

Method send_to_serial_port

src/utils/libftdi_serial.cpp:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198int LibFTDISerial::send_to_serial_port (const void *message, int length)
199{
200 last_result = ftdi_write_data (&ftdi, static_cast<unsigned const char *> (message), length);
201 // TODO: negative values are libusb error codes, -666 means usb device unavailable
202 if (last_result < 0)
203 {
204 log_error ("send_to_serial_port");
205 }
206 return last_result;
207}
208
209int LibFTDISerial::close_serial_port ()
210{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected