DATRW++ library: seismic data I/O with multiple formats

◆ ctrl() [1/2]

SteimFrame::ESteimControl datrw::mseed::SEED::SteimFrame::ctrl ( const int &  i) const

return control code for word i

Definition at line 95 of file seedstructs.cc.

References control(), and nwords.

Referenced by datrw::mseed::SEED::dump(), and datrw::mseed::MiniSEEDRecord::read().

96  {
97  unsigned int code = ((this->control() >> ((nwords-i-1)*2)) & 0x03);
98  return(ESteimControl(code));
99  } // SteimFrame::ESteimControl SteimFrame::ctrl(const int& i) const
unsigned int control() const
return control word
Definition: seedstructs.h:490
ESteimControl
possible control codes
Definition: seedstructs.h:468
static const int nwords
numer of words to process
Definition: seedstructs.h:463
Here is the call graph for this function:
Here is the caller graph for this function: