RSeries astromech firmware
PeakValueProvider Class Reference

#include <core/PeakValueProvider.h>

Detailed Description

Base class peak value providers, currently only microphone amplitude.

+ Inheritance diagram for PeakValueProvider:

Public Member Functions

 PeakValueProvider ()
 Default Constructor. More...
 
virtual byte getPeakValue ()
 

Static Public Member Functions

static PeakValueProvidergetZero ()
 

Protected Attributes

byte fPeakValue
 

Constructor & Destructor Documentation

◆ PeakValueProvider()

PeakValueProvider::PeakValueProvider ( )
inline

Default Constructor.

Member Function Documentation

◆ getPeakValue()

virtual byte PeakValueProvider::getPeakValue ( )
inlinevirtual
Returns
last recorded peak value

Reimplemented in MicrophoneAmplitude.

◆ getZero()

static PeakValueProvider* PeakValueProvider::getZero ( )
inlinestatic
Returns
a zero PeakValueProvider. The zero provider will only return zero.

Member Data Documentation

◆ fPeakValue

byte PeakValueProvider::fPeakValue
protected

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