#[non_exhaustive]pub struct TxConfig { /* private fields */ }
Available on crate feature
unstable
only.Expand description
PARL_IO TX configuration
Implementations§
Source§impl TxConfig
impl TxConfig
Sourcepub fn with_frequency(self, frequency: Rate) -> Self
pub fn with_frequency(self, frequency: Rate) -> Self
Assign the given value to the frequency
field.
Sourcepub fn with_idle_value(self, idle_value: u16) -> Self
pub fn with_idle_value(self, idle_value: u16) -> Self
Assign the given value to the idle_value
field.
Sourcepub fn idle_value(&self) -> u16
pub fn idle_value(&self) -> u16
Configures the data value on TX bus when in idle state.
Sourcepub fn with_sample_edge(self, sample_edge: SampleEdge) -> Self
pub fn with_sample_edge(self, sample_edge: SampleEdge) -> Self
Assign the given value to the sample_edge
field.
Sourcepub fn sample_edge(&self) -> SampleEdge
pub fn sample_edge(&self) -> SampleEdge
Configures whether to invert the TX output clock.
Sourcepub fn with_bit_order(self, bit_order: BitPackOrder) -> Self
pub fn with_bit_order(self, bit_order: BitPackOrder) -> Self
Assign the given value to the bit_order
field.
Sourcepub fn bit_order(&self) -> BitPackOrder
pub fn bit_order(&self) -> BitPackOrder
Configures the unpacking order to unpack bits from 1 byte when data bus width is 4/2/1 bit.
Trait Implementations§
impl Copy for TxConfig
Auto Trait Implementations§
impl Freeze for TxConfig
impl RefUnwindSafe for TxConfig
impl Send for TxConfig
impl Sync for TxConfig
impl Unpin 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
)