Thread: Telemetry
View Single Post
  #2   Spotlight this post!  
Unread 23-01-2007, 23:19
Shinigami2057 Shinigami2057 is offline
Slackware Is Your New God (Mentor)
AKA: Harry Bock
FRC #1350 (Rambots)
Team Role: Programmer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Johnston, RI
Posts: 106
Shinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really niceShinigami2057 is just really nice
Re: Telemetry

I'm not quite certain what you're looking for - are you looking for help on writing serial I/O programs on Windows, or UNIX?

I recently wrote a decent, very simple serial API wrapper that compiles and runs on both. The code should be simple enough to read (it is extremely similar to the POSIX read/write functions) that you can learn the TTY API for both OSes quickly and modify it to suit your needs.

Attached are the files, it should compile just fine with default options to MSVC or gcc. If that wasn't what you need or if you have any questions, feel free to PM me
Attached Files
File Type: c serialio.c (6.0 KB, 33 views)
File Type: h serialio.h (1.4 KB, 23 views)
__________________
One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs.

Last edited by Shinigami2057 : 23-01-2007 at 23:24.