Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. /*!
  2. \page index.html
  3. \title QextSerialPort Manual
  4. \section1 Overview
  5. QextSerialPort provides an interface to old fashioned serial ports for
  6. Qt-based applications. It currently supports Mac OS X, Windows, Linux, FreeBSD.
  7. From QextSerialPort 1.2-beta on, license of the project has been changed to MIT.
  8. \list
  9. \o Revision 0.9.x is Qt 2 & 3 compatible.
  10. \o Revision 1.x.x is Qt 4 compatible.
  11. \o From revision 1.2beta1 on, Qt 5 support is added.
  12. \endlist
  13. \section1 Classes
  14. \list
  15. \o \l QextSerialPort encapsulates a serial port on both POSIX and Windows systems.
  16. \o \l QextSerialEnumerator enumerates ports currently available in the system.
  17. \endlist
  18. \section1 Getting Started
  19. \section2 Usage(1): Source Code Only
  20. The package contains a qextserialport.pri file that allows you to integrate the component into programs that use qmake for the build step.
  21. Download the source code.
  22. Put the source code in any directory you like. For example, 3rdparty:
  23. \code
  24. |-- project.pro
  25. |-- ....
  26. |-- 3rdparty\
  27. | |-- qextserialport\
  28. | |
  29. \endcode
  30. Add following line to your qmake project file:
  31. \code
  32. include(pathToPri/qextserialport.pri)
  33. \endcode
  34. Then, using QextSerialPort in your code
  35. \code
  36. #include "qextserialport.h"
  37. ...
  38. MyClass::MyClass()
  39. {
  40. port = new QextSerialPort("COM1");
  41. connect(port, SIGNAL(readyRead()), this, SLOT(onDataAvailable()));
  42. port->open();
  43. }
  44. void MyClass::onDataAvailable()
  45. {
  46. QByteArray data = port->readAll();
  47. processNewData(usbdata);
  48. }
  49. \endcode
  50. \section2 Usage(2): shared library
  51. Although QextSerialPort can be directly compiled into your application, You may prefer
  52. to use QextSerailPort as an library, which is very easy too.
  53. 1. Download the source code, and put it in any location you like.
  54. 2. Goto the top level directory ,run following command to generate library.
  55. \code
  56. qmake
  57. sudo make install (or nmake install)
  58. \endcode
  59. 3. Add following line to your project's file
  60. \code
  61. CONFIG += extserialport
  62. \endcode
  63. 4. Using QextSerialPort in your code. Enjoy it!
  64. \code
  65. #include "qextserialport.h"
  66. ....
  67. QextSerialPort * port = new QextSerialPort();
  68. ....
  69. \endcode
  70. \section2 Usage(3): Static library
  71. Someone prefer to use QextSerailPort as static library.
  72. Open the project file: qextserialport.pro, add uncomment follow line
  73. \code
  74. # CONFIG += qesp_static
  75. \endcode
  76. Then follow the same steps as shared library
  77. \code
  78. qmake
  79. sudo make install
  80. \endcode
  81. The static library, the header files, and the feature file will be installed to your system.
  82. Add following line to your qmake's project file:
  83. \code
  84. CONFIG += extserialport
  85. \endcode
  86. \section1 Platform Special
  87. \section2 For MacX: Build as framework
  88. Open the project file: *qextserialport.pro*, and uncomment follow line
  89. \code
  90. # CONFIG += qesp_mac_framework
  91. \endcode
  92. Then follow the same steps as shared library, Goto the top level directory , and run
  93. \code
  94. qmake
  95. sudo make install
  96. \endcode
  97. The framework which includes libraries and the header files, and the feature file will be installed to your system.
  98. Add following line to your qmake's project file:
  99. \code
  100. CONFIG += extserialport
  101. \endcode
  102. \section2 For Linux: Enable udev
  103. Open the project file: *qextserialport.pro*, uncomment follow line
  104. \code
  105. #linux*:CONFIG += qesp_linux_udev
  106. \endcode
  107. Note, If you are using the usage(1), Add following line before include the qextserialport.pri file.
  108. \code
  109. CONFIG += qesp_linux_udev
  110. \endcode
  111. \section2 Build documents
  112. \code
  113. make docs
  114. \endcode
  115. \section1 Examples
  116. \list
  117. \o \l examples/enumerator
  118. \o \l examples/qespta
  119. \o \l examples/uartassistant
  120. \endlist
  121. \section1 Resources
  122. \section2 Nokia(Trolltech)
  123. \list
  124. \o \l {http://doc.trolltech.com/qq/qq12-iodevice.html} {Writing a Custom I/O Device}
  125. \o \l {http://doc.trolltech.com/3.3/qiodevice.html} {Qt 3.3: QIODevice Class Reference}
  126. \o \l {http://doc.trolltech.com/4.7/qiodevice.html} {Qt 4.7: QIODevice Class Reference}
  127. \endlist
  128. \section2 MSDN
  129. \list
  130. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_resources.asp} {Communications Resources}
  131. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/about_communications_resources.asp} {About Communications Resources}
  132. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/using_communications_resources.asp}{Using Communications Resources}
  133. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_functions.asp} {Communications Functions}
  134. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_structures.asp} {Communications Structures}
  135. \endlist
  136. \section2 TLDP
  137. \list
  138. \o \l {http://www.tldp.org/HOWTO/Serial-HOWTO.html}{Serial HOWTO}
  139. \o \l {http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/}{Serial Programming HOWTO}
  140. \endlist
  141. \section2 Other
  142. \list
  143. \o \l {http://www.easysw.com/~mike/serial/serial.html} {Serial Programming Guide for POSIX Operating Systems}
  144. \endlist
  145. */
  146. /*!
  147. \page classes.html
  148. \generatelist annotatedclasses
  149. */