getSystemInfo method

Future<Iso15693SystemInfo> getSystemInfo({
  1. required Set<Iso15693RequestFlag> requestFlags,
})

Reads the tag's own description: block size, block count, AFI and DSFID.

Implementation

Future<Iso15693SystemInfo> getSystemInfo({required Set<Iso15693RequestFlag> requestFlags}) async {
  final info = await iosApi.iso15693GetSystemInfo(_handle, _flags(requestFlags));
  return Iso15693SystemInfo(
    applicationFamilyIdentifier: info.applicationFamilyIdentifier,
    blockSize: info.blockSize,
    dataStorageFormatIdentifier: info.dataStorageFormatIdentifier,
    icReference: info.icReference,
    totalBlocks: info.totalBlocks,
  );
}