#[non_exhaustive]pub struct RmtConfig { /* private fields */ }Expand description
Configuration of Rmt: the settings that all channels share.
Implementations§
Source§impl RmtConfig
impl RmtConfig
Sourcepub fn with_clock_source(self, clock_source: ClockSource) -> Self
pub fn with_clock_source(self, clock_source: ClockSource) -> Self
Assign the given value to the clock_source field.
Sourcepub fn clock_source(&self) -> ClockSource
pub fn clock_source(&self) -> ClockSource
Source of the group clock.
Sourcepub fn with_frequency(self, frequency: Rate) -> Self
Available on crate feature unstable and non-rmt_has_per_channel_clock only.
pub fn with_frequency(self, frequency: Rate) -> Self
unstable and non-rmt_has_per_channel_clock only.Assign the given value to the frequency field.
Sourcepub fn with_frequency_none(self) -> Self
Available on crate feature unstable and non-rmt_has_per_channel_clock only.
pub fn with_frequency_none(self) -> Self
unstable and non-rmt_has_per_channel_clock only.Set the value of frequency to None.
Sourcepub fn frequency(&self) -> Option<Rate>
Available on crate feature unstable and non-rmt_has_per_channel_clock only.
pub fn frequency(&self) -> Option<Rate>
unstable and non-rmt_has_per_channel_clock only.Frequency of the group clock. None means the source frequency.
A value selects the integer divider (1 to 256) that gives the nearest clock period.
Rmt::frequency returns the actual frequency.
Trait Implementations§
impl Copy for RmtConfig
Available on crate feature
unstable only.impl Eq for RmtConfig
Available on crate feature
unstable only.impl StructuralPartialEq for RmtConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Forget for RmtConfig
impl Freeze for RmtConfig
impl Move for RmtConfig
impl RefUnwindSafe for RmtConfig
impl Send for RmtConfig
impl Sync for RmtConfig
impl Unpin for RmtConfig
impl UnsafeUnpin for RmtConfig
impl UnwindSafe for RmtConfig
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,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)