Skip to content

A Rust library which is useful to handle xHCI

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

rust-osdev/xhci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f2254c8 · Sep 2, 2024
Dec 10, 2023
Sep 2, 2024
Jul 21, 2022
Apr 21, 2021
Dec 10, 2023
Jul 19, 2023
Jan 21, 2021
Jan 21, 2021
Feb 16, 2023
Apr 15, 2021

Repository files navigation

Workflow Status Crates.io Crates.io docs.rs

xhci

A library to handle xHCI.

This crate provides types of the xHCI structures, such as the Registers and Contexts. Users can use this library to implement a USB device deriver on your own OS.

This crate is #![no_std] compatible.

Examples

let mut r = unsafe { xhci::Registers::new(MMIO_BASE, mapper) };
let o = &mut r.operational;

o.usbcmd.update(|u| {
    u.set_run_stop();
});
while o.usbsts.read().hc_halted() {}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A Rust library which is useful to handle xHCI

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages