Welcome to the PHCC Wiki.

Please create an user account and then help us to make this the one-stop for information on PHCC.

 Actions

Difference between revisions of "PHCC Serial"

From PHCC

(New page: When you write software for PHCC which talks to the hardware directly via serial port, please use this library. Its written in C++, and released under the LGPL (Library/Lesser GNU Public ...)
 
 
(2 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
Here are two files, a ZIP file for windows users, and a tar.gz for Linux/Unix users. Apart from the file format, the only difference is that the Makefile in the .zip defaults to building for windows.
 
Here are two files, a ZIP file for windows users, and a tar.gz for Linux/Unix users. Apart from the file format, the only difference is that the Makefile in the .zip defaults to building for windows.
  
{{DownloadZip|PHCC_Serial_20050308}}<br>
+
{{DownloadGuess|filename=PHCC_Serial_20050308|fileext=zip|desc=C++ classes for PHCC_Serial, Windows Platforms [[Image:Windows.png|24px]]}}<br>
{{DownloadGz|PHCC_Serial_20050308.tar.gz}}
+
{{DownloadGuess|filename=PHCC_Serial_20050308|fileext=tar.gz|desc=C++ classes for PHCC_Serial, Unix [[Image:Xorg.png|24px]] / Linux [[Image:Linux.png|24px]] / Mac [[Image:Mac.png|24px]] Platforms}}

Latest revision as of 20:07, 4 February 2009

When you write software for PHCC which talks to the hardware directly via serial port, please use this library.

Its written in C++, and released under the LGPL (Library/Lesser GNU Public License).

There is a tiny test program in the archive that shows basic usage. The testprogram itself is licensed under the GPL.

This library can be compiled under Windows and under Linux (and probably several other unices). I tested it by cross-compiling it for windows under linux.

To compile it under Windows, the free Mingw compiler (http://www.mingw.org/) is sufficient. The supplied Makefile should work out of the box under Mingw and under Linux.

There is one variable at the beginning of the Makefile: WIN32 if you set WIN32=1 it will build for windows.

If you use another compiler or want to build manually, then you have to define "__WIN32__" to build the windows version. For some compilers, you'd supply this as a commandline switch:"-D__WIN32__".

If you find bugs,... please report them in the "Bugs" section of the forum.

Here are two files, a ZIP file for windows users, and a tar.gz for Linux/Unix users. Apart from the file format, the only difference is that the Makefile in the .zip defaults to building for windows.

Download.png Download Description
Media:PHCC_Serial_20050308.zip Zip.png C++ classes for PHCC_Serial, Windows Platforms Windows.png
Type ZIP Compressed Archive
Size 24 KB


Download.png Download Description
Media:PHCC_Serial_20050308.tar.gz Gz.png C++ classes for PHCC_Serial, Unix Xorg.png / Linux Linux.png / Mac Mac.png Platforms
Type GZIP Compressed Tar Archive
Size 17 KB