#[non_exhaustive]pub struct RxConfig { /* private fields */ }Expand description
Configuration of a receive channel.
Implementations§
Source§impl RxConfig
impl RxConfig
Sourcepub fn with_tick_rate(self, tick_rate: Rate) -> Self
pub fn with_tick_rate(self, tick_rate: Rate) -> Self
Assign the given value to the tick_rate field.
Sourcepub fn with_tick_rate_none(self) -> Self
pub fn with_tick_rate_none(self) -> Self
Set the value of tick_rate to None.
Sourcepub fn tick_rate(&self) -> Option<Rate>
pub fn tick_rate(&self) -> Option<Rate>
Tick rate of the channel. None means the group clock. See TxConfig::tick_rate.
Sourcepub fn with_min_pulse_ns(self, min_pulse_ns: u32) -> Self
pub fn with_min_pulse_ns(self, min_pulse_ns: u32) -> Self
Assign the given value to the min_pulse_ns field.
Sourcepub fn with_min_pulse_ns_none(self) -> Self
pub fn with_min_pulse_ns_none(self) -> Self
Set the value of min_pulse_ns to None.
Sourcepub fn min_pulse_ns(&self) -> Option<u32>
pub fn min_pulse_ns(&self) -> Option<u32>
Pulses shorter than this are noise, in nanoseconds. None turns the filter off.
The filter counts group clock cycles and is at most 255 of them.
Sourcepub fn with_idle_ns(self, idle_ns: u32) -> Self
pub fn with_idle_ns(self, idle_ns: u32) -> Self
Assign the given value to the idle_ns field.
Sourcepub fn idle_ns(&self) -> u32
pub fn idle_ns(&self) -> u32
A level that lasts longer than this ends the reception, in nanoseconds.
At most MAX_RX_IDLE_THRESHOLD ticks.
Sourcepub fn with_carrier(self, carrier: CarrierConfig) -> Self
Available on rmt_has_rx_demodulation and crate feature unstable only.
pub fn with_carrier(self, carrier: CarrierConfig) -> Self
rmt_has_rx_demodulation and crate feature unstable only.Assign the given value to the carrier field.
Sourcepub fn with_carrier_none(self) -> Self
Available on rmt_has_rx_demodulation and crate feature unstable only.
pub fn with_carrier_none(self) -> Self
rmt_has_rx_demodulation and crate feature unstable only.Set the value of carrier to None.
Sourcepub fn carrier(&self) -> Option<CarrierConfig>
Available on rmt_has_rx_demodulation and crate feature unstable only.
pub fn carrier(&self) -> Option<CarrierConfig>
rmt_has_rx_demodulation and crate feature unstable only.Carrier to remove from the input. None means no demodulation.
Trait Implementations§
impl Copy for RxConfig
Available on crate feature
unstable only.impl Eq for RxConfig
Available on crate feature
unstable only.impl StructuralPartialEq for RxConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for RxConfig
impl RefUnwindSafe for RxConfig
impl Send for RxConfig
impl Sync for RxConfig
impl Unpin for RxConfig
impl UnsafeUnpin for RxConfig
impl UnwindSafe for RxConfig
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)