pub struct SpeakerConfig {Show 15 fields
pub pin_data_out: i32,
pub pin_bck: i32,
pub pin_mck: i32,
pub pin_ws: i32,
pub sample_rate: u32,
pub stereo: bool,
pub buzzer: bool,
pub use_dac: bool,
pub dac_zero_level: u8,
pub magnification: u8,
pub dma_buf_len: usize,
pub dma_buf_count: usize,
pub task_priority: u8,
pub task_pinned_core: u8,
pub i2s_port: i32,
}Fields§
§pin_data_out: i32§pin_bck: i32§pin_mck: i32§pin_ws: i32§sample_rate: u32§stereo: bool§buzzer: bool§use_dac: bool§dac_zero_level: u8§magnification: u8§dma_buf_len: usize§dma_buf_count: usize§task_priority: u8§task_pinned_core: u8§i2s_port: i32Trait Implementations§
Source§impl Clone for SpeakerConfig
impl Clone for SpeakerConfig
Source§fn clone(&self) -> SpeakerConfig
fn clone(&self) -> SpeakerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpeakerConfig
impl Debug for SpeakerConfig
Source§impl Default for SpeakerConfig
impl Default for SpeakerConfig
Source§impl PartialEq for SpeakerConfig
impl PartialEq for SpeakerConfig
Source§fn eq(&self, other: &SpeakerConfig) -> bool
fn eq(&self, other: &SpeakerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SpeakerConfig
impl Eq for SpeakerConfig
impl StructuralPartialEq for SpeakerConfig
Auto Trait Implementations§
impl Freeze for SpeakerConfig
impl RefUnwindSafe for SpeakerConfig
impl Send for SpeakerConfig
impl Sync for SpeakerConfig
impl Unpin for SpeakerConfig
impl UnsafeUnpin for SpeakerConfig
impl UnwindSafe for SpeakerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more