17 if( (0xFF & jitterErrorBits) == 0x00)
20 if( (0xFF & jitterErrorBits) == 0xFF)
24 uint8_t exponent = jitterErrorBits>>5;
25 uint8_t significand = jitterErrorBits & ~(0x7<<5);
26 return (
float)(
std::pow(2,exponent)*significand*LSB)/(25.*1000);
48 float quantityInLSB = (1000*25*jitterErr)/LSB;
49 int log2OfQuantity = (int) (log2( quantityInLSB ));
50 int exponentTmp = log2OfQuantity - 4;
52 if (exponentTmp>0) exponent = exponentTmp;
53 uint8_t significand = (int) ( std::lround( quantityInLSB /
std::pow(2,exponent) ) );
56 if( (0xFF & jitterErrorBits) == 0xFF)
57 jitterErrorBits = 0xFE;
58 if( (0xFF & jitterErrorBits) == 0x00)
59 jitterErrorBits = 0x01;
61 aux_ = (~0xFF &
aux_) | (jitterErrorBits & 0xFF);
102 if(flag ==
kGood){
if ( !
flags_ )
return true;
else return false;}
103 return flags_ & ( 0x1<<flag);
bool isJitterValid() const
void setJitterError(float jitterErr)
uint8_t jitterErrorBits() const
bool checkFlag(Flags flag) const
float jitterError() const
void setFlagBit(Flags flag)
bool isJitterErrorValid() const
Power< A, B >::type pow(const A &a, const B &b)