|
Microphone_PDM
|
#include <Microphone_PDM_nRF52.h>
Additional Inherited Members | |
Public Types inherited from Microphone_PDM_Base | |
| enum class | OutputSize { UNSIGNED_8 , SIGNED_16 , RAW_SIGNED_16 } |
| enum class | Range { RANGE_128 = 0 , RANGE_256 , RANGE_512 , RANGE_1024 , RANGE_2048 , RANGE_4096 , RANGE_8192 , RANGE_16384 , RANGE_32768 } |
Public Member Functions inherited from Microphone_PDM_Base | |
| int | getSampleRate () const |
Static Public Attributes inherited from Microphone_PDM_nRF52 | |
| static const size_t | BUFFER_SIZE_SAMPLES = 512 |
| static const size_t | NUM_BUFFERS = 2 |
Static Public Attributes inherited from Microphone_PDM_RTL872x | |
| static const size_t | BUFFER_SIZE_SAMPLES = SP_DMA_PAGE_SIZE / 2 |
| static const size_t | NUM_BUFFERS = SP_DMA_PAGE_NUM |
Protected Member Functions inherited from Microphone_PDM_nRF52 | |
| Microphone_PDM_nRF52 () | |
| virtual | ~Microphone_PDM_nRF52 () |
| virtual int | init () |
| virtual int | uninit () |
| virtual int | start () |
| virtual int | stop () |
| virtual bool | samplesAvailable () const |
| virtual bool | copySamples (void *pSamples) |
| virtual bool | noCopySamples (std::function< void(void *pSamples, size_t numSamples)>callback) |
| size_t | getNumberOfSamples () const |
| size_t | copySrcIncrement () const |
Protected Member Functions inherited from Microphone_PDM_Base | |
| Microphone_PDM_Base (size_t numSamples) | |
| virtual | ~Microphone_PDM_Base () |
| void | copySamplesInternal (const int16_t *src, uint8_t *dst) const |
| virtual size_t | copySrcIncrement () const |
Protected Member Functions inherited from Microphone_PDM_RTL872x | |
| Microphone_PDM_RTL872x () | |
| virtual | ~Microphone_PDM_RTL872x () |
| virtual int | init () |
| virtual int | uninit () |
| virtual int | start () |
| virtual int | stop () |
| virtual bool | samplesAvailable () const |
| virtual bool | copySamples (void *pSamples) |
| virtual bool | noCopySamples (std::function< void(void *pSamples, size_t numSamples)>callback) |
| size_t | getNumberOfSamples () const |
Protected Attributes inherited from Microphone_PDM_Base | |
| pin_t | clkPin = A0 |
| pin_t | datPin = A1 |
| bool | stereoMode = false |
| int | sampleRate |
| OutputSize | outputSize = OutputSize::SIGNED_16 |
| Range | range = Range::RANGE_2048 |
| size_t | numSamples |
Protected Attributes inherited from Microphone_PDM_RTL872x | |
| bool | running = false |
Microphone_PDM_MCU is an alias for the MCU-specific class like Microphone_PDM_nRF52.
Microphone_PDM_MCU is an alias for the MCU-specific class like Microphone_PDM_RTL872x.
This class exists so the subclass Microphone_PDM can just reference Microphone_PDM_MCU as its superclass regardless of which class is actually used.
This class exists so the subclass Microphone_PDM can just reference Microphone_PDM_MCU as its superclass regardless of which class is actually used.