pub type TxRmtConfig = TransmitConfig;
Aliased Type§
struct TxRmtConfig {
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>,
}
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>