#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "halcyon.h"
Namespaces | |
namespace | std |
Functions | |
int | main (const int argc, char *argv[]) |
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