ReelTwo
RSeries astromech firmware
PeakValueProvider.h
Go to the documentation of this file.
1
#ifndef PeakValueProvider_h
2
#define PeakValueProvider_h
3
4
#include "
ReelTwo.h
"
5
13
class
PeakValueProvider
14
{
15
public
:
19
PeakValueProvider
() :
20
fPeakValue
(0)
21
{}
22
26
virtual
byte
getPeakValue
()
27
{
28
return
fPeakValue
;
29
}
30
34
static
PeakValueProvider
*
getZero
()
35
{
36
static
PeakValueProvider
zeroProvider;
37
return
&zeroProvider;
38
}
39
40
protected
:
41
byte
fPeakValue
;
42
};
43
44
#endif
ReelTwo.h
PeakValueProvider::getZero
static PeakValueProvider * getZero()
Definition:
PeakValueProvider.h:34
PeakValueProvider
Base class peak value providers, currently only microphone amplitude.
Definition:
PeakValueProvider.h:13
PeakValueProvider::getPeakValue
virtual byte getPeakValue()
Definition:
PeakValueProvider.h:26
PeakValueProvider::fPeakValue
byte fPeakValue
Definition:
PeakValueProvider.h:41
PeakValueProvider::PeakValueProvider
PeakValueProvider()
Default Constructor.
Definition:
PeakValueProvider.h:19
core
PeakValueProvider.h
Generated by
1.8.17