#include <IdealAdcSimulator.h>
|
using | Channel = unsigned int |
|
using | Count = unsigned short |
|
using | Tick = unsigned int |
|
Definition at line 23 of file IdealAdcSimulator.h.
IdealAdcSimulator::IdealAdcSimulator |
( |
double |
vsen, |
|
|
unsigned int |
nbit = 12 |
|
) |
| |
|
explicit |
Definition at line 7 of file IdealAdcSimulator_tool.cc.
9 if ( nbit == 0 )
return;
10 unsigned int nbitmax = 8*
sizeof(
Count);
11 if ( nbit > nbitmax )
return;
13 for (
unsigned int ibit=0; ibit<nbit; ++ibit ) {
Implements AdcSimulator.
Definition at line 28 of file IdealAdcSimulator_tool.cc.
30 double halfsen = 0.5*
m_vsen;
31 if (
m_vsen <= 0.0 )
return 0;
32 if ( vin < halfsen )
return 0;
Count count(double vin, Channel chan=0, Tick tick=0) const override
AdcSimulator::Count Count
Count IdealAdcSimulator::m_adcmax |
|
private |
double IdealAdcSimulator::m_vmax |
|
private |
double IdealAdcSimulator::m_vsen |
|
private |
The documentation for this class was generated from the following files: