Skip to content
Snippets Groups Projects
Select Git revision
  • e826dd7e642f56c84a5dffb6398ec4b0f2dea68e
  • master default protected
  • github/fork/hrani/master
  • github/fork/dilawar/master
  • chamcham
  • chhennapoda
  • wheel
  • 3.2.0-pre0
  • v3.1.3
  • 3.1.2
  • 3.1.1
  • chamcham-3.1.1
  • 3.1.0
  • ghevar_3.0.2_pre2
  • ghevar_3.0.2
15 results

DiffAmp.h

Blame
  • user avatar
    Dilawar Singh authored
    6753dfb2
    History
    DiffAmp.h 1002 B
    // DiffAmp.h ---
    //
    // Filename: DiffAmp.h
    // Description:
    // Author: Subhasis Ray
    // Maintainer:
    // Created: Wed Feb 22 02:28:54 2012 (+0530)
    // Version:
    // Last-Updated: Wed Feb 22 03:03:01 2012 (+0530)
    //           By: Subhasis Ray
    //     Update #: 15
    // URL:
    // Keywords:
    // Compatibility:
    //
    //
    
    // Commentary:
    //
    //
    //
    //
    
    // Change log:
    //
    //
    //
    
    // Code:
    
    #ifndef _DIFFAMP_H
    #define _DIFFAMP_H
    
    #include "../basecode/header.h"
    
    class DiffAmp
    {
      public:
        DiffAmp();
        ~DiffAmp();
        void setGain(double gain);
        double getGain() const;
        void setSaturation(double saturation);
        double getSaturation() const;
        double getOutput() const;
        void plusFunc(double input);
        void minusFunc(double input);
        void process(const Eref& e, ProcPtr p);
        void reinit(const Eref& e, ProcPtr p);
    
        static const Cinfo* initCinfo();
    
      protected:
        double gain_;
        double saturation_;
        double plus_;
        double minus_;
        double output_;
    };
    
    #endif
    
    //
    // DiffAmp.h ends here