#[non_exhaustive]pub struct TxConfig { /* private fields */ }Expand description
Configuration of a transmit channel.
Implementations§
Source§impl TxConfig
impl TxConfig
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.
The driver uses the nearest tick period that it can reach. The actual period differs
from the requested one by at most r / (2 * g) of it, with r the requested rate and
g the group clock. It is exact when g / r is an integer.
TxChannel::tick_rate returns the actual rate.
Sourcepub fn with_idle_level(self, idle_level: Level) -> Self
pub fn with_idle_level(self, idle_level: Level) -> Self
Assign the given value to the idle_level field.
Sourcepub fn idle_level(&self) -> Level
pub fn idle_level(&self) -> Level
Output level when the channel does not transmit.
Sourcepub fn with_carrier(self, carrier: CarrierConfig) -> Self
pub fn with_carrier(self, carrier: CarrierConfig) -> Self
Assign the given value to the carrier field.
Sourcepub fn with_carrier_none(self) -> Self
pub fn with_carrier_none(self) -> Self
Set the value of carrier to None.
Sourcepub fn carrier(&self) -> Option<CarrierConfig>
pub fn carrier(&self) -> Option<CarrierConfig>
Carrier that modulates the output. None means no carrier.
Trait Implementations§
impl Copy for TxConfig
Available on crate feature
unstable only.impl Eq for TxConfig
Available on crate feature
unstable only.impl StructuralPartialEq for TxConfig
Available on crate feature
unstable only.Auto Trait Implementations§
impl Freeze for TxConfig
impl RefUnwindSafe for TxConfig
impl Send for TxConfig
impl Sync for TxConfig
impl Unpin for TxConfig
impl UnsafeUnpin for TxConfig
impl UnwindSafe for TxConfig
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)