Struct esp_idf_svc::hal::rmt::config::TransmitConfig
source · pub struct TransmitConfig {
pub clock_divider: u8,
pub mem_block_num: u8,
pub carrier: Option<CarrierConfig>,
pub looping: Loop,
pub idle: Option<PinState>,
pub aware_dfs: bool,
pub intr_flags: EnumSet<InterruptType>,
}
Expand description
Used when creating a [Transmit
][crate::rmt::Transmit] instance.
Fields§
§clock_divider: u8
§mem_block_num: u8
§carrier: Option<CarrierConfig>
§looping: Loop
§idle: Option<PinState>
Enable and set the signal level on the output if idle.
aware_dfs: bool
Channel can work during APB clock scaling.
When set, RMT channel will take REF_TICK or XTAL as source clock. The benefit is, RMT channel can continue work even when APB clock is changing.
intr_flags: EnumSet<InterruptType>
Implementations§
source§impl TransmitConfig
impl TransmitConfig
pub fn new() -> TransmitConfig
pub fn aware_dfs(self, enable: bool) -> TransmitConfig
pub fn mem_block_num(self, mem_block_num: u8) -> TransmitConfig
pub fn clock_divider(self, divider: u8) -> TransmitConfig
pub fn looping(self, looping: Loop) -> TransmitConfig
pub fn carrier(self, carrier: Option<CarrierConfig>) -> TransmitConfig
pub fn idle(self, idle: Option<PinState>) -> TransmitConfig
pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> TransmitConfig
Trait Implementations§
source§impl Clone for TransmitConfig
impl Clone for TransmitConfig
source§fn clone(&self) -> TransmitConfig
fn clone(&self) -> TransmitConfig
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 TransmitConfig
impl Debug for TransmitConfig
source§impl Default for TransmitConfig
impl Default for TransmitConfig
source§fn default() -> TransmitConfig
fn default() -> TransmitConfig
Defaults from <https://github.com/espressif/esp-idf/blob/master/components/driver/include/driver/rmt.h#L101>
Auto Trait Implementations§
impl Freeze for TransmitConfig
impl RefUnwindSafe for TransmitConfig
impl Send for TransmitConfig
impl Sync for TransmitConfig
impl Unpin for TransmitConfig
impl UnwindSafe for TransmitConfig
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
)