Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpnurmi/pci_id.dart
The PCI ID Repository for Dart
https://github.com/jpnurmi/pci_id.dart
dart pci
Last synced: 24 days ago
JSON representation
The PCI ID Repository for Dart
- Host: GitHub
- URL: https://github.com/jpnurmi/pci_id.dart
- Owner: jpnurmi
- License: bsd-3-clause
- Created: 2021-04-14T18:38:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-15T16:50:19.000Z (over 3 years ago)
- Last Synced: 2023-08-20T22:54:19.986Z (about 1 year ago)
- Topics: dart, pci
- Language: Dart
- Homepage: https://pci-ids.ucw.cz/
- Size: 3.18 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# The PCI ID Repository for Dart
[![pub](https://img.shields.io/pub/v/pci_id.svg)](https://pub.dev/packages/pci_id)
[![license: BSD](https://img.shields.io/badge/license-BSD-yellow.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![style: lint](https://img.shields.io/badge/style-lint-4BC0F5.svg)](https://pub.dev/packages/lint)
![CI](https://github.com/jpnurmi/pci_id.dart/workflows/CI/badge.svg)
[![codecov](https://codecov.io/gh/jpnurmi/pci_id.dart/branch/main/graph/badge.svg)](https://codecov.io/gh/jpnurmi/pci_id.dart)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
```dart
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 controllerfinal subclass = PciId.lookupSubclass(0x00, deviceClassId: 0x03);
print(' Subclass 0x00: ${subclass!.name}'); // VGA compatible controller
}
```