ESP-IDF
i2s_hal_slot_config_t
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (2/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_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
Code
Location
Scope
Referrer
typedef
struct
{
i2s_hal.h:33
}
i2s_hal_slot_config_t
;
i2s_hal.h:105
void
i2s_hal_std_set_tx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
i2s_hal.c:142
i2s_hal_std_set_tx_slot()
i2s_hal_std_set_tx_slot()::slot_cfg
void
i2s_hal_std_set_rx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
i2s_hal.c:173
i2s_hal_std_set_rx_slot()
i2s_hal_std_set_rx_slot()::slot_cfg
void
i2s_hal_pdm_set_tx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
i2s_hal.c:213
i2s_hal_pdm_set_tx_slot()
i2s_hal_pdm_set_tx_slot()::slot_cfg
void
i2s_hal_pdm_set_rx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
i2s_hal.c:265
i2s_hal_pdm_set_rx_slot()
i2s_hal_pdm_set_rx_slot()::slot_cfg
}
i2s_hal_slot_config_t
;
i2s_hal.h:105
i2s_hal_slot_config_t
void
i2s_hal_std_set_tx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
;
i2s_hal.h:192
i2s_hal_std_set_tx_slot()
i2s_hal_std_set_tx_slot()::slot_cfg
void
i2s_hal_std_set_rx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
;
i2s_hal.h:201
i2s_hal_std_set_rx_slot()
i2s_hal_std_set_rx_slot()::slot_cfg
void
i2s_hal_pdm_set_tx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
;
i2s_hal.h:230
i2s_hal_pdm_set_tx_slot()
i2s_hal_pdm_set_tx_slot()::slot_cfg
void
i2s_hal_pdm_set_rx_slot
(
i2s_hal_context_t
*
hal
,
bool
is_slave
,
const
i2s_hal_slot_config_t
*
slot_cfg
)
;
i2s_hal.h:248
i2s_hal_pdm_set_rx_slot()
i2s_hal_pdm_set_rx_slot()::slot_cfg
i2s_hal_slot_config_t
slot_cfg
;
i2s_legacy.c:165
i2s_obj_t
i2s_obj_t::slot_cfg
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
i2s_num
]
->
slot_cfg
;
i2s_legacy.c:521
i2s_get_buf_size()
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
i2s_num
]
->
slot_cfg
;
i2s_legacy.c:747
i2s_calculate_adc_dac_clock()
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
i2s_num
]
->
slot_cfg
;
i2s_legacy.c:829
i2s_calculate_common_clock()
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
0
]
->
slot_cfg
;
i2s_legacy.c:896
i2s_dac_set_slot_legacy()
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
0
]
->
slot_cfg
;
i2s_legacy.c:937
i2s_adc_set_slot_legacy()
i2s_hal_std_set_tx_slot
(
&
(
p_i2s
[
i2s_num
]
->
hal
)
,
is_tx_slave
,
(
i2s_hal_slot_config_t
*
)
(
&
p_i2s
[
i2s_num
]
->
slot_cfg
)
)
;
i2s_legacy.c:1050
i2s_set_slot_legacy()
i2s_hal_std_set_rx_slot
(
&
(
p_i2s
[
i2s_num
]
->
hal
)
,
is_rx_slave
,
(
i2s_hal_slot_config_t
*
)
(
&
p_i2s
[
i2s_num
]
->
slot_cfg
)
)
;
i2s_legacy.c:1053
i2s_set_slot_legacy()
i2s_hal_pdm_set_tx_slot
(
&
(
p_i2s
[
i2s_num
]
->
hal
)
,
is_tx_slave
,
(
i2s_hal_slot_config_t
*
)
(
&
p_i2s
[
i2s_num
]
->
slot_cfg
)
)
;
i2s_legacy.c:1060
i2s_set_slot_legacy()
i2s_hal_pdm_set_rx_slot
(
&
(
p_i2s
[
i2s_num
]
->
hal
)
,
is_rx_slave
,
(
i2s_hal_slot_config_t
*
)
(
&
p_i2s
[
i2s_num
]
->
slot_cfg
)
)
;
i2s_legacy.c:1065
i2s_set_slot_legacy()
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
i2s_num
]
->
slot_cfg
;
i2s_legacy.c:1131
i2s_set_clk()
i2s_hal_slot_config_t
*
slot_cfg
=
&
p_i2s
[
i2s_num
]
->
slot_cfg
;
i2s_legacy.c:1209
i2s_set_sample_rates()
i2s_hal_slot_config_t
*
slot_hal_cfg
=
(
i2s_hal_slot_config_t
*
)
(
&
(
pdm_tx_cfg
->
slot_cfg
)
)
;
i2s_pdm.c:116
i2s_pdm_tx_set_slot()
i2s_hal_slot_config_t
*
slot_hal_cfg
=
(
i2s_hal_slot_config_t
*
)
(
&
(
pdm_rx_cfg
->
slot_cfg
)
)
;
i2s_pdm.c:404
i2s_pdm_rx_set_slot()
i2s_hal_std_set_tx_slot
(
&
(
handle
->
controller
->
hal
)
,
is_slave
,
(
i2s_hal_slot_config_t
*
)
slot_cfg
)
;
i2s_std.c:130
i2s_std_set_slot()
i2s_hal_std_set_rx_slot
(
&
(
handle
->
controller
->
hal
)
,
is_slave
,
(
i2s_hal_slot_config_t
*
)
slot_cfg
)
;
i2s_std.c:132
i2s_std_set_slot()
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_hal_std_set_tx_slot()::slot_cfg
i2s_hal_std_set_tx_slot()
i2s_hal.h:192
i2s_hal_std_set_rx_slot()::slot_cfg
i2s_hal_std_set_rx_slot()
i2s_hal.h:201
i2s_hal_pdm_set_tx_slot()::slot_cfg
i2s_hal_pdm_set_tx_slot()
i2s_hal.h:230
i2s_hal_pdm_set_rx_slot()::slot_cfg
i2s_hal_pdm_set_rx_slot()
i2s_hal.h:248
i2s_obj_t::slot_cfg
i2s_obj_t
i2s_legacy.c:165
i2s_hal_std_set_tx_slot()::slot_cfg
i2s_hal_std_set_tx_slot()
i2s_hal.c:142
i2s_hal_std_set_rx_slot()::slot_cfg
i2s_hal_std_set_rx_slot()
i2s_hal.c:173
i2s_hal_pdm_set_tx_slot()::slot_cfg
i2s_hal_pdm_set_tx_slot()
i2s_hal.c:213
i2s_hal_pdm_set_rx_slot()::slot_cfg
i2s_hal_pdm_set_rx_slot()
i2s_hal.c:265
Lifecycle
from
examples
All items filtered out
All items filtered out