├── .gitignore ├── Doxyfile ├── LICENSE ├── README.md ├── doc └── html │ ├── annotated.html │ ├── annotated_dup.js │ ├── bc_s.png │ ├── bdwn.png │ ├── classes.html │ ├── classserialib-members.html │ ├── classserialib.html │ ├── classserialib.js │ ├── classtime_out-members.html │ ├── classtime_out.html │ ├── classtime_out.js │ ├── closed.png │ ├── dir_2df2faa64bc87c08198f883db7427042.html │ ├── dir_2df2faa64bc87c08198f883db7427042.js │ ├── dir_52713a7cd53474fec784a13806f62d5c.html │ ├── dir_97aefd0d527b934f1d99a682da8fe6a9.html │ ├── dir_97aefd0d527b934f1d99a682da8fe6a9.js │ ├── doc.png │ ├── doxygen.css │ ├── doxygen.png │ ├── doxygen.svg │ ├── dynsections.js │ ├── example1_2main_8cpp.html │ ├── example1_2main_8cpp.js │ ├── files.html │ ├── files.js │ ├── files_dup.js │ ├── folderclosed.png │ ├── folderopen.png │ ├── functions.html │ ├── functions_func.html │ ├── globals.html │ ├── globals_defs.html │ ├── globals_enum.html │ ├── globals_eval.html │ ├── globals_func.html │ ├── index.html │ ├── jquery.js │ ├── md__r_e_a_d_m_e.html │ ├── menu.js │ ├── menudata.js │ ├── nav_f.png │ ├── nav_g.png │ ├── nav_h.png │ ├── navtree.css │ ├── navtree.js │ ├── navtreedata.js │ ├── navtreeindex0.js │ ├── open.png │ ├── pages.html │ ├── resize.js │ ├── search │ ├── all_0.html │ ├── all_0.js │ ├── all_1.html │ ├── all_1.js │ ├── all_2.html │ ├── all_2.js │ ├── all_3.html │ ├── all_3.js │ ├── all_4.html │ ├── all_4.js │ ├── all_5.html │ ├── all_5.js │ ├── all_6.html │ ├── all_6.js │ ├── all_7.html │ ├── all_7.js │ ├── all_8.html │ ├── all_8.js │ ├── all_9.html │ ├── all_9.js │ ├── all_a.html │ ├── all_a.js │ ├── all_b.html │ ├── all_b.js │ ├── all_c.html │ ├── all_c.js │ ├── all_d.html │ ├── all_d.js │ ├── classes_0.html │ ├── classes_0.js │ ├── classes_1.html │ ├── classes_1.js │ ├── close.png │ ├── close.svg │ ├── defines_0.html │ ├── defines_0.js │ ├── enums_0.html │ ├── enums_0.js │ ├── enumvalues_0.html │ ├── enumvalues_0.js │ ├── files_0.html │ ├── files_0.js │ ├── files_1.html │ ├── files_1.js │ ├── functions_0.html │ ├── functions_0.js │ ├── functions_1.html │ ├── functions_1.js │ ├── functions_2.html │ ├── functions_2.js │ ├── functions_3.html │ ├── functions_3.js │ ├── functions_4.html │ ├── functions_4.js │ ├── functions_5.html │ ├── functions_5.js │ ├── functions_6.html │ ├── functions_6.js │ ├── functions_7.html │ ├── functions_7.js │ ├── functions_8.html │ ├── functions_8.js │ ├── functions_9.html │ ├── functions_9.js │ ├── functions_a.html │ ├── functions_a.js │ ├── functions_b.html │ ├── functions_b.js │ ├── functions_c.html │ ├── functions_c.js │ ├── mag_sel.png │ ├── mag_sel.svg │ ├── nomatches.html │ ├── pages_0.html │ ├── pages_0.js │ ├── search.css │ ├── search.js │ ├── search_l.png │ ├── search_m.png │ ├── search_r.png │ └── searchdata.js │ ├── serialib_8cpp.html │ ├── serialib_8h.html │ ├── serialib_8h.js │ ├── serialib_8h_source.html │ ├── splitbar.png │ ├── sync_off.png │ ├── sync_on.png │ ├── tab_a.png │ ├── tab_b.png │ ├── tab_h.png │ ├── tab_s.png │ └── tabs.css ├── example1 ├── example1.pro └── main.cpp ├── example2 ├── example2.pro └── main.cpp ├── example3 ├── arduino-code │ └── arduino-code.ino ├── example3.pro └── main.cpp ├── example4 ├── arduino-code │ └── arduino-code.ino ├── example4.pro └── main.cpp └── lib ├── serialib.cpp └── serialib.h /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/qtcreator 3 | # Edit at https://www.gitignore.io/?templates=qtcreator 4 | 5 | ### QtCreator ### 6 | # gitignore for Qt Creator like IDE for pure C/C++ project without Qt 7 | # 8 | # Reference: http://doc.qt.io/qtcreator/creator-project-generic.html 9 | 10 | 11 | 12 | # Qt Creator autogenerated files 13 | 14 | 15 | # A listing of all the files included in the project 16 | *.files 17 | 18 | # Include directories 19 | *.includes 20 | bin/ 21 | build*/ 22 | 23 | # Project configuration settings like predefined Macros 24 | *.config 25 | *.pro.user 26 | 27 | # Qt Creator settings 28 | *.creator 29 | 30 | # User project settings 31 | *.creator.user* 32 | 33 | # Qt Creator backups 34 | *.autosave 35 | 36 | # End of https://www.gitignore.io/api/qtcreator 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Fifi Lulu 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Serialib 2 | 3 | Serialib is a simple C++ library for serial communication. 4 | * No dependencies 5 | * Only two files (serialib.h and serialib.cpp) 6 | * Cross-platform 7 | 8 | The library has been tested on Windows and Linux. This project has been developed 9 | with Qt Creator and succesfully compile with: 10 | * gcc on Linux 11 | * MinGW on Windows 12 | The library should work on Mac OS and be compiled with others IDE. 13 | 14 | 15 | More details on [Lulu's blog](https://lucidar.me/en/serialib/cross-plateform-rs232-serial-library/) 16 | 17 | ## Usage Examples 18 | 19 | * [How to list serial ports in C?](https://lucidar.me/en/serialib/scan-serial-ports/) 20 | * [How to read and write strings on serial port in C/C++](https://lucidar.me//en/serialib/read-and-write-strings-on-serial-port-in-c-cpp/) 21 | * [What are the most used baud rates?](https://lucidar.me/en/serialib/what-are-the-most-used-baud-rates/) 22 | 23 | ## Usefull Tools 24 | 25 | * [Most common baud rates table](https://lucidar.me/en/serialib/most-used-baud-rates-table/) 26 | * [Convert bauds to bits per second](https://lucidar.me/en/serialib/convert-bauds-to-bits-per-second/) 27 | * [Convert bauds to bytes per second](https://lucidar.me/en/serialib/convert-bauds-to-bytes-per-second/) 28 | -------------------------------------------------------------------------------- /doc/html/annotated.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
31 | Serialib
32 | 2.0
33 |
34 | Multi plateform serial library
35 | |
36 |
90 | Files | |
file | main.cpp |
File containing example of serial port communication. | |
31 | Serialib
32 | 2.0
33 |
34 | Multi plateform serial library
35 | |
36 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
92 | Files | |
file | serialib.cpp |
Source file of the class serialib. This class is used for communication over a serial device. | |
file | serialib.h [code] |
Header file of the class serialib. This class is used for communication over a serial device. | |
31 | Serialib
32 | 2.0
33 |
34 | Multi plateform serial library
35 | |
36 |
File containing example of serial port communication. 92 | More...
93 |97 | Functions | |
int | main () |
main Simple example that send ASCII characters to the serial device More... | |
File containing example of serial port communication.
104 | 105 |int main | 116 |( | 117 |) | 118 |119 | |
main Simple example that send ASCII characters to the serial device
124 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
▼ lib | |
serialib.cpp | Source file of the class serialib. This class is used for communication over a serial device |
serialib.h | Header file of the class serialib. This class is used for communication over a serial device |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
31 | Serialib
32 | 2.0
33 |
34 | Multi plateform serial library
35 | |
36 |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
31 | Serialib
32 | 2.0
33 |
34 | Multi plateform serial library
35 | |
36 |
Serialib is a simple C++ library for serial communication. The library has been designed to work under Linux and Windows.
89 |More details on Lulu's blog
90 |
31 | Serialib
32 | 2.0
33 |
34 | Multi plateform serial library
35 | |
36 |
serialib |
28 | Serialib
29 | 2.0
30 |
31 | Multi plateform serial library
32 | |
33 |
Source file of the class serialib. This class is used for communication over a serial device. 92 | More...
93 |#include "serialib.h"
Source file of the class serialib. This class is used for communication over a serial device.
96 | 97 |THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
100 |This is a licence-free software, it can be used by anyone who try to build a better world.
101 |