Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GrMC4020Source< oType > Class Template Reference

#include <GrMC4020Source.h>

Inheritance diagram for GrMC4020Source< oType >:

VrSource< oType > VrSigProc List of all members.

Public Member Functions

virtual const char * name ()
 default name for a module (override with actual name)
virtual float memoryTouched ()
virtual int work2 (VrSampleRange output, void *o[])
virtual void initOutputBuffer (int n)
 GrMC4020Source (double sample_freq=GRMC_DEFAULT_SAMPLE_FREQ, unsigned long a_bitmask=GRMC_DEFAULT_CONFIG_BITMASK)

Protected Member Functions

unsigned long npages_to_free ()
unsigned long index_sub (unsigned long a, unsigned long b)

Protected Attributes

int device_fd
unsigned long config_bitmask
unsigned long buffersize_pages
unsigned long page_index
VrSampleIndex sample_index
unsigned long num_pages

template<class oType>
class GrMC4020Source< oType >


Constructor & Destructor Documentation

template<class oType>
GrMC4020Source< oType >::GrMC4020Source double  sample_freq = GRMC_DEFAULT_SAMPLE_FREQ,
unsigned long  a_bitmask = GRMC_DEFAULT_CONFIG_BITMASK
 


Member Function Documentation

template<class oType>
unsigned long GrMC4020Source< oType >::index_sub unsigned long  a,
unsigned long  b
[protected]
 

template<class oType>
void GrMC4020Source< oType >::initOutputBuffer int  n  )  [virtual]
 

Reimplemented from VrSigProc.

template<class oType>
virtual float GrMC4020Source< oType >::memoryTouched  )  [inline, virtual]
 

Returns the total number of bytes read (ignores written bytes) per second by the upstream chain ending with this module zero has a special meaning (no outputs in cache)

Reimplemented from VrSigProc.

template<class oType>
virtual const char* GrMC4020Source< oType >::name  )  [inline, virtual]
 

default name for a module (override with actual name)

Reimplemented from VrSource< oType >.

template<class oType>
unsigned long GrMC4020Source< oType >::npages_to_free  )  [protected]
 

Determine how many pages at the beginning of the region that the driver has allocated to us we no longer need. The earliest VrSampleIndex in use is given by proc_minRP(). We use this and sample_index (the VrSampleIndex of the beginning of the active portion of the driver buffer) to see if we can return some pages to the driver.

template<class oType>
int GrMC4020Source< oType >::work2 VrSampleRange  output,
void *  o[]
[virtual]
 

Implements VrSource< oType >.


Member Data Documentation

template<class oType>
unsigned long GrMC4020Source< oType >::buffersize_pages [protected]
 

template<class oType>
unsigned long GrMC4020Source< oType >::config_bitmask [protected]
 

template<class oType>
int GrMC4020Source< oType >::device_fd [protected]
 

template<class oType>
unsigned long GrMC4020Source< oType >::num_pages [protected]
 

template<class oType>
unsigned long GrMC4020Source< oType >::page_index [protected]
 

template<class oType>
VrSampleIndex GrMC4020Source< oType >::sample_index [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Aug 4 02:22:13 2004 for GNU Radio by doxygen 1.3.8