◆ TeeI2C() [1/2]
◆ ~TeeI2C()
◆ TeeI2C() [2/2]
| TeeI2C::TeeI2C |
( |
const TeeI2C & | | ) |
|
|
private |
◆ checkNMEA()
| bool TeeI2C::checkNMEA |
( |
const char * | input, |
|
|
const char * | eom ) |
◆ operator=()
◆ parseRunstring()
| int TeeI2C::parseRunstring |
( |
int | argc, |
|
|
char ** | argv ) |
References _app, _doFilterGPS, _filterGPS, _filterOutputFileName, _i2caddr, _i2cname, _inputFile, _ptynames, nidas::core::NidasApp::allowUnrecognized(), nidas::core::NidasAppArg::asBool(), asDaemon, nidas::core::NidasAppArg::asInt(), BlockingWrites, nidas::core::NidasApp::enableArguments(), Foreground, nidas::core::NidasAppArg::getValue(), nidas::core::NidasApp::Help, nidas::core::NidasApp::helpRequested(), KeepMSB, nidas::core::NidasApp::loggingArgs(), OutputToFile, nidas::core::NidasApp::parseArgs(), priority, Priority, nidas::core::NidasAppArg::specified(), usage(), and nidas::core::NidasApp::Version.
◆ readNMEAFile()
| void TeeI2C::readNMEAFile |
( |
| ) |
|
◆ run()
| int TeeI2C::run |
( |
| ) |
|
| throw | ( | ) | | | |
References _filterOutputFileName, _i2caddr, _i2cfd, _i2cname, _maxwfd, _outputFp, _ptyfds, _ptynames, _writefdset, asDaemon, fd, interrupted, MSECS_PER_SEC, PLOG, priority, progname, readNMEAFile(), setFIFOPriority(), USECS_PER_SEC, and WLOG.
Referenced by main().
◆ setFIFOPriority()
| void TeeI2C::setFIFOPriority |
( |
int | val | ) |
|
◆ usage()
◆ writeFilteredOutput()
| void TeeI2C::writeFilteredOutput |
( |
const char * | input, |
|
|
int | len, |
|
|
const fd_set & | wfds ) |
Check NMEA message for good checksum, date and time fields.
If OK, write to pseudoterminals.
References _badChecksums, _badFields, _badGGAFields, _badRMCFields, _fbend, _fbhead, _fbtail, _filterBuffer, _filterGPS, _filterOutputFileName, _lastLog, _outputFp, _ptyfds, _ptynames, asDaemon, checkNMEA(), ILOG, len, LOG_PERIOD_SECS, NLOG, nidas::util::NMEAchecksumOK(), nidas::util::UTime::toUsecs(), USECS_PER_SEC, and WLOG.
Referenced by writeOutput().
◆ writeOutput()
| void TeeI2C::writeOutput |
( |
const unsigned char * | buf, |
|
|
int | len ) |
References _doFilterGPS, _filterGPS, _maxwfd, _ptyfds, _ptynames, _signalMask, _writefdset, nidas::core::NidasAppArg::asBool(), BlockingWrites, len, NLOG, NSECS_PER_SEC, VLOG, WLOG, and writeFilteredOutput().
Referenced by readNMEAFile().
◆ _app
◆ _badChecksums
| unsigned int TeeI2C::_badChecksums |
|
private |
◆ _badFields
| unsigned int TeeI2C::_badFields |
|
private |
◆ _badGGAFields
| std::map<std::string, unsigned int> TeeI2C::_badGGAFields |
|
private |
◆ _badRMCFields
| std::map<std::string, unsigned int> TeeI2C::_badRMCFields |
|
private |
◆ _doFilterGPS
| bool TeeI2C::_doFilterGPS |
|
private |
◆ _fbend
◆ _fbhead
◆ _fbtail
◆ _filterBuffer
| char TeeI2C::_filterBuffer[4096] |
|
private |
◆ _filterGPS
| vector<bool> TeeI2C::_filterGPS |
|
private |
◆ _filterOutputFileName
| string TeeI2C::_filterOutputFileName |
|
private |
◆ _i2caddr
| unsigned int TeeI2C::_i2caddr |
|
private |
◆ _i2cfd
◆ _i2cname
◆ _inputFile
| string TeeI2C::_inputFile |
|
private |
◆ _lastLog
| long long TeeI2C::_lastLog |
|
private |
◆ _maxwfd
◆ _outputFp
◆ _ptyfds
| vector<int> TeeI2C::_ptyfds |
|
private |
◆ _ptynames
| vector<string> TeeI2C::_ptynames |
|
private |
◆ _signalMask
| sigset_t TeeI2C::_signalMask |
|
private |
◆ _writefdset
| fd_set TeeI2C::_writefdset |
|
private |
◆ asDaemon
◆ BlockingWrites
◆ Foreground
◆ KeepMSB
◆ LOG_PERIOD_SECS
| const int TeeI2C::LOG_PERIOD_SECS = 3600 |
|
private |
◆ OutputToFile
◆ priority
◆ Priority
◆ progname
The documentation for this class was generated from the following file: