Skip to content

Struct daisysp::FIRMemory< 0, 0 >

template <>

ClassList > daisysp > FIRMemory< 0, 0 >

Public Functions

Type Name
void Reset ()
void SetStateBuffer (float state, size_t length)

Protected Attributes

Type Name
const float * coefs_
size_t size_
float * state_
size_t state_size_

Protected Functions

Type Name
FIRMemory ()
size_t MaxBlock () const
bool SetCoefs (const float coefs, size_t size, bool reverse)

Public Functions Documentation

function Reset

inline void daisysp::FIRMemory< 0, 0 >::Reset () 

function SetStateBuffer

inline void daisysp::FIRMemory< 0, 0 >::SetStateBuffer (
    float state,
    size_t length
) 

Set user-provided state buffer

Parameters:

  • state - pointer to the allocated memory block
  • length - length of the provided memory block (in elements) The length should be determined as follows length >= max_filter_size + max_processing_block - 1

Protected Attributes Documentation

variable coefs_

const float* daisysp::FIRMemory< 0, 0 >::coefs_;

variable size_

size_t daisysp::FIRMemory< 0, 0 >::size_;

variable state_

float* daisysp::FIRMemory< 0, 0 >::state_;

variable state_size_

size_t daisysp::FIRMemory< 0, 0 >::state_size_;

Protected Functions Documentation

function FIRMemory

inline daisysp::FIRMemory< 0, 0 >::FIRMemory () 

function MaxBlock

inline size_t daisysp::FIRMemory< 0, 0 >::MaxBlock () const

function SetCoefs

inline bool daisysp::FIRMemory< 0, 0 >::SetCoefs (
    const  float coefs,
    size_t size,
    bool reverse
) 

Configure the filter coefficients

Parameters:

  • coefs - pointer to coefficients (tail-first order)
  • size - number of coefficients pointed by coefs (filter length)
  • reverse - flag to perform reversing of the filter

Returns:

true if all conditions are met and the filter is configured



The documentation for this class was generated from the following file external-docs/DaisySP/Source/Filters/fir.h