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.

index.qdoc 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. The package contains a qextserialport.pri file that allows you to integrate the
  20. component into programs that use qmake for the build step.
  21. All you need is adding following line to your qmake's project file:
  22. \code
  23. include(pathToPri/qextserialport.pri)
  24. \endcode
  25. Then, using QextSerialPort in your code
  26. \code
  27. #include "qextserialport.h"
  28. ...
  29. MyClass::MyClass()
  30. {
  31. port = new QextSerialPort("COM1");
  32. connect(port, SIGNAL(readyRead()), this, SLOT(onDataAvailable()));
  33. port->open();
  34. }
  35. void MyClass::onDataAvailable()
  36. {
  37. QByteArray data = port->readAll();
  38. processNewData(usbdata);
  39. }
  40. \endcode
  41. \section2 Using QexSerialPort as library
  42. Although QextSerialPort can be directly compiled into your application, You may prefer
  43. to use QextSerailPort as an library, which is very easy too.
  44. 1. Write a config.pri file.(read config_example.pri for reference):
  45. \list
  46. \o shared library
  47. \o static library
  48. \endlist
  49. 2. Changed to subdirectory 'buildlib', run
  50. \code
  51. qmake
  52. make
  53. \endcode
  54. shared or static library will be generated.
  55. 3. Add following line to your qmake project file:
  56. \code
  57. include(pathToPri/qextserialport.pri)
  58. \endcode
  59. \section2 Build documents
  60. Run qdoc3 from the doc directory.
  61. \code
  62. qdoc3 qextserialport.qdocconf
  63. \endcode
  64. Note: qdoc3 has been renamed to qdoc under Qt5.
  65. \section1 Examples
  66. \list
  67. \o \l examples/enumerator
  68. \o \l examples/qespta
  69. \o \l examples/uartassistant
  70. \endlist
  71. \section2 Build examples
  72. Run following commands at toplevel directory
  73. \code
  74. qmake
  75. make
  76. \endcode
  77. or simply open the qextserialport.pro using Qt Creator.
  78. \section1 Resources
  79. \section2 Nokia(Trolltech)
  80. \list
  81. \o \l {http://doc.trolltech.com/qq/qq12-iodevice.html} {Writing a Custom I/O Device}
  82. \o \l {http://doc.trolltech.com/3.3/qiodevice.html} {Qt 3.3: QIODevice Class Reference}
  83. \o \l {http://doc.trolltech.com/4.7/qiodevice.html} {Qt 4.7: QIODevice Class Reference}
  84. \endlist
  85. \section2 MSDN
  86. \list
  87. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_resources.asp} {Communications Resources}
  88. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/about_communications_resources.asp} {About Communications Resources}
  89. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/using_communications_resources.asp}{Using Communications Resources}
  90. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_functions.asp} {Communications Functions}
  91. \o \l {http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_structures.asp} {Communications Structures}
  92. \endlist
  93. \section2 TLDP
  94. \list
  95. \o \l {http://www.tldp.org/HOWTO/Serial-HOWTO.html}{Serial HOWTO}
  96. \o \l {http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/}{Serial Programming HOWTO}
  97. \endlist
  98. \section2 Other
  99. \list
  100. \o \l {http://www.easysw.com/~mike/serial/serial.html} {Serial Programming Guide for POSIX Operating Systems}
  101. \endlist
  102. */
  103. /*!
  104. \page classes.html
  105. \generatelist annotatedclasses
  106. */