Main Page | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

otIIR Class Reference
[IIR - Infinite impulse response (IIR) filter.IIR - Infinite impulse response (IIR) filter.]

Class for IIR digital filter.

#include <otIIR.h>


Public Types

enum  DataType { DT_FLOAT, DT_INT }

Public Member Functions

 otIIR ()
bool init (U8 dataType, U8 ncoef)
void close ()
F32 process (F32 val)
S16 process (S16 val)
void setACoefficients (int num,...)
void setBCoefficients (int num,...)


Member Enumeration Documentation

enum otIIR::DataType
 

Enumeration values:
DT_FLOAT  Single precision floating point.
DT_INT  Signed 16 bit.


Constructor & Destructor Documentation

otIIR.otIIR  ) 
 

Create the class


Member Function Documentation

void otIIR.close  ) 
 

Free all allocated buffer

bool otIIR.init U8  dataType,
U8  ncoef
 

Init the class

Parameters:
dataType Type of data, see DataType
ncoef Number of coefficients. Accepted range 1 to 9
Returns:
True on success

S16 otIIR.process S16  val  ) 
 

Process a sample

Parameters:
val Sample to be processed
Returns:
Filtered sample

F32 otIIR.process F32  val  ) 
 

Process a sample

Parameters:
val Sample to be processed
Returns:
Filtered sample

void otIIR.setACoefficients int  num,
  ...
 

Set first block of coefficients

Parameters:
num Number of coefficients. Filter order + 1 \... List of coefficients

void otIIR.setBCoefficients int  num,
  ...
 

Set second block of coefficients

Parameters:
num Number of coefficients. Filter order + 1 \... List of coefficients


The documentation for this class was generated from the following file: footer
otStudio - Library Reference - (C) 2020-23 Officina Turini, All Rights Reserved
Document built with Doxygen 1.4.0