Skip to content

File dsp.h

FileList > DaisySP > Source > Utility > dsp.h

Go to the source code of this file

  • #include <cassert>
  • #include <cstdint>
  • #include <random>
  • #include <cmath>

Namespaces

Type Name
namespace daisysp
FIR Filter implementation, generic and ARM CMSIS DSP based.

Macros

Type Name
define DSY_CLAMP (in, mn, mx) (DSY\_MIN(DSY\_MAX(in, mn), mx))
define DSY_CORE_DSP
define DSY_COUNTOF (_arr) (sizeof(\_arr) / sizeof(\_arr[0]))
define DSY_MAX (in, mx) (in &gt; mx ? in : mx)
define DSY_MIN (in, mn) (in &lt; mn ? in : mn)
define HALFPI_F (PI\_F \* 0.5f)
define PI_F 3.1415927410125732421875f
define TWOPI_F (2.0f \* PI\_F)

Macro Definition Documentation

define DSY_CLAMP

#define DSY_CLAMP (
    in,
    mn,
    mx
) `(DSY_MIN(DSY_MAX(in, mn), mx))`

define DSY_CORE_DSP

#define DSY_CORE_DSP 

Helpful defines, functions, and other utilities for use in/with daisysp modules.


define DSY_COUNTOF

#define DSY_COUNTOF (
    _arr
) `(sizeof(_arr) / sizeof(_arr[0]))`

define DSY_MAX

#define DSY_MAX (
    in,
    mx
) `(in > mx ? in : mx)`

define DSY_MIN

#define DSY_MIN (
    in,
    mn
) `(in < mn ? in : mn)`

define HALFPI_F

#define HALFPI_F `(PI_F * 0.5f)`

define PI_F

#define PI_F `3.1415927410125732421875f`

PIs


define TWOPI_F

#define TWOPI_F `(2.0f * PI_F)`


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