Menu

Home

Bill Moore

Welcome to the Uart32 Library:

Uart32 is a C++ wrapper around the win32 Serial Port API that allows blocking-mode access to the COM port.

This library works great for accessing a UART serial port from a background worker thread. It features:

  • a simple c++ class. (temporarily removed for maintainance. Use DLL API Instead)
  • built in per access timeout on data receive.
  • a C-API wrapper that is exportable to a DLL
  • C# DLL import class
  • Special care was taken to make sure that the header file for the uart32 library doesn't include "window.h". This makes the library ideal for console mode c/c++ applications, in addition to GUI mode applications. (If you look at the source code, I'm just explaining why some of the windows handles are converted into void* pointers and other container wierdness).

This library was built using the Code::Blocks 16.01 Mingw compiler on Windows, and it was tested using an FTDI USB-UART dongle.

Also included is a companion Verilog Core for embedding in an FPGA environment similar to what you might find on opencores that can talk directly with the Uart32 library. This is a verilog core that I wrote years ago while in between jobs.

Suggestions welcome

If there are any API additions or modification that you would like added to the library, feel free to write a ticket at the side and include any source code examples as necessary.

Contactor for Hire
If you are a company and you need modifications to the source code to address a specific tasks or issues, I'm available for contracting as well. Just open a ticket on the side with your request. The only requirement is that paid changes to the source code will remain in the public domain on source forge. The reason for this is that Uarts are a fundamental building block for electronic hobbist and its imported for a new generation to have access to these types of libraries so they can focus on the problems of the day rather than reinventing the wheel.

Project Members:


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.