Public Member Functions | Public Attributes | List of all members
gnsstk::NavMsgDataWords< WordSize > Class Template Reference

Detailed Description

template<std::size_t WordSize = 30>
class gnsstk::NavMsgDataWords< WordSize >

Define a class for storing NavFilterKey data in an array of 32-bit words. The template argument WordSize indicates how many of the 32-bit words contain data, e.g. 30 bits for GPS LNav and BeiDou D1 and D2 nav. WordSize cannot be larger than 32. This class is intended to be used as a template argument for NavFilterKey objects e.g. D1NavFilterData. It is not expected to be used directly by developers.

Definition at line 58 of file NavMsgDataWords.hpp.

#include <NavMsgDataWords.hpp>

Inheritance diagram for gnsstk::NavMsgDataWords< WordSize >:
Inheritance graph
[legend]

Public Member Functions

void dump (std::ostream &s, unsigned totalBits) const override
 
uint32_t getBits (unsigned start, unsigned num) const override
 

Public Attributes

uint32_t * sf
 The subframe contents, an array of words of WordSize bits. More...
 

Member Function Documentation

◆ dump()

template<std::size_t WordSize>
void gnsstk::NavMsgDataWords< WordSize >::dump ( std::ostream &  s,
unsigned  totalBits 
) const
overridevirtual

Dump the contents of this message to the given stream.

Parameters
[in,out]sThe stream to dump the data to.
[in]totalBitsThe total number of bits to dump (usually the number of bits in the subframe).

Implements gnsstk::NavMsgData.

Definition at line 97 of file NavMsgDataWords.hpp.

◆ getBits()

template<std::size_t WordSize>
uint32_t gnsstk::NavMsgDataWords< WordSize >::getBits ( unsigned  start,
unsigned  num 
) const
overridevirtual

Get a value, up to 32 bits, out of the nav message.

Parameters
[in]startThe first bit (counting from 1 through the maximum number of bits in a single subframe) of the desired bits.
[in]numThe number of consecutive bits to retrieve.
Returns
The value extracted from the nav message starting at start and ending at (start-1+num).

Implements gnsstk::NavMsgData.

Definition at line 84 of file NavMsgDataWords.hpp.

Member Data Documentation

◆ sf

template<std::size_t WordSize = 30>
uint32_t* gnsstk::NavMsgDataWords< WordSize >::sf

The subframe contents, an array of words of WordSize bits.

Definition at line 77 of file NavMsgDataWords.hpp.


The documentation for this class was generated from the following file:


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:45