SerialAdvanced.C File Reference

#include "Devices/SerialAdvanced.H"
#include "Component/OptionManager.H"
#include "Util/log.H"
#include "rutz/unixcall.h"
#include <iostream>
#include <cstdio>
Include dependency graph for SerialAdvanced.C:

Go to the source code of this file.

Variables

const ModelOptionCateg MOC_SerialAdvanced
const ModelOptionDef OPT_DevNameAdvanced
const ModelOptionDef OPT_Baud
const ModelOptionDef OPT_CharBits
const ModelOptionDef OPT_StopBits
const ModelOptionDef OPT_UseParity
const ModelOptionDef OPT_ParityOdd
const ModelOptionDef OPT_FlowHard
const ModelOptionDef OPT_FlowSoft
const ModelOptionDef OPT_RdTout
const ModelOptionDef OPT_Blocking
const ModelOptionDef OPT_DevSearchDescriptor

Detailed Description

A class for interfacing with a serial port

Definition in file SerialAdvanced.C.


Variable Documentation

const ModelOptionCateg MOC_SerialAdvanced
Initial value:
 {
    MOC_SORTPRI_3, "Advanced Serial Port Related Options" }

Definition at line 46 of file SerialAdvanced.C.

const ModelOptionDef OPT_Baud
Initial value:
{ MODOPT_ARG(int), "Baud", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Baud Rate",
    "serial-baud", '\0', "", "9600" }

Definition at line 54 of file SerialAdvanced.C.

const ModelOptionDef OPT_Blocking
Initial value:
{ MODOPT_ARG(bool), "Blocking", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Use Blocking Mode?",
    "serial-blocking", '\0', "true | false", "true" }

Definition at line 94 of file SerialAdvanced.C.

const ModelOptionDef OPT_CharBits
Initial value:
{ MODOPT_ARG(int), "CharBits", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Number of bits per character",
    "serial-charbits", '\0', "", "8" }

Definition at line 59 of file SerialAdvanced.C.

const ModelOptionDef OPT_DevNameAdvanced
Initial value:
{ MODOPT_ARG(std::string), "DevNameAdvanced", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Device file",
    "serial-dev-advanced", '\0', "", "/dev/ttyS0" }

Definition at line 49 of file SerialAdvanced.C.

const ModelOptionDef OPT_DevSearchDescriptor
Initial value:
{ MODOPT_ARG(std::string), "DevSearchDesctriptor", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Some of the serial devices in iLab will respond to a command of '0' with "
    "a framed string containing a device description. By setting this commmand line option, "
    "one can specify which such string to search for among all available serial devices. "
    "The DevName will then be set according to which available device with the correct string.",
    "dev-descriptor", '\0', "", "" }

Definition at line 99 of file SerialAdvanced.C.

const ModelOptionDef OPT_FlowHard
Initial value:
{ MODOPT_ARG(bool), "FlowHard", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Use Hardware Flow Control?",
    "serial-flowhard", '\0', "true | false", "false" }

Definition at line 79 of file SerialAdvanced.C.

const ModelOptionDef OPT_FlowSoft
Initial value:
{ MODOPT_ARG(bool), "FlowSoft", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Use Software Flow Control?",
    "serial-flowsoft", '\0', "true | false", "false" }

Definition at line 84 of file SerialAdvanced.C.

const ModelOptionDef OPT_ParityOdd
Initial value:
{ MODOPT_ARG(bool), "ParityOdd", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Use Odd Parity?",
    "serial-oddparity", '\0', "true | false", "false" }

Definition at line 74 of file SerialAdvanced.C.

const ModelOptionDef OPT_RdTout
Initial value:
{ MODOPT_ARG(int), "RdTout", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Read Timeout",
    "serial-readtout", '\0', "", "-1" }

Definition at line 89 of file SerialAdvanced.C.

const ModelOptionDef OPT_StopBits
Initial value:
{ MODOPT_ARG(int), "StopBits", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Number of stop bits",
    "serial-stopbits", '\0', "", "1" }

Definition at line 64 of file SerialAdvanced.C.

const ModelOptionDef OPT_UseParity
Initial value:
{ MODOPT_ARG(bool), "UseParity", &MOC_SerialAdvanced, OPTEXP_CORE,
    "Use Parity?",
    "serial-parity", '\0', "true | false", "false" }

Definition at line 69 of file SerialAdvanced.C.

Generated on Sun May 8 08:42:40 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3