Struct xhci::ring::trb::transfer::DataStage[][src]

#[repr(transparent)]pub struct DataStage(_);

Data Stage TRB

Implementations

impl DataStage[src]

#[must_use]pub fn into_raw(self) -> [u32; 4][src]

Returns the wrapped array.

#[must_use]pub fn cycle_bit(&self) -> bool[src]

Returns the value of the Cycle Bit.

pub fn set_cycle_bit(&mut self, b: bool) -> &mut Self[src]

Sets the value of the Cycle Bit.

impl DataStage[src]

#[must_use]pub fn new() -> Self[src]

Creates a new Data Stage TRB.

This method sets the sets the value of the TRB Type field properly. All the other fieldds are set to 0.

impl DataStage[src]

pub fn set_interrupt_on_completion(&mut self, ioc: bool) -> &mut Self[src]

Sets the value of the Interrupt On Completion field.

#[must_use]pub fn interrupt_on_completion(&self) -> bool[src]

Returns the value of the Interrupt On Completion field.

impl DataStage[src]

pub fn set_data_buffer_pointer(&mut self, p: u64) -> &mut Self[src]

Sets the value of the Data Buffer Pointer field.

#[must_use]pub fn data_buffer_pointer(&self) -> u64[src]

Returns the value of the Data Buffer Pointer field.

pub fn set_trb_transfer_length(&mut self, l: u32) -> &mut Self[src]

Sets the value of the TRB Tranfer Length field.

#[must_use]pub fn trb_transfer_length(&self) -> u32[src]

Returns the value of the TRB Transfer Length field.

pub fn set_direction(&mut self, d: Direction) -> &mut Self[src]

Sets the value of the Direction field.

#[must_use]pub fn direction(&self) -> Direction[src]

Returns the value of the Direction field.

Trait Implementations

impl AsRef<[u32]> for DataStage[src]

impl Clone for DataStage[src]

impl Copy for DataStage[src]

impl Debug for DataStage[src]

impl Default for DataStage[src]

impl Eq for DataStage[src]

impl From<DataStage> for Allowed[src]

impl Hash for DataStage[src]

impl Ord for DataStage[src]

impl PartialEq<DataStage> for DataStage[src]

impl PartialOrd<DataStage> for DataStage[src]

impl StructuralEq for DataStage[src]

impl StructuralPartialEq for DataStage[src]

Auto Trait Implementations

impl Send for DataStage

impl Sync for DataStage

impl Unpin for DataStage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.