#include <Mic_Class.hpp>
|
void | setCallback (void *args, bool(*func)(void *, bool)) |
|
uint32_t | _calc_rec_rate (void) const |
|
esp_err_t | _setup_i2s (void) |
|
bool | _rec_raw (void *recdata, size_t array_len, bool flg_16bit, uint32_t sample_rate, bool stereo) |
|
Definition at line 85 of file Mic_Class.hpp.
◆ _calc_rec_rate()
uint32_t m5::Mic_Class::_calc_rec_rate |
( |
void |
| ) |
const |
|
protected |
◆ _rec_raw()
bool m5::Mic_Class::_rec_raw |
( |
void * |
recdata, |
|
|
size_t |
array_len, |
|
|
bool |
flg_16bit, |
|
|
uint32_t |
sample_rate, |
|
|
bool |
stereo |
|
) |
| |
|
protected |
◆ _setup_i2s()
esp_err_t m5::Mic_Class::_setup_i2s |
( |
void |
| ) |
|
|
protected |
◆ begin()
bool m5::Mic_Class::begin |
( |
void |
| ) |
|
◆ config() [1/2]
◆ config() [2/2]
◆ end()
void m5::Mic_Class::end |
( |
void |
| ) |
|
◆ isEnabled()
bool m5::Mic_Class::isEnabled |
( |
void |
| ) |
const |
|
inline |
◆ isRecording()
size_t m5::Mic_Class::isRecording |
( |
void |
| ) |
const |
|
inline |
now in recording or not.
- Returns
- 0=not recording / 1=recording (There's room in the queue) / 2=recording (There's no room in the queue.)
Definition at line 104 of file Mic_Class.hpp.
◆ isRunning()
bool m5::Mic_Class::isRunning |
( |
void |
| ) |
const |
|
inline |
◆ mic_task()
static void m5::Mic_Class::mic_task |
( |
void * |
args | ) |
|
|
staticprotected |
◆ record() [1/4]
bool m5::Mic_Class::record |
( |
int16_t * |
rec_data, |
|
|
size_t |
array_len |
|
) |
| |
|
inline |
record raw sound wave data.
- Parameters
-
rec_data | Recording destination array. |
array_len | Number of data array elements. |
Definition at line 141 of file Mic_Class.hpp.
◆ record() [2/4]
bool m5::Mic_Class::record |
( |
int16_t * |
rec_data, |
|
|
size_t |
array_len, |
|
|
uint32_t |
sample_rate, |
|
|
bool |
stereo = false |
|
) |
| |
|
inline |
record raw sound wave data.
- Parameters
-
rec_data | Recording destination array. |
array_len | Number of data array elements. |
sample_rate | the sampling rate (Hz) |
stereo | true=data is stereo / false=data is monaural. |
Definition at line 125 of file Mic_Class.hpp.
◆ record() [3/4]
bool m5::Mic_Class::record |
( |
uint8_t * |
rec_data, |
|
|
size_t |
array_len |
|
) |
| |
|
inline |
record raw sound wave data.
- Parameters
-
rec_data | Recording destination array. |
array_len | Number of data array elements. |
Definition at line 133 of file Mic_Class.hpp.
◆ record() [4/4]
bool m5::Mic_Class::record |
( |
uint8_t * |
rec_data, |
|
|
size_t |
array_len, |
|
|
uint32_t |
sample_rate, |
|
|
bool |
stereo = false |
|
) |
| |
|
inline |
record raw sound wave data.
- Parameters
-
rec_data | Recording destination array. |
array_len | Number of data array elements. |
sample_rate | the sampling rate (Hz) |
stereo | true=data is stereo / false=data is monaural. |
Definition at line 115 of file Mic_Class.hpp.
◆ setCallback()
void m5::Mic_Class::setCallback |
( |
void * |
args, |
|
|
bool(*)(void *, bool) |
func |
|
) |
| |
|
inlineprotected |
◆ setSampleRate()
void m5::Mic_Class::setSampleRate |
( |
uint32_t |
sample_rate | ) |
|
|
inline |
set recording sampling rate.
- Parameters
-
sample_rate | the sampling rate (Hz) |
Definition at line 108 of file Mic_Class.hpp.
◆ _cb_set_enabled
bool(* m5::Mic_Class::_cb_set_enabled) (void *args, bool enabled) = nullptr |
|
protected |
◆ _cb_set_enabled_args
void* m5::Mic_Class::_cb_set_enabled_args = nullptr |
|
protected |
◆ _cfg
◆ _is_recording
volatile bool m5::Mic_Class::_is_recording = false |
|
protected |
◆ _rec_flip
volatile bool m5::Mic_Class::_rec_flip = false |
|
protected |
◆ _rec_info
◆ _rec_sample_rate
uint32_t m5::Mic_Class::_rec_sample_rate = 0 |
|
protected |
◆ _task_handle
TaskHandle_t m5::Mic_Class::_task_handle = nullptr |
|
protected |
◆ _task_running
volatile bool m5::Mic_Class::_task_running = false |
|
protected |
◆ _task_semaphore
volatile SemaphoreHandle_t m5::Mic_Class::_task_semaphore = nullptr |
|
protected |
The documentation for this class was generated from the following file: