Trait xhci::context::SlotHandler[][src]

pub trait SlotHandler: AsMut<[u32]> {
    fn set_context_entries(&mut self, e: u8) { ... }
fn set_root_hub_port_number(&mut self, n: u8) { ... } }

A trait to handle the Slot Context.

Examples

use xhci::context::{byte32::Device, DeviceHandler};

let mut device = Device::new();
let slot = device.slot_mut();
slot.set_context_entries(1);
slot.set_root_hub_port_number(port_number);

Provided methods

fn set_context_entries(&mut self, e: u8)[src]

Sets the value of the Context Entries field.

Examples

use xhci::context::{byte32::Device, DeviceHandler};

let mut device = Device::new();
let slot = device.slot_mut();

slot.set_context_entries(1);

fn set_root_hub_port_number(&mut self, n: u8)[src]

Sets the value of the Root Hub Port Number field.

Examples

use xhci::context::{byte32::Device, DeviceHandler};

let mut device = Device::new();
let slot = device.slot_mut();

slot.set_root_hub_port_number(port_number);
Loading content...

Implementors

Loading content...