Spresense Arduino Library v3.4.5-a526a83
Loading...
Searching...
No Matches
IIRClass Class Reference

Biquad IIR filter class. More...

#include <IIR.h>

Public Types

enum  e_format { Interleave , Planar }
 
enum  e_error {
  ERR_OK = 0 , ERR_CH_NUM = -1 , ERR_FORMAT = -2 , ERR_MEMORY = -3 ,
  ERR_FILTER_TYPE = -4 , ERR_FRAME_SIZE = -5 , ERR_BUF_FULL = -6 , ERR_FS = -7
}
 
typedef enum IIRClass::e_format format_t
 
typedef enum IIRClass::e_error error_t
 

Public Member Functions

bool begin (filterType_t type, int channel, int cutoff, float q, int sample=DEFAULT_FRAMESIZE, format_t output=Planar, int fs=48000)
 Initialize the IIR library.
 
bool put (q15_t *pSrc, int size)
 Put input data into the IIR library.
 
int get (q15_t *pDst, int channel)
 Get the execution data of each channel.
 
int get (q15_t *pDsts)
 Get the execution data of all channels.
 
void end ()
 Finalize the IIR library.
 
bool empty (int channel)
 Is the buffer empty or not of each channel.
 
error_t getErrorCause ()
 Get error information.
 

Static Public Attributes

static const int BITLEN = 16
 
static const int DEFAULT_FRAMESIZE = 768
 
static const int MIN_FRAMESIZE = 240
 
static const int MAX_CHANNEL_NUM = 8
 
static const int INPUT_BUFFER_SIZE = 4
 

Detailed Description

Biquad IIR filter class.


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