Logo Search packages:      
Sourcecode: qmk-groundstation version File versions  Download package

qint64 Posix_QextSerialPort::writeData ( const char *  data,
qint64  maxSize 
) [protected, virtual]

Writes a block of data to the serial port. This function will write maxSize bytes from the buffer pointed to by data to the serial port. Return value is the number of bytes actually written, or -1 on error.

before calling this function ensure that serial port associated with this class is currently open (use isOpen() function to check if port is open).

Implements QextSerialBase.

Definition at line 1103 of file posix_qextserialport.cpp.

References flush().

      int retVal=0;
      retVal=Posix_File->write(data, maxSize);
      if (retVal==-1)
      return retVal;

Generated by  Doxygen 1.6.0   Back to index