Struct esp_idf_sys::i2s_pdm_tx_upsample_cfg_t
source · [−]#[repr(C)]pub struct i2s_pdm_tx_upsample_cfg_t {
pub sample_rate: c_int,
pub fp: c_int,
pub fs: c_int,
}
Expand description
@brief I2S PDM up-sample rate configuration @note TX PDM can only be set to the following two upsampling 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: c_int
< I2S PDM sample rate
fp: c_int
< I2S PDM TX upsampling paramater. Normally it should be set to 960
fs: c_int
< I2S PDM TX upsampling paramater. 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
sourceimpl Clone for i2s_pdm_tx_upsample_cfg_t
impl Clone for i2s_pdm_tx_upsample_cfg_t
sourcefn 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.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for i2s_pdm_tx_upsample_cfg_t
impl Debug for i2s_pdm_tx_upsample_cfg_t
sourceimpl Default for i2s_pdm_tx_upsample_cfg_t
impl Default for i2s_pdm_tx_upsample_cfg_t
sourcefn 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 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> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more