nidas  v1.2-1520
Public Member Functions | Private Attributes | List of all members
TeeI2C Class Reference

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
 

Constructor & Destructor Documentation

TeeI2C::TeeI2C ( )
TeeI2C::~TeeI2C ( )

References _i2cfd, _ptyfds, and _ptynames.

Member Function Documentation

void TeeI2C::i2c_block_reads ( )
throw (n_u::IOException
)

References _i2cfd, _i2cname, and writeptys().

void TeeI2C::i2c_byte_reads ( )
throw (n_u::IOException
)
int TeeI2C::parseRunstring ( int  argc,
char **  argv 
)
int TeeI2C::run ( )
throw (
)
void TeeI2C::setFIFOPriority ( int  val)

References progname, nidas::util::Exception::what(), and WLOG.

Referenced by run().

int TeeI2C::usage ( )
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().

Member Data Documentation

NidasApp TeeI2C::_app
private

Referenced by parseRunstring(), and usage().

unsigned int TeeI2C::_i2caddr
private

Referenced by parseRunstring(), and run().

int TeeI2C::_i2cfd
private
string TeeI2C::_i2cname
private
int TeeI2C::_maxwfd
private

Referenced by run().

vector<int> TeeI2C::_ptyfds
private

Referenced by run(), and ~TeeI2C().

vector<string> TeeI2C::_ptynames
private

Referenced by parseRunstring(), run(), and ~TeeI2C().

sigset_t TeeI2C::_signalMask
private
fd_set TeeI2C::_writefdset
private

Referenced by run().

bool TeeI2C::asDaemon
private

Referenced by parseRunstring(), and run().

NidasAppArg TeeI2C::BlockingWrites
private

Referenced by parseRunstring().

NidasAppArg TeeI2C::Foreground
private

Referenced by parseRunstring().

NidasAppArg TeeI2C::KeepMSB
private

Referenced by i2c_byte_reads(), and parseRunstring().

int TeeI2C::priority
private

Referenced by parseRunstring(), and run().

NidasAppArg TeeI2C::Priority
private

Referenced by parseRunstring().

string TeeI2C::progname
private

Referenced by run(), and setFIFOPriority().


The documentation for this class was generated from the following file: