MuseScore  3.4
Music composition and notation
Public Types | Public Member Functions | Private Attributes | List of all members
Prbsgen Class Reference

#include <prbsgen.h>

Public Types

enum  {
  G7 = 0x00000041, G8 = 0x0000008E, G15 = 0x00004001, G16 = 0x00008016,
  G23 = 0x00400010, G24 = 0x0080000D, G31 = 0x40000004, G32 = 0x80000057
}
 

Public Member Functions

 Prbsgen (void)
 
void set_poly (uint32_t poly)
 
void set_stat (uint32_t stat)
 
void sync_forw (uint32_t bits)
 
void sync_back (uint32_t bits)
 
int step (void)
 
void crc_in (int b)
 
int crc_out (void)
 
uint32_t stat (void) const
 
uint32_t poly (void) const
 
uint32_t mask (void) const
 
uint32_t hbit (void) const
 
int degr (void) const
 
 ~Prbsgen (void)
 

Private Attributes

uint32_t _stat
 
uint32_t _poly
 
uint32_t _mask
 
uint32_t _hbit
 
int _degr
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
G7 
G8 
G15 
G16 
G23 
G24 
G31 
G32 

Constructor & Destructor Documentation

◆ Prbsgen()

Prbsgen::Prbsgen ( void  )
inline

◆ ~Prbsgen()

Prbsgen::~Prbsgen ( void  )
inline

Member Function Documentation

◆ crc_in()

void Prbsgen::crc_in ( int  b)
inline

◆ crc_out()

int Prbsgen::crc_out ( void  )
inline

◆ degr()

int Prbsgen::degr ( void  ) const
inline

◆ hbit()

uint32_t Prbsgen::hbit ( void  ) const
inline

◆ mask()

uint32_t Prbsgen::mask ( void  ) const
inline

◆ poly()

uint32_t Prbsgen::poly ( void  ) const
inline

◆ set_poly()

void Prbsgen::set_poly ( uint32_t  poly)
inline

◆ set_stat()

void Prbsgen::set_stat ( uint32_t  stat)
inline

◆ stat()

uint32_t Prbsgen::stat ( void  ) const
inline

◆ step()

int Prbsgen::step ( void  )
inline

◆ sync_back()

void Prbsgen::sync_back ( uint32_t  bits)
inline

◆ sync_forw()

void Prbsgen::sync_forw ( uint32_t  bits)
inline

Member Data Documentation

◆ _degr

int Prbsgen::_degr
private

◆ _hbit

uint32_t Prbsgen::_hbit
private

◆ _mask

uint32_t Prbsgen::_mask
private

◆ _poly

uint32_t Prbsgen::_poly
private

◆ _stat

uint32_t Prbsgen::_stat
private

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