#[repr(transparent)]pub struct Link(_);
Expand description
Link TRB
Implementations§
source§impl Link
impl Link
sourcepub fn set_ring_segment_pointer(&mut self, p: u64) -> &mut Self
pub fn set_ring_segment_pointer(&mut self, p: u64) -> &mut Self
Sets the value of the Ring Segment Pointer field.
Panics
This method panics if p
is not 16-byte aligned.
sourcepub fn ring_segment_pointer(&self) -> u64
pub fn ring_segment_pointer(&self) -> u64
Returns the value of the Ring Segment Pointer field.
sourcepub fn interrupter_target(self) -> u32
pub fn interrupter_target(self) -> u32
Returns the value of the Interrupter Target field.
sourcepub fn set_interrupter_target(&mut self, value: u32) -> &mut Self
pub fn set_interrupter_target(&mut self, value: u32) -> &mut Self
Sets the value of the Interrupter Target field.
sourcepub fn toggle_cycle(self) -> bool
pub fn toggle_cycle(self) -> bool
Returns the Toggle Cycle bit.
sourcepub fn set_toggle_cycle(&mut self) -> &mut Self
pub fn set_toggle_cycle(&mut self) -> &mut Self
Sets the Toggle Cycle bit.
sourcepub fn clear_toggle_cycle(&mut self) -> &mut Self
pub fn clear_toggle_cycle(&mut self) -> &mut Self
Clears the Toggle Cycle bit.
sourcepub fn set_chain_bit(&mut self) -> &mut Self
pub fn set_chain_bit(&mut self) -> &mut Self
Sets the Chain bit bit.
sourcepub fn clear_chain_bit(&mut self) -> &mut Self
pub fn clear_chain_bit(&mut self) -> &mut Self
Clears the Chain bit bit.
sourcepub fn interrupt_on_completion(self) -> bool
pub fn interrupt_on_completion(self) -> bool
Returns the Interrupt On Completion bit.
sourcepub fn set_interrupt_on_completion(&mut self) -> &mut Self
pub fn set_interrupt_on_completion(&mut self) -> &mut Self
Sets the Interrupt On Completion bit.
sourcepub fn clear_interrupt_on_completion(&mut self) -> &mut Self
pub fn clear_interrupt_on_completion(&mut self) -> &mut Self
Clears the Interrupt On Completion bit.
Trait Implementations§
source§impl Ord for Link
impl Ord for Link
source§impl PartialEq<Link> for Link
impl PartialEq<Link> for Link
source§impl PartialOrd<Link> for Link
impl PartialOrd<Link> for Link
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Link
impl Eq for Link
impl StructuralEq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more