|
Lamp-Da 0.1
A compact lantern project
|
Interface for the physical components of the microphone. More...
Go to the source code of this file.
Classes | |
| struct | lampda::component::microphone::SoundStruct |
| Handle the analysis of a sound sample. This structure handled the FastFourrier analysis of a sound sample, sound strenght, sound most active frequency, ... More... | |
Namespaces | |
| namespace | lampda |
| Program scope. | |
| namespace | lampda::component |
| Medium level logic, above BSP. | |
| namespace | lampda::component::microphone |
| Handle the microphone physical interface. | |
Functions | |
| bool | lampda::component::microphone::enable () |
| Start the microphone data analysis, if not already started. | |
| void | lampda::component::microphone::disable () |
| Disable the microphone data analysis, if its running. | |
| void | lampda::component::microphone::disable_after_non_use () |
| disable microphone if last used a target time ago | |
| void | lampda::component::microphone::set_sensitivity (const uint8_t sensitivity) |
| Set the microphone sensitivity, applied as a gain on the raw samples (FFT, sound level and auto gain input). The gain is logarithmic: 0 is minSensitivityGain, defaultSensitivity is no gain, maxSensitivity is maxSensitivityGain. Not saved: restored to defaultSensitivity on reboot. | |
| uint8_t | lampda::component::microphone::get_sensitivity () |
| Get the microphone sensitivity. | |
| float | lampda::component::microphone::sensitivity_to_gain (const uint8_t sensitivity) |
| Get the gain applied to the raw samples for a sensitivity. | |
| SoundStruct & | lampda::component::microphone::get_sound_characteristics () |
| Compute and process sound data. | |
Interface for the physical components of the microphone.