/home/hal/workspace/HD Radio Controller/src/dtr.cpp File Reference

#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "halcyon.h"

Include dependency graph for dtr.cpp:

Namespaces

namespace  std

Functions

int main (const int argc, char *argv[])

Function Documentation

int main ( const int  argc,
char *  argv[] 
)

This is used in conjunction with everything else in the HD Radio Control project. It's a simple command line program to turn the DTR line on a serial port to low or high. This is often needed to help with debugging because the DTR line can be left on by accident. It takes two arguments: --device: The name of the device, such as /dev/ttyS0, to work with --state: on or off to turn the DTR line on or off


Generated on Sun Apr 6 01:13:22 2008 for HDRadioController by  doxygen 1.5.3