11 #ifndef __TwoBitMask_h 
   12 #define __TwoBitMask_h 
   27     inline unsigned char operator() ( unsigned char data,  unsigned isamp)  
   28     {  return (data >> shift[isamp]) & 0x03; }  
   31     inline unsigned char operator() ( unsigned char data)  
   32     {  return (data >> shift[0]) & 0x03; }  
   46     inline unsigned char operator() ( unsigned char data,  unsigned isamp)  
   47     {  return ((data>>shift0[isamp]) & 0x01)|((data>>shift1[isamp]) & 0x02); }  
   52   std::ostream& operator<< (std::ostream& ostr,  const GatherMask<N>& mask)  
   54     for ( unsigned i=0; i<N; i++)  
   55       ostr << mask.shift0[i] <<  ":" << mask.shift1[i] <<  " ";  
   61 #endif // !defined(__TwoBitMask_h) 
  
Contains all Baseband Data Reduction Library classes. Definition: ASCIIObservation.h:17  
unsigned char operator()(unsigned char data, unsigned isamp) Return the shifted 2-bit number. Definition: TwoBitMask.h:51  
Gathers the two bits from separate locations. Definition: TwoBitMask.h:43  
unsigned char operator()(unsigned char data, unsigned isamp) Return the shifted 2-bit number. Definition: TwoBitMask.h:37  
 
Generated using doxygen 1.8.17
 
 
 |