pci_id 0.1.0+1 copy "pci_id: ^0.1.0+1" to clipboard
pci_id: ^0.1.0+1 copied to clipboard

A repository of all known ID's used in PCI devices: ID's of vendors, devices, subsystems and device classes.

The PCI ID Repository for Dart #

pub license: BSD style: lint CI codecov

A repository of all known ID's used in PCI devices: ID's of vendors, devices, subsystems and device classes. This package can be utilized to display human-readable names instead of cryptic numeric codes.

Usage #

import 'package:pci_id/pci_id.dart';

void main() {
  final vendor = PciId.lookupVendor(0x1ae0);
  print('Vendor 0x1ae0:     ${vendor!.name}'); // Google, Inc.

  final device = PciId.lookupDevice(0xabcd, vendorId: vendor.id);
  print('  Device 0xabcd:   ${device!.name}'); // ...Pixel Neural Core...

  final deviceClass = PciId.lookupDeviceClass(0x03);
  print('\nDevice class 0x03: ${deviceClass!.name}'); // Display controller

  final subclass = PciId.lookupSubclass(0x00, deviceClassId: 0x03);
  print('  Subclass 0x00:   ${subclass!.name}'); // VGA compatible controller
}
1
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A repository of all known ID's used in PCI devices: ID's of vendors, devices, subsystems and device classes.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

args, equatable, path, quiver

More

Packages that depend on pci_id