ESP-IDF
i2s_pdm_tx_slot_config_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (3/5)...
Files
loading (4/5)...
Summary
Syntax
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
i2s_pdm_tx_slot_config_t
i2s_pdm_tx_slot_config_t struct
I2S slot configuration for PDM TX mode
Syntax
Show:
Summary
Declaration
from
i2s_pdm.h:314
typedef
struct
{
i2s_data_bit_width_t
data_bit_width
;
i2s_slot_bit_width_t
slot_bit_width
;
i2s_slot_mode_t
slot_mode
;
#if
SOC_I2S_HW_VERSION_1
i2s_pdm_slot_mask_t
slot_mask
;
#endif
uint32_t
sd_prescale
;
i2s_pdm_sig_scale_t
sd_scale
;
i2s_pdm_sig_scale_t
hp_scale
;
i2s_pdm_sig_scale_t
lp_scale
;
i2s_pdm_sig_scale_t
sinc_scale
;
#if
SOC_I2S_HW_VERSION_2
i2s_pdm_tx_line_mode_t
line_mode
;
bool
hp_en
;
float
hp_cut_off_freq_hz
;
uint32_t
sd_dither
;
uint32_t
sd_dither2
;
#endif
}
i2s_pdm_tx_slot_config_t
;
Fields
Field
Declared as
Description
i2s_pdm_tx_slot_config_t::data_bit_width
i2s_data_bit_width_t
I2S sample data bit width (valid data bits per sample), only support 16 bits for PDM mode.
i2s_pdm_tx_slot_config_t::slot_bit_width
i2s_slot_bit_width_t
I2S slot bit width (total bits per slot), only support 16 bits for PDM mode.
i2s_pdm_tx_slot_config_t::slot_mode
i2s_slot_mode_t
Set mono or stereo mode with I2S_SLOT_MODE_MONO or I2S_SLOT_MODE_STEREO For PDM TX mode, mono means the data buffer only contains one slot data, Stereo means the data buffer contains two slots data.
i2s_pdm_tx_slot_config_t::slot_mask
i2s_pdm_slot_mask_t
Slot mask to choose left or right slot.
i2s_pdm_tx_slot_config_t::sd_prescale
uint32_t
Sigma-delta filter prescale.
i2s_pdm_tx_slot_config_t::sd_scale
i2s_pdm_sig_scale_t
Sigma-delta filter scaling value.
i2s_pdm_tx_slot_config_t::hp_scale
i2s_pdm_sig_scale_t
High pass filter scaling value.
i2s_pdm_tx_slot_config_t::lp_scale
i2s_pdm_sig_scale_t
Low pass filter scaling value.
i2s_pdm_tx_slot_config_t::sinc_scale
i2s_pdm_sig_scale_t
Sinc filter scaling value.
Related Functions
Found 2 other functions taking a
i2s_pdm_tx_slot_config_t
argument:
Function
Description
i2s_pdm_tx_set_slot()
i2s_channel_reconfig_pdm_tx_slot()
Reconfigure the I2S slot for PDM TX mode
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
{
i2s_pdm.h:314
}
i2s_pdm_tx_slot_config_t
;
i2s_pdm.h:338
static
esp_err_t
i2s_pdm_tx_set_slot
(
i2s_chan_handle_t
handle
,
const
i2s_pdm_tx_slot_config_t
*
slot_cfg
)
i2s_pdm.c:89
i2s_pdm_tx_set_slot()
i2s_pdm_tx_set_slot()::slot_cfg
memcpy
(
&
(
pdm_tx_cfg
->
slot_cfg
)
,
slot_cfg
,
sizeof
(
i2s_pdm_tx_slot_config_t
)
)
;
i2s_pdm.c:108
i2s_pdm_tx_set_slot()
esp_err_t
i2s_channel_reconfig_pdm_tx_slot
(
i2s_chan_handle_t
handle
,
const
i2s_pdm_tx_slot_config_t
*
slot_cfg
)
i2s_pdm.c:269
i2s_channel_reconfig_pdm_tx_slot()
i2s_channel_reconfig_pdm_tx_slot()::slot_cfg
}
i2s_pdm_tx_slot_config_t
;
i2s_pdm.h:338
i2s_pdm_tx_slot_config_t
i2s_pdm_tx_slot_config_t
slot_cfg
;
/*!< PDM TX slot configurations, can be generated by macro I2S_PDM_TX_SLOT_DEFAULT_CONFIG */
i2s_pdm.h:376
i2s_pdm_tx_config_t
i2s_pdm_tx_config_t::slot_cfg
esp_err_t
i2s_channel_reconfig_pdm_tx_slot
(
i2s_chan_handle_t
handle
,
const
i2s_pdm_tx_slot_config_t
*
slot_cfg
)
;
i2s_pdm.h:427
i2s_channel_reconfig_pdm_tx_slot()
i2s_channel_reconfig_pdm_tx_slot()::slot_cfg
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Instance
Scope
Location
Project
i2s_pdm_tx_config_t::slot_cfg
i2s_pdm_tx_config_t
i2s_pdm.h:376
i2s_channel_reconfig_pdm_tx_slot()::slot_cfg
i2s_channel_reconfig_pdm_tx_slot()
i2s_pdm.h:427
i2s_pdm_tx_set_slot()::slot_cfg
i2s_pdm_tx_set_slot()
i2s_pdm.c:89
i2s_channel_reconfig_pdm_tx_slot()::slot_cfg
i2s_channel_reconfig_pdm_tx_slot()
i2s_pdm.c:269
Lifecycle
from
examples
All items filtered out
All items filtered out