1 #ifndef DIGIFTL_FTLSAMPLE_H
2 #define DIGIFTL_FTLSAMPLE_H
6 #include <boost/cstdint.hpp>
44 <<
" Mode: " <<
mode()
46 <<
" Data: " <<
data()
47 <<
" Raw=0x" << std::hex <<
raw() <<
std::dec << std::endl;
65 void setWord(uint32_t word, uint32_t mask, uint32_t pos)
68 const uint32_t masked_word = (word & mask) << pos;
uint32_t raw() const
getters
FTLSample(uint32_t value)
void setToA(uint16_t toa)
void setData(uint16_t data)
void setThreshold(bool thr)
setters
FTLSample(const FTLSample &o)
void print(std::ostream &out=std::cout)
void set(bool thr, bool mode, uint16_t toa, uint16_t data)
void setWord(uint32_t word, uint32_t mask, uint32_t pos)
wrapper to reset words at a given position