plinfo Class Reference

#include <atsc_types.h>

List of all members.


Detailed Description

pipeline info that flows with data

Not all modules need all the info

Public Member Functions

 plinfo ()
bool field_sync1_p () const
bool field_sync2_p () const
bool field_sync_p () const
bool regular_seg_p () const
bool in_field1_p () const
bool in_field2_p () const
bool first_regular_seg_p () const
bool transport_error_p () const
unsigned int segno () const
unsigned int flags () const
void set_field_sync1 ()
void set_field_sync2 ()
void set_regular_seg (bool field2, int segno)
void set_transport_error (bool error)
bool operator== (const plinfo &other) const
bool operator!= (const plinfo &other) const

Static Public Member Functions

static void delay (plinfo &out, const plinfo &in, int nsegs_of_delay)
static void sanity_check (const plinfo &in)

Protected Attributes

unsigned short _flags
unsigned short _segno

Static Protected Attributes

static const int fl_regular_seg = 0x0001
static const int fl_field_sync1 = 0x0002
static const int fl_field_sync2 = 0x0004
static const int fl_first_regular_seg = 0x0008
static const int fl_field2 = 0x0010
static const int fl_transport_error = 0x0020


Constructor & Destructor Documentation

plinfo::plinfo (  )  [inline]


Member Function Documentation

bool plinfo::field_sync1_p (  )  const [inline]

References _flags, and fl_field_sync1.

Referenced by field_sync_p().

bool plinfo::field_sync2_p (  )  const [inline]

References _flags, and fl_field_sync2.

Referenced by field_sync_p().

bool plinfo::field_sync_p (  )  const [inline]

References field_sync1_p(), and field_sync2_p().

Referenced by sanity_check().

bool plinfo::regular_seg_p (  )  const [inline]

bool plinfo::in_field1_p (  )  const [inline]

References _flags, and fl_field2.

Referenced by atsc_field_sync_mux::work().

bool plinfo::in_field2_p (  )  const [inline]

References _flags, and fl_field2.

Referenced by delay().

bool plinfo::first_regular_seg_p (  )  const [inline]

bool plinfo::transport_error_p (  )  const [inline]

References _flags, and fl_transport_error.

unsigned int plinfo::segno (  )  const [inline]

References _segno.

Referenced by delay(), and sanity_check().

unsigned int plinfo::flags (  )  const [inline]

References _flags.

Referenced by sanity_check().

void plinfo::set_field_sync1 (  )  [inline]

References _flags, _segno, and fl_field_sync1.

void plinfo::set_field_sync2 (  )  [inline]

References _flags, _segno, fl_field2, and fl_field_sync2.

void plinfo::set_regular_seg ( bool  field2,
int  segno 
) [inline]

void plinfo::set_transport_error ( bool  error  )  [inline]

References _flags, and fl_transport_error.

Referenced by atsc_rs_decoder::work().

bool plinfo::operator== ( const plinfo other  )  const [inline]

References _flags, and _segno.

bool plinfo::operator!= ( const plinfo other  )  const [inline]

References _flags, and _segno.

void plinfo::delay ( plinfo out,
const plinfo in,
int  nsegs_of_delay 
) [static]

Set OUT such that it reflects a NSEGS_OF_DELAY pipeline delay from IN.

References in_field2_p(), regular_seg_p(), segno(), and set_regular_seg().

Referenced by atsci_viterbi_decoder::decode(), and atsci_data_deinterleaver::deinterleave().

void plinfo::sanity_check ( const plinfo in  )  [static]


Member Data Documentation

unsigned short plinfo::_flags [protected]

unsigned short plinfo::_segno [protected]

const int plinfo::fl_regular_seg = 0x0001 [static, protected]

Referenced by regular_seg_p(), and set_regular_seg().

const int plinfo::fl_field_sync1 = 0x0002 [static, protected]

Referenced by field_sync1_p(), and set_field_sync1().

const int plinfo::fl_field_sync2 = 0x0004 [static, protected]

Referenced by field_sync2_p(), and set_field_sync2().

const int plinfo::fl_first_regular_seg = 0x0008 [static, protected]

const int plinfo::fl_field2 = 0x0010 [static, protected]

const int plinfo::fl_transport_error = 0x0020 [static, protected]


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

Generated on Thu Mar 27 14:43:10 2008 for GNU Radio 3.1.1 by  doxygen 1.5.5