rvc 0.1.3
rvc: ^0.1.3 copied to clipboard
RV-C protocol layer on package:j1939. DGN definitions, command/status helpers, and RvcEcu with RV-C NAME defaults for recreation vehicles.
// Copyright 2026 Joel Winarske
// SPDX-License-Identifier: Apache-2.0
/// Minimal RV-C example -- query the DGN registry.
library;
import 'package:rvc/src/rvc_registry.dart';
void main() {
final registry = RvcRegistry.standard();
print('Loaded ${registry.dgnNumbers.length} DGNs');
for (final dgn in registry.allDgns) {
print(' DGN 0x${dgn.pgn.toRadixString(16)}: ${dgn.name} '
'(${dgn.fields.length} fields, ${dgn.dataLength} bytes)');
}
}