Robochameleon  v1.0
Public Member Functions | Public Attributes | List of all members
PPG_v1 Class Reference

PPG Pulse pattern generator. More...

Inherits unit.

Public Member Functions

function PPG_v1 (in param)
 Class constructor. More...
 
function setLevels (in obj, in levels)
 Set the amplitude levels of the PPG generator. More...
 
function traverse (in obj)
 
- Public Member Functions inherited from unit
virtual traverse (in obj, in varargin)
 Main function call.
 
function traverseNode (in obj)
 Set unique ID when creating a unit. More...
 
function connectOutput (in obj, in uobj, in unitOutput, in nextUnitInput)
 Specify where signal should go next. More...
 
function connectOutputs (in obj, in units, in destInputs)
 Specify where signal should go next. More...
 
function writeInputBuffer (in obj, in sig, in inputId)
 write input buffer
 
function horzcat (in varargin)
 horizontal concatenation
 
function vertcat (in varargin)
 vertical concatenation
 
function setparams (in obj, in params, in REQUIRED_PARAMS, in QUIET_PARAMS)
 set parameters More...
 
function view (in obj)
 Show interactive GUI through unit_view-class.
 

Public Attributes

Property nInputs
 Number of inputs.
 
Property nOutputs
 Number of outputs.
 
Property order
 PRBS order.
 
Property total_length
 Output sequence length.
 
Property Rs
 Symbol rate.
 
Property level1
 Amplitude of high level.
 
Property level0
 Amplitude of low level.
 
- Public Attributes inherited from unit
Property inputBuffer
 Buffer for storing inputs as we traverse the graph.
 
Property nextNodes
 Children nodes.
 
Property destInputs
 Destination inputs in children.
 
Property results
 For storing results.
 
Property label
 
Property draw
 enable/disable plotting
 
Property nInputs
 Number of signals traverse expects.
 
Property nOutputs
 Number of outputs traverse expects.
 

Detailed Description

PPG Pulse pattern generator.

Outputs a 2^order - 1 pseudorandom sequence repeated up to total_length bits with Rs symbol rate. If block attribute is set, the unit is set to do block-processing.

Example PRBS sequence generator polynomials

Author
Miguel Iglesias
Version
1

Definition at line 21 of file PPG_v1.m.

Constructor & Destructor Documentation

function PPG_v1::PPG_v1 ( in  param)

Class constructor.

Constructs an object of type PRBS

Parameters
param.nOutputsNumber of output sequences. [Default: 1].
param.total_lengthOutput sequence lenghts [symbols].
param.RsSymbol rate
param.levelsAmplitude levels as vector [level0 level1]. Takes precedence respect level0/1
param.level0Amplitude of high level. [Default: 1].
param.level1Amplitude of low level. [Default: 0].
Return values
objAn instance of the class PPG_v1

Member Function Documentation

function PPG_v1::setLevels ( in  obj,
in  levels 
)

Set the amplitude levels of the PPG generator.

Parameters
levelsIf scalar the value is assigned to level1. If vector the max is assigned to level1 and the min to level0.

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