iir1
Loading...
Searching...
No Matches
Iir::Butterworth::HighPass< FilterOrder, StateType > Struct Template Reference

#include <Butterworth.h>

Inheritance diagram for Iir::Butterworth::HighPass< FilterOrder, StateType >:
Iir::PoleFilter< HighPassBase, DirectFormII, 4 > Iir::CascadeStages<(MaxAnalogPoles+1)/2, DirectFormII >

Public Member Functions

void setup (double sampleRate, double cutoffFrequency)
 
void setup (int reqOrder, double sampleRate, double cutoffFrequency)
 
void setupN (double cutoffFrequency)
 
void setupN (int reqOrder, double cutoffFrequency)
 
- Public Member Functions inherited from Iir::CascadeStages<(MaxAnalogPoles+1)/2, DirectFormII >
void reset ()
 
void setup (const double(&sosCoefficients)[MaxStages][6])
 
Sample filter (const Sample in)
 
const Cascade::Storage getCascadeStorage ()
 

Detailed Description

template<int FilterOrder = 4, class StateType = DirectFormII>
struct Iir::Butterworth::HighPass< FilterOrder, StateType >

Butterworth Highpass filter.

Parameters
FilterOrderReserves memory for a filter of the order FilterOrder
StateTypeThe filter topology: DirectFormI, DirectFormII, ...

Member Function Documentation

◆ setup() [1/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::Butterworth::HighPass< FilterOrder, StateType >::setup ( double sampleRate,
double cutoffFrequency )
inline

Calculates the coefficients with the filter order provided by the instantiation

Parameters
sampleRateSampling rate
cutoffFrequencyCutoff frequency

◆ setup() [2/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::Butterworth::HighPass< FilterOrder, StateType >::setup ( int reqOrder,
double sampleRate,
double cutoffFrequency )
inline

Calculates the coefficients

Parameters
reqOrderThe actual order which can be less than the instantiated one
sampleRateSampling rate
cutoffFrequencyCutoff frequency

◆ setupN() [1/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::Butterworth::HighPass< FilterOrder, StateType >::setupN ( double cutoffFrequency)
inline

Calculates the coefficients with the filter order provided by the instantiation

Parameters
cutoffFrequencyNormalised cutoff frequency (0..1/2)

◆ setupN() [2/2]

template<int FilterOrder = 4, class StateType = DirectFormII>
void Iir::Butterworth::HighPass< FilterOrder, StateType >::setupN ( int reqOrder,
double cutoffFrequency )
inline

Calculates the coefficients

Parameters
reqOrderThe actual order which can be less than the instantiated one
cutoffFrequencyNormalised cutoff frequency (0..1/2)

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