https://github.com/kranfix/rs232
A C and C++ library for using rs232 protocole over linux and windows.
https://github.com/kranfix/rs232
Last synced: 11 months ago
JSON representation
A C and C++ library for using rs232 protocole over linux and windows.
- Host: GitHub
- URL: https://github.com/kranfix/rs232
- Owner: kranfix
- License: mit
- Created: 2014-10-05T08:29:49.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T00:56:14.000Z (over 8 years ago)
- Last Synced: 2024-04-13T03:21:29.478Z (about 2 years ago)
- Language: C++
- Size: 17.6 KB
- Stars: 19
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RS232
=====
A C and C++ library for using rs232 protocole over Linux and Windows.
## Instalation
1) Download the source code:
```
git clone https://github.com/kranfix/rs232.git
```
2) Compile for your computer:
In C:
```
gcc -c rs232.cc -o librs232c.a
```
In C++:
```
g++ -c rs232.cc -o librs232cc.a
```
## Files
Header: rs232.h
main source file: rs232.c
For linux:
* In C: rs232_linux.c
* In C++: rs232_linux.cc
For windows:
* In C: rs232_win.c
* In C++: rs2323_win.cc
## Available Functions
In C:
In C++:
# Samples with an Arduino
For excecute the samples, first you must compile this code
in your Arduino:
- [Arduino tester](example/arduino_tester/arduino_tester.ino)