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 (int adc)
 
 ESSample (int16_t data)
 
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.

9 { theSample = 0; }

References theSample.

◆ ESSample() [2/3]

ESSample::ESSample ( int16_t  data)
inline

Definition at line 10 of file ESSample.h.

10 { theSample = data; }

References data, and theSample.

◆ ESSample() [3/3]

ESSample::ESSample ( int  adc)

Definition at line 3 of file ESSample.cc.

3 { theSample = (int16_t)adc; }

References adc(), and theSample.

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.

18 { return theSample; }

References theSample.

◆ raw()

int16_t ESSample::raw ( ) const
inline

get the raw word

Definition at line 14 of file ESSample.h.

14 { return theSample; }

References theSample.

Member Data Documentation

◆ theSample

int16_t ESSample::theSample
private

Definition at line 21 of file ESSample.h.

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

ESSample::adc
int adc() const
get the ADC sample (singed 16 bits)
Definition: ESSample.h:16
ESSample::theSample
int16_t theSample
Definition: ESSample.h:21
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79