Struct esp_idf_hal::sys::i2s_pdm_tx_upsample_cfg_t
source · #[repr(C)]pub struct i2s_pdm_tx_upsample_cfg_t {
pub sample_rate: i32,
pub fp: i32,
pub fs: i32,
}
Expand description
@brief I2S PDM up-sample rate configuration @note TX PDM can only be set to the following two up-sampling rate configurations: 1: fp = 960, fs = sample_rate / 100, in this case, Fpdm = 12848000 2: fp = 960, fs = 480, in this case, Fpdm = 128Fpcm = 128sample_rate If the pdm receiver do not care the pdm serial clock, it’s recommended set Fpdm = 12848000. Otherwise, the second configuration should be applied.
Fields§
§sample_rate: i32
< I2S PDM sample rate
fp: i32
< I2S PDM TX up-sampling parameter. Normally it should be set to 960
fs: i32
< I2S PDM TX up-sampling parameter. When it is set to 480, the pdm clock frequency Fpdm = 128 * sample_rate, when it is set to sample_rate / 100, Fpdm will be fixed to 128*48000
Trait Implementations§
source§impl Clone for i2s_pdm_tx_upsample_cfg_t
impl Clone for i2s_pdm_tx_upsample_cfg_t
source§fn clone(&self) -> i2s_pdm_tx_upsample_cfg_t
fn clone(&self) -> i2s_pdm_tx_upsample_cfg_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for i2s_pdm_tx_upsample_cfg_t
impl Debug for i2s_pdm_tx_upsample_cfg_t
source§impl Default for i2s_pdm_tx_upsample_cfg_t
impl Default for i2s_pdm_tx_upsample_cfg_t
source§fn default() -> i2s_pdm_tx_upsample_cfg_t
fn default() -> i2s_pdm_tx_upsample_cfg_t
Returns the “default value” for a type. Read more
impl Copy for i2s_pdm_tx_upsample_cfg_t
Auto Trait Implementations§
impl Freeze for i2s_pdm_tx_upsample_cfg_t
impl RefUnwindSafe for i2s_pdm_tx_upsample_cfg_t
impl Send for i2s_pdm_tx_upsample_cfg_t
impl Sync for i2s_pdm_tx_upsample_cfg_t
impl Unpin for i2s_pdm_tx_upsample_cfg_t
impl UnwindSafe for i2s_pdm_tx_upsample_cfg_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)