Struct xhci::ring::trb::command::SetTrDequeuePointer[][src]

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

Set TR Dequeue Pointer Command TRB

Implementations

impl SetTrDequeuePointer[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 SetTrDequeuePointer[src]

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

Creates a new Set TR Dequeue Pointer Command TRB.

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

impl SetTrDequeuePointer[src]

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

Sets the value of the Dequeue Cycle State field.

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

Returns the value of the Dequeue Cycle state field.

pub fn set_stream_context_type(&mut self, t: u8) -> &mut Self[src]

Sets the value of the Stream Context Type field.

#[must_use]pub fn stream_context_type(&self) -> u8[src]

Returns the value of the Stream Context Type field.

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

Sets the value of the New TR Dequeue Pointer field.

Panics

This method panics if p is not 16-byte aligned.

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

Returns the value of the New TR Dequeue Pointer field.

pub fn set_stream_id(&mut self, i: u16) -> &mut Self[src]

Sets the value of the Stream ID field.

#[must_use]pub fn stream_id(&self) -> u16[src]

Returns the value of the Stream ID field.

pub fn set_endpoint_id(&mut self, i: u8) -> &mut Self[src]

Sets the value of the Endpoint ID field.

#[must_use]pub fn endpoint_id(&self) -> u8[src]

Returns the value of the Endpoint ID field.

pub fn set_slot_id(&mut self, i: u8) -> &mut Self[src]

Sets the value of the Slot ID field.

#[must_use]pub fn slot_id(&self) -> u8[src]

Returns the value of the Slot ID field.

Trait Implementations

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

impl Clone for SetTrDequeuePointer[src]

impl Copy for SetTrDequeuePointer[src]

impl Debug for SetTrDequeuePointer[src]

impl Default for SetTrDequeuePointer[src]

impl Eq for SetTrDequeuePointer[src]

impl From<SetTrDequeuePointer> for Allowed[src]

impl Hash for SetTrDequeuePointer[src]

impl Ord for SetTrDequeuePointer[src]

impl PartialEq<SetTrDequeuePointer> for SetTrDequeuePointer[src]

impl PartialOrd<SetTrDequeuePointer> for SetTrDequeuePointer[src]

impl StructuralEq for SetTrDequeuePointer[src]

impl StructuralPartialEq for SetTrDequeuePointer[src]

Auto Trait Implementations

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.