Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
/ aparato Public archive

A library for querying connected PCI devices and a pci.ids parser.

License

Notifications You must be signed in to change notification settings

grtcdr/aparato

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aparato

A library for querying connected PCI devices and a pci.ids parser.

version docs

Disclaimer

  • aparato is currently unmaintained.

Usage

Add the following to your project's Cargo.toml file:

aparato = "6.0.2" # Be sure to use the latest version

Examples

use aparato::{Device, PCIDevice};

fn main() {

    // Know the domain of the PCI device?
    // Instantiate a new PCIDevice so we can get to know it a bit.
    let device = PCIDevice::new("00:02.0");

    println!("Class Name: {}", device.class_name());       // e.g. Display Controller
    println!("Subclass Name: {}", device.subclass_name()); // e.g. VGA compatible controller
    println!("Vendor Name: {}", device.vendor_name());     // e.g. Intel Corporation
    println!("Device Name: {}", device.device_name());     // e.g. WhiskeyLake-U GT2 [UHD Graphics 620]
}

Contributing

Any form of contribution is welcome, whether it be unit tests, refactoring, or bug-fixing. It's recommended you report issues before beginning to work on them.

About

A library for querying connected PCI devices and a pci.ids parser.

Topics

Resources

License

Stars

Watchers

Forks

Languages