SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Public Attributes | List of all members
leansdr::bitpath< T, TUS, NBITS, DEPTH > Struct Template Reference

#include <viterbi.h>

Public Member Functions

 bitpath ()
 
void append (TUS us)
 
TUS read ()
 

Public Attributes

val
 

Detailed Description

template<typename T, typename TUS, int NBITS, int DEPTH>
struct leansdr::bitpath< T, TUS, NBITS, DEPTH >

Definition at line 334 of file viterbi.h.

Constructor & Destructor Documentation

◆ bitpath()

template<typename T , typename TUS , int NBITS, int DEPTH>
leansdr::bitpath< T, TUS, NBITS, DEPTH >::bitpath ( )
inline

Definition at line 337 of file viterbi.h.

337 : val(0) {}

Member Function Documentation

◆ append()

template<typename T , typename TUS , int NBITS, int DEPTH>
void leansdr::bitpath< T, TUS, NBITS, DEPTH >::append ( TUS  us)
inline

Definition at line 338 of file viterbi.h.

338 { val = (val << NBITS) | us; }

◆ read()

template<typename T , typename TUS , int NBITS, int DEPTH>
TUS leansdr::bitpath< T, TUS, NBITS, DEPTH >::read ( )
inline

Definition at line 339 of file viterbi.h.

339 { return (val >> (DEPTH - 1) * NBITS) & ((1 << NBITS) - 1); }

Member Data Documentation

◆ val

template<typename T , typename TUS , int NBITS, int DEPTH>
T leansdr::bitpath< T, TUS, NBITS, DEPTH >::val

Definition at line 336 of file viterbi.h.


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