First off, the target system is FreeBSD 6.x on an old AMD K6 333. I know C++ but I wouldn't consider myself a programmer. (Haven't written a line since college.)
Anyway, I want to write a program to allow me to pan and tilt a webcam or to simply send a signal from a serial port to a relay switch in a diagram I found.
I found a program written in C that is pretty close to what I'm wanting to do, but the only problem is it's using...
#include <asm/io.h>
#include <libio.h>
Here's a link to this program and diagram of switch.
http://axlebath.net/rccar.txt
These headers don't appear to be installed on my system. I'm assuming this program was written for a LINUX system.
MY QUESTION...
1. Any idea on how to do this using C++?
2. Knowing full well I need to know what I'm doing to accomplish this, is there a good reference guide, tutorial, and/or set of examples to help me understand termios programming; especially in respect of interfacing with a serial port?
3. Does anyone have any tips to point me into the right direction?
Thanks in advance for your help...