Go to the documentation of this file.
44 #ifndef GNSSTK_PACKEDNAVBITS_HPP
45 #define GNSSTK_PACKEDNAVBITS_HPP
88 const ObsID& obsIDArg,
93 const ObsID& obsIDArg,
94 const std::string rxString,
99 const ObsID& obsIDArg,
100 const NavID& navIDArg,
101 const std::string rxString,
106 const ObsID& obsIDArg,
107 const NavID& navIDArg,
108 const std::string rxString,
121 void setRxID(
const std::string rxString);
146 void dump(std::ostream& s = std::cout)
const noexcept;
152 const int scale )
const;
155 long asLong(
const int startBit,
157 const int scale )
const;
162 const int power2)
const;
167 const int power2)
const;
172 const int power2)
const;
175 std::string
asString(
const int startBit,
176 const int numChars)
const;
187 const int scale)
const;
192 const int power2)
const;
197 const int power2)
const;
206 const unsigned numBits[],
208 const int scale )
const;
221 const unsigned numBits1,
222 const unsigned startBit2,
223 const unsigned numBits2,
224 const int scale )
const;
227 long asLong(
const unsigned startBits[],
228 const unsigned numBits[],
230 const int scale )
const;
242 long asLong(
const unsigned startBit1,
243 const unsigned numBits1,
244 const unsigned startBit2,
245 const unsigned numBits2,
246 const int scale )
const;
250 const unsigned numBits[],
252 const int power2)
const;
266 const unsigned numBits1,
267 const unsigned startBit2,
268 const unsigned numBits2,
269 const int power2)
const;
273 const unsigned numBits[],
275 const int power2)
const;
299 const std::vector<unsigned>& numBits,
300 const std::vector<unsigned>& whichSF,
301 const std::vector<PackedNavBitsPtr>&
bits,
325 static double asSignedDouble(
const std::vector<unsigned>& startBits,
326 const std::vector<unsigned>& numBits,
327 const std::vector<unsigned>& whichSF,
328 const std::vector<PackedNavBitsPtr>&
bits,
343 const unsigned numBits1,
344 const unsigned startBit2,
345 const unsigned numBits2,
346 const int power2)
const;
350 const unsigned numBits[],
352 const int power2)
const;
367 const unsigned numBits1,
368 const unsigned startBit2,
369 const unsigned numBits2,
370 const int power2)
const;
372 bool asBool(
const unsigned bitNum)
const;
385 void addLong(
const long value,
437 void addDataVec(
const std::vector<uint8_t>&
data,
unsigned numBits);
448 std::string binbits(newbits.to_string((
char)0,(
char)1));
449 bits.insert(
bits.end(), &binbits[0], &binbits[binbits.length()]);
465 const short numPerLine=4,
466 const char delimiter =
' ',
467 const short numBitsPerWord=32 )
const;
487 static const unsigned int mmTIME = 0x0001;
488 static const unsigned int mmSAT = 0x0002;
489 static const unsigned int mmOBS = 0x0004;
490 static const unsigned int mmRX = 0x0008;
491 static const unsigned int mmNAV = 0x0010;
492 static const unsigned int mmALL = 0xFFFF;
493 static const unsigned int mmNONE = 0x0000;
495 const unsigned flagBits=
mmALL)
const;
505 const short startBit=0,
506 const short endBit=-1)
const;
517 const short startBit=0,
518 const short endBit=-1,
519 const unsigned flagBits=
mmALL)
const;
577 const short startBit=0,
578 const short endBit=-1);
646 uint64_t
asUint64_t(
const int startBit,
const int numBits )
const;
649 void addUint64_t(
const uint64_t value,
const int numBits );
652 int64_t
SignExtend(
const int startBit,
const int numBits )
const;
655 double ScaleValue(
const double value,
const int power2)
const;
void addDataVec(const std::vector< uint8_t > &data, unsigned numBits)
void setRxID(const std::string rxString)
bool match(const PackedNavBits &right, const short startBit=0, const short endBit=-1, const unsigned flagBits=mmALL) const
std::shared_ptr< PackedNavBits > PackedNavBitsPtr
Managed pointer for passing PackedNavBits around.
void addUnsignedDouble(const double value, const int numBits, const int power2)
void addDoubleSemiCircles(const double radians, const int numBits, const int power2)
void reset_num_bits(const int new_bits_used=0)
double asUnsignedDouble(const int startBit, const int numBits, const int power2) const
void addPackedNavBits(const PackedNavBits &pnb)
unsigned long asUnsignedLong(const int startBit, const int numBits, const int scale) const
bool matchMetaData(const PackedNavBits &right, const unsigned flagBits=mmALL) const
bool isXmitCoerced() const
double asSignedDouble(const int startBit, const int numBits, const int power2) const
CommonTime getTransmitTime() const
static const unsigned int mmNAV
void setTime(const CommonTime &transmitTimeArg)
double asDoubleSemiCircles(const int startBit, const int numBits, const int power2) const
long asSignMagLong(const int startBit, const int numBits, const int scale) const
@ psFailed
Parity/CRC check was performed and failed.
void rawBitInput(const std::string inString)
void setXmitCoerced(bool tf=true)
@ psPassed
Parity/CRC check was performed and passed.
static const unsigned int mmNONE
ParityStatus parityStatus
void addLong(const long value, const int numBits, const int scale)
bool operator<(const PackedNavBits &right) const
static const unsigned int mmOBS
static const unsigned int mmRX
void setSatID(const SatID &satSysArg)
void addUint64_t(const uint64_t value, const int numBits)
const std::vector< bool > & getBits() const
static const unsigned int mmTIME
void setObsID(const ObsID &obsIDArg)
bool operator==(const PackedNavBits &right) const
void insertUnsignedLong(const unsigned long value, const int startBit, const int numBits, const int scale=1)
static const unsigned int mmALL
double asSignMagDouble(const int startBit, const int numBits, const int power2) const
long asLong(const int startBit, const int numBits, const int scale) const
void setNavID(const NavID &navIDArg)
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
int64_t SignExtend(const int startBit, const int numBits) const
bool asBool(const unsigned bitNum) const
bool matchBits(const PackedNavBits &right, const short startBit=0, const short endBit=-1) const
double asSignMagDoubleSemiCircles(const int startBit, const int numBits, const int power2) const
void addString(const std::string String, const int numChars)
void copyBits(const PackedNavBits &src, const short startBit=0, const short endBit=-1)
void dump(std::ostream &s=std::cout) const noexcept
@ psUnknown
Parity/CRC check has not been performed.
int outputPackedBits(std::ostream &s=std::cout, const short numPerLine=4, const char delimiter=' ', const short numBitsPerWord=32) const
PackedNavBits * clone() const
void addSignedDouble(const double value, const int numBits, const int power2)
std::string asString(const int startBit, const int numChars) const
void addBitset(const std::bitset< N > &newbits)
static const unsigned int mmSAT
void addUnsignedLong(const unsigned long value, const int numBits, const int scale)
uint64_t asUint64_t(const int startBit, const int numBits) const
std::string getRxID() const
PackedNavBits()
empty constructor
double ScaleValue(const double value, const int power2) const
size_t getNumBits() const
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:40