ELEC2645 (2019/20) / Mbed 2 deprecated el18loc_final

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Filter Class Reference

Filter Class Reference

Filter class. More...

#include <Filter.h>

Public Member Functions

 Filter ()
 Constructor.
 ~Filter ()
 Destructor.
int filter_run (int input, int filter_type, bool init)
 Runs Main Filter adjusted value due to filter input filter type.
int LPF (int input, bool init)
 Implements Low Pass Filter Algorithm.
int HPF (int input, bool init)
 Implements High Pass Filter Algorithm.
int BPF (int input, bool init)
 Implements Band Pass Filter Algorithm LPF and HPF function.

Detailed Description

Filter class.

Author:
Luke Cartwright, University of Leeds Filters Synth Signal
Date:
May 2020

Definition at line 11 of file Filter.h.


Constructor & Destructor Documentation

Filter (  )

Constructor.

Definition at line 5 of file Filter.cpp.

~Filter (  )

Destructor.

Definition at line 8 of file Filter.cpp.


Member Function Documentation

int BPF ( int  input,
bool  init 
)

Implements Band Pass Filter Algorithm LPF and HPF function.

Definition at line 60 of file Filter.cpp.

int filter_run ( int  input,
int  filter_type,
bool  init 
)

Runs Main Filter adjusted value due to filter input filter type.

Definition at line 13 of file Filter.cpp.

int HPF ( int  input,
bool  init 
)

Implements High Pass Filter Algorithm.

Definition at line 45 of file Filter.cpp.

int LPF ( int  input,
bool  init 
)

Implements Low Pass Filter Algorithm.

Definition at line 30 of file Filter.cpp.