pub struct TxChannelConfig { /* private fields */ }
Available on crate feature
unstable
only.Expand description
Channel configuration for TX channels
Implementations§
Source§impl TxChannelConfig
impl TxChannelConfig
Sourcepub fn with_clk_divider(self, clk_divider: u8) -> Self
pub fn with_clk_divider(self, clk_divider: u8) -> Self
Assign the given value to the clk_divider
field.
Sourcepub fn clk_divider(&self) -> u8
pub fn clk_divider(&self) -> u8
Channel’s clock divider
Sourcepub fn with_idle_output_level(self, idle_output_level: Level) -> Self
pub fn with_idle_output_level(self, idle_output_level: Level) -> Self
Assign the given value to the idle_output_level
field.
Sourcepub fn idle_output_level(&self) -> Level
pub fn idle_output_level(&self) -> Level
Set the idle output level to low/high
Sourcepub fn with_idle_output(self, idle_output: bool) -> Self
pub fn with_idle_output(self, idle_output: bool) -> Self
Assign the given value to the idle_output
field.
Sourcepub fn idle_output(&self) -> bool
pub fn idle_output(&self) -> bool
Enable idle output
Sourcepub fn with_carrier_modulation(self, carrier_modulation: bool) -> Self
pub fn with_carrier_modulation(self, carrier_modulation: bool) -> Self
Assign the given value to the carrier_modulation
field.
Sourcepub fn carrier_modulation(&self) -> bool
pub fn carrier_modulation(&self) -> bool
Enable carrier modulation
Sourcepub fn with_carrier_high(self, carrier_high: u16) -> Self
pub fn with_carrier_high(self, carrier_high: u16) -> Self
Assign the given value to the carrier_high
field.
Sourcepub fn carrier_high(&self) -> u16
pub fn carrier_high(&self) -> u16
Carrier high phase in ticks
Sourcepub fn with_carrier_low(self, carrier_low: u16) -> Self
pub fn with_carrier_low(self, carrier_low: u16) -> Self
Assign the given value to the carrier_low
field.
Sourcepub fn carrier_low(&self) -> u16
pub fn carrier_low(&self) -> u16
Carrier low phase in ticks
Sourcepub fn with_carrier_level(self, carrier_level: Level) -> Self
pub fn with_carrier_level(self, carrier_level: Level) -> Self
Assign the given value to the carrier_level
field.
Sourcepub fn carrier_level(&self) -> Level
pub fn carrier_level(&self) -> Level
Level of the carrier
Trait Implementations§
Source§impl Clone for TxChannelConfig
impl Clone for TxChannelConfig
Source§fn clone(&self) -> TxChannelConfig
fn clone(&self) -> TxChannelConfig
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 TxChannelConfig
impl Debug for TxChannelConfig
Source§impl Default for TxChannelConfig
impl Default for TxChannelConfig
Source§impl Format for TxChannelConfig
impl Format for TxChannelConfig
impl Copy for TxChannelConfig
Auto Trait Implementations§
impl Freeze for TxChannelConfig
impl RefUnwindSafe for TxChannelConfig
impl Send for TxChannelConfig
impl Sync for TxChannelConfig
impl Unpin for TxChannelConfig
impl UnwindSafe for TxChannelConfig
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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)