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

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

Setup Stage TRB

Implementations

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

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

Creates a new Setup Stage TRB.

This method sets the value of the TRB Type and the Immediate Data field properly. All the other fields are set to 0.

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

Sets the value of the bmRequestType field.

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

Returns the value of the bmRequestType field.

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

Sets the value of the bRequest field.

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

Returns the value of the bRequest field.

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

Sets the value of the wValue field.

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

Returns the value of the wValue field.

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

Sets the value of the wLength field.

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

Returns the value of the wLength field.

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

Sets the value of the TRB Transfer Length field.

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

Returns the value of the TRB Transfer Length field.

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

Sets the value of the Transfer Type field.

#[must_use]pub fn transfer_type(&self) -> TransferType[src]

Returns the value of the Transfer Type field.

Panics

This method panics if the Transfer Type field contains 1 which is reserved.

Trait Implementations

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

impl Clone for SetupStage[src]

impl Copy for SetupStage[src]

impl Debug for SetupStage[src]

impl Default for SetupStage[src]

impl Eq for SetupStage[src]

impl From<SetupStage> for Allowed[src]

impl Hash for SetupStage[src]

impl Ord for SetupStage[src]

impl PartialEq<SetupStage> for SetupStage[src]

impl PartialOrd<SetupStage> for SetupStage[src]

impl StructuralEq for SetupStage[src]

impl StructuralPartialEq for SetupStage[src]

Auto Trait Implementations

impl Send for SetupStage

impl Sync for SetupStage

impl Unpin for SetupStage

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.