i2s_channel_init_pdm_tx_mode() function
Initialize I2S channel to PDM TX mode
Arguments
handle
I2S TX channel handler
pdm_tx_cfg
Configurations for PDM TX mode, including clock, slot and GPIO The clock configuration can be generated by the helper macro `I2S_PDM_TX_CLK_DEFAULT_CONFIG` The slot configuration can be generated by the helper macro `I2S_PDM_TX_SLOT_DEFAULT_CONFIG`
Return value
- ESP_OK Initialize successfully - ESP_ERR_NO_MEM No memory for storing the channel information - ESP_ERR_INVALID_ARG NULL pointer or invalid configuration - ESP_ERR_INVALID_STATE This channel is not registered
Notes
Only allowed to be called when the channel state is REGISTERED, (i.e., channel has been allocated, but not initialized) and the state will be updated to READY if initialization success, otherwise the state will return to REGISTERED.
i2s_channel_init_pdm_tx_mode() calls 14 functions:
![]()
i2s_channel_init_pdm_tx_mode()
i2s_channel_init_pdm_tx_mode() reads 23 variables and writes 4 variables:
![]()
i2s_channel_init_pdm_tx_mode()