34#define FRAMSIZE IIRClass::DEFAULT_FRAMESIZE
44#define __FPU_PRESENT 1U
45#include <cmsis/arm_math.h>
145 m_ringbuff[i] = NULL;
149 m_InterleaveBuff = NULL;
252 q15_t* m_InterleaveBuff;
254 bool create_coef(filterType_t,
int cutoff,
float q);
Biquad IIR filter class.
Definition: IIR.h:76
Definition: RingBuff.h:26
e_format
Definition: IIR.h:113
static const int BITLEN
Definition: IIR.h:86
void end()
Finalize the IIR library.
bool put(q15_t *pSrc, int size)
Put input data into the IIR library.
static const int INPUT_BUFFER_SIZE
Definition: IIR.h:107
int get(q15_t *pDsts)
Get the execution data of all channels.
e_error
Definition: IIR.h:124
error_t getErrorCause()
Get error information.
Definition: IIR.h:230
e_filterType
Definition: IIR.h:56
static const int MAX_CHANNEL_NUM
Definition: IIR.h:102
int get(q15_t *pDst, int channel)
Get the execution data of each channel.
bool empty(int channel)
Is the buffer empty or not of each channel.
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.
static const int MIN_FRAMESIZE
Definition: IIR.h:97
static const int DEFAULT_FRAMESIZE
Definition: IIR.h:92
@ Planar
the channel planar format
Definition: IIR.h:117
@ Interleave
the channel interleave format
Definition: IIR.h:115
@ ERR_FILTER_TYPE
Wrong filter type setting.
Definition: IIR.h:134
@ ERR_BUF_FULL
Failture of write as buffer is full.
Definition: IIR.h:138
@ ERR_MEMORY
Lack of memory area.
Definition: IIR.h:132
@ ERR_FORMAT
Wrong output format setting.
Definition: IIR.h:130
@ ERR_OK
No error.
Definition: IIR.h:126
@ ERR_FS
Wrong sampling rate.
Definition: IIR.h:140
@ ERR_CH_NUM
Wrong channel setting.
Definition: IIR.h:128
@ ERR_FRAME_SIZE
Wrong number of samples.
Definition: IIR.h:136
@ TYPE_BEF
Band Elimination Filter.
Definition: IIR.h:64
@ TYPE_BPF
Band Pass Filter.
Definition: IIR.h:62
@ TYPE_LPF
Low Pass Filter.
Definition: IIR.h:58
@ TYPE_HPF
High Pass Filter.
Definition: IIR.h:60