ESP-IDF
i2s_hal_slot_config_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
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_hal_slot_config_t
i2s_hal_slot_config_t struct
General slot configuration information
Syntax
Show:
Summary
Declaration
from
i2s_hal.h:33
typedef
struct
{
i2s_data_bit_width_t
data_bit_width
;
i2s_slot_bit_width_t
slot_bit_width
;
i2s_slot_mode_t
slot_mode
;
union
{
struct
{
i2s_std_slot_mask_t
slot_mask
;
uint32_t
ws_width
;
bool
ws_pol
;
bool
bit_shift
;
#if
SOC_I2S_HW_VERSION_1
bool
msb_right
;
#else
bool
left_align
;
bool
big_endian
;
bool
bit_order_lsb
;
#endif
}
std
;
#if
SOC_I2S_SUPPORTS_TDM
struct
{
i2s_tdm_slot_mask_t
slot_mask
;
uint32_t
ws_width
;
bool
ws_pol
;
bool
bit_shift
;
bool
left_align
;
bool
big_endian
;
bool
bit_order_lsb
;
bool
skip_mask
;
uint32_t
total_slot
;
}
tdm
;
#endif
#if
SOC_I2S_SUPPORTS_PDM_TX
struct
{
#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
;
uint32_t
hp_cut_off_freq_hzx10
;
uint32_t
sd_dither
;
uint32_t
sd_dither2
;
#endif
}
pdm_tx
;
#endif
#if
SOC_I2S_SUPPORTS_PDM_RX
struct
{
i2s_pdm_slot_mask_t
slot_mask
;
#if
SOC_I2S_SUPPORTS_PDM_RX_HP_FILTER
bool
hp_en
;
uint32_t
hp_cut_off_freq_hzx10
;
uint32_t
amplify_num
;
#endif
}
pdm_rx
;
#endif
}
;
}
i2s_hal_slot_config_t
;
Fields
Field
Declared as
Description
i2s_hal_slot_config_t::data_bit_width
i2s_data_bit_width_t
I2S sample data bit width (valid data bits per sample).
i2s_hal_slot_config_t::slot_bit_width
i2s_slot_bit_width_t
I2S slot bit width (total bits per slot).
i2s_hal_slot_config_t::slot_mode
i2s_slot_mode_t
Set mono or stereo mode with I2S_SLOT_MODE_MONO or I2S_SLOT_MODE_STEREO.
Related Functions
Found 4 other functions taking a
i2s_hal_slot_config_t
argument:
Function
Description
i2s_hal_std_set_tx_slot()
Set tx slot to standard mode
i2s_hal_std_set_rx_slot()
Set rx slot to standard mode
i2s_hal_pdm_set_tx_slot()
Set tx slot to pdm mode
i2s_hal_pdm_set_rx_slot()
Set rx slot to pdm mode
Examples
References
from
examples
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
Lifecycle
from
examples
All items filtered out
All items filtered out