nidas
v1.2-1520
|
Public Member Functions | |
TeeI2C () | |
~TeeI2C () | |
int | parseRunstring (int argc, char **argv) |
int | run () throw () |
void | i2c_byte_reads () throw (n_u::IOException) |
void | i2c_block_reads () throw (n_u::IOException) |
void | writeptys (const unsigned char *buf, int len) throw (n_u::IOException) |
void | setFIFOPriority (int val) |
int | usage () |
Private Attributes | |
string | progname |
string | _i2cname |
unsigned int | _i2caddr |
int | _i2cfd |
vector< string > | _ptynames |
vector< int > | _ptyfds |
bool | asDaemon |
int | priority |
sigset_t | _signalMask |
fd_set | _writefdset |
int | _maxwfd |
NidasApp | _app |
NidasAppArg | Priority |
NidasAppArg | Foreground |
NidasAppArg | KeepMSB |
NidasAppArg | BlockingWrites |
TeeI2C::TeeI2C | ( | ) |
void TeeI2C::i2c_block_reads | ( | ) | ||
throw | ( | n_u::IOException | ||
) |
References _i2cfd, _i2cname, and writeptys().
void TeeI2C::i2c_byte_reads | ( | ) | ||
throw | ( | n_u::IOException | ||
) |
References _i2cfd, _i2cname, nidas::util::addBackslashSequences(), nidas::core::NidasAppArg::asBool(), KeepMSB, len, NLOG, VLOG, and writeptys().
Referenced by run().
int TeeI2C::parseRunstring | ( | int | argc, |
char ** | argv | ||
) |
References _app, _i2caddr, _i2cname, _ptynames, nidas::core::NidasAppArg::asBool(), asDaemon, nidas::core::NidasAppArg::asInt(), BlockingWrites, nidas::core::NidasApp::enableArguments(), Foreground, nidas::core::NidasApp::Help, nidas::core::NidasApp::helpRequested(), KeepMSB, nidas::core::NidasApp::loggingArgs(), nidas::core::NidasApp::parseArgs(), priority, Priority, nidas::core::NidasAppArg::specified(), usage(), and nidas::core::NidasApp::Version.
Referenced by main().
int TeeI2C::run | ( | ) | ||
throw | ( | |||
) |
References _i2caddr, _i2cfd, _i2cname, _maxwfd, _ptyfds, _ptynames, _writefdset, nidas::util::Termios::apply(), asDaemon, nidas::util::Logger::createInstance(), nidas::util::SerialPort::createPtyLink(), fd, nidas::util::Logger::getInstance(), nidas::util::Logger::getScheme(), i2c_byte_reads(), interrupted, MSECS_PER_SEC, PLOG, priority, progname, setFIFOPriority(), nidas::util::Termios::setRaw(), nidas::util::Logger::setScheme(), USECS_PER_SEC, nidas::util::Exception::what(), and WLOG.
Referenced by main().
void TeeI2C::setFIFOPriority | ( | int | val | ) |
References progname, nidas::util::Exception::what(), and WLOG.
Referenced by run().
int TeeI2C::usage | ( | ) |
References _app, nidas::core::NidasApp::getName(), and nidas::core::NidasApp::usage().
Referenced by parseRunstring().
void TeeI2C::writeptys | ( | const unsigned char * | buf, |
int | len | ||
) | |||
throw | ( | n_u::IOException | |
) |
References len, NLOG, NSECS_PER_SEC, VLOG, and WLOG.
Referenced by i2c_block_reads(), and i2c_byte_reads().
|
private |
Referenced by parseRunstring(), and usage().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by i2c_block_reads(), i2c_byte_reads(), run(), and ~TeeI2C().
|
private |
Referenced by i2c_block_reads(), i2c_byte_reads(), parseRunstring(), and run().
|
private |
Referenced by run().
|
private |
Referenced by parseRunstring(), run(), and ~TeeI2C().
|
private |
|
private |
Referenced by run().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by parseRunstring().
|
private |
Referenced by parseRunstring().
|
private |
Referenced by i2c_byte_reads(), and parseRunstring().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by parseRunstring().
|
private |
Referenced by run(), and setFIFOPriority().