esp_idf_svc::hal::rmt

Type Alias TxRmtConfig

Source
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

Source

pub fn new() -> TransmitConfig

Source

pub fn aware_dfs(self, enable: bool) -> TransmitConfig

Source

pub fn mem_block_num(self, mem_block_num: u8) -> TransmitConfig

Source

pub fn clock_divider(self, divider: u8) -> TransmitConfig

Source

pub fn looping(self, looping: Loop) -> TransmitConfig

Source

pub fn carrier(self, carrier: Option<CarrierConfig>) -> TransmitConfig

Source

pub fn idle(self, idle: Option<PinState>) -> TransmitConfig

Source

pub fn intr_flags(self, flags: EnumSet<InterruptType>) -> TransmitConfig

Trait Implementations

Source§

impl Clone for TransmitConfig

Source§

fn clone(&self) -> TransmitConfig

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransmitConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for TransmitConfig

Source§

fn default() -> TransmitConfig

Defaults from <https://github.com/espressif/esp-idf/blob/master/components/driver/include/driver/rmt.h#L101>