pci_id library
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.
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
}
Classes
- PciDevice
- Describes a PCI device and its subsystems.
- PciDeviceClass
- Describes a PCI device class and its subclasses.
- PciId
- 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.
- PciProgrammingInterface
- Describes a PCI programming interface.
- PciSubclass
- Describes a PCI subclass and its programming interfaces.
- PciSubsystem
- Describes a PCI subsystem.
- PciVendor
- Describes a PCI vendor and its devices.