CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
ESSample Class Reference

#include <ESSample.h>

Public Member Functions

int adc () const
 get the ADC sample (singed 16 bits) More...
 
 ESSample ()
 
 ESSample (int16_t data)
 
 ESSample (int adc)
 
int16_t operator() ()
 for streaming More...
 
int16_t raw () const
 get the raw word More...
 

Private Attributes

int16_t theSample
 

Detailed Description

Definition at line 7 of file ESSample.h.

Constructor & Destructor Documentation

◆ ESSample() [1/3]

ESSample::ESSample ( )
inline

Definition at line 9 of file ESSample.h.

References theSample.

9 { theSample = 0; }
int16_t theSample
Definition: ESSample.h:21

◆ ESSample() [2/3]

ESSample::ESSample ( int16_t  data)
inline

Definition at line 10 of file ESSample.h.

References data, and theSample.

10 { theSample = data; }
int16_t theSample
Definition: ESSample.h:21
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

◆ ESSample() [3/3]

ESSample::ESSample ( int  adc)

Definition at line 3 of file ESSample.cc.

References adc(), and theSample.

3 { theSample = (int16_t)adc; }
int adc() const
get the ADC sample (singed 16 bits)
Definition: ESSample.h:16
int16_t theSample
Definition: ESSample.h:21

Member Function Documentation

◆ adc()

int ESSample::adc ( ) const
inline

◆ operator()()

int16_t ESSample::operator() ( )
inline

for streaming

Definition at line 18 of file ESSample.h.

References theSample.

18 { return theSample; }
int16_t theSample
Definition: ESSample.h:21

◆ raw()

int16_t ESSample::raw ( ) const
inline

get the raw word

Definition at line 14 of file ESSample.h.

References theSample.

14 { return theSample; }
int16_t theSample
Definition: ESSample.h:21

Member Data Documentation

◆ theSample

int16_t ESSample::theSample
private

Definition at line 21 of file ESSample.h.

Referenced by adc(), ESSample(), operator()(), and raw().