RP-01_Flutter/lib/CanLib/device_info.dart
2025-04-29 16:32:14 +08:00

21 lines
420 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'dart:ffi';
final class ToomossDeviceInfo extends Struct {
@Array<Uint8>(32)
external Array<Uint8> firmwareName;
@Array<Uint8>(32)
external Array<Uint8> buildDate;
@Int32()
external int hardwareVersion;//uint8或int报错需要加前一行@Int32()注释
@Int32()
external int firmwareVersion;
@Array<Int32>(3)
external Array<Int32> serialNumber;
@Int32()
external int functions;
}