C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
MSGEQ7 Class Reference

The MSGEQ7 is an 7-band audio filter. More...

#include <msgeq7.h>

Collaboration diagram for MSGEQ7:
Collaboration graph

Public Member Functions

 MSGEQ7 (uint strobe_gpio, uint reset_gpio, uint signal_out)
 Construct a new MSGEQ7 object.
 
 ~MSGEQ7 ()
 Destroy the MSGEQ7 object.
 
std::array< uint16_t, 7 > get_spectrum ()
 Get the spectrum object.
 

Detailed Description

The MSGEQ7 is an 7-band audio filter.

The band frequencies are centered around: 63Hz, 160Hz, 400Hz, 1000Hz, 2500Hz, 6250Hz, 16000Hz. After a pulse on "reset_gpio" pin, a peak detector for each band is multiplexed on the pin "signal_out" at each pulse on pin "strobe_gpio".

Constructor & Destructor Documentation

◆ MSGEQ7()

MSGEQ7::MSGEQ7 ( uint strobe_gpio,
uint reset_gpio,
uint signal_out )

Construct a new MSGEQ7 object.

Parameters
strobe_gpiothe gpio connected to strobe
reset_gpiothe gpio connected to reset
signal_outthe gpio connected to the analog multiplexed peak detector

Member Function Documentation

◆ get_spectrum()

std::array< uint16_t, 7 > MSGEQ7::get_spectrum ( )

Get the spectrum object.

Returns
std::array<uint16_t,7> a table with 16bit values for each band

The documentation for this class was generated from the following files: