createFileCapabilitiesMesg static method

Mesg createFileCapabilitiesMesg()

Implementation

static Mesg createFileCapabilitiesMesg() {
  int fieldIndex, subfieldIndex;
  Mesg newMesg = Mesg("FileCapabilities", MesgNum.fileCapabilities);
  fieldIndex = 0;
  newMesg.setField(
    Field(
      "MessageIndex",
      254,
      132,
      1.0,
      0.0,
      "",
      false,
      ProfileType.messageIndex,
    ),
  );
  fieldIndex++;
  newMesg.setField(
    Field("Type", 0, 0, 1.0, 0.0, "", false, ProfileType.file),
  );
  fieldIndex++;
  newMesg.setField(
    Field("Flags", 1, 10, 1.0, 0.0, "", false, ProfileType.fileFlags),
  );
  fieldIndex++;
  newMesg.setField(
    Field("Directory", 2, 7, 1.0, 0.0, "", false, ProfileType.string),
  );
  fieldIndex++;
  newMesg.setField(
    Field("MaxCount", 3, 132, 1.0, 0.0, "", false, ProfileType.uint16),
  );
  fieldIndex++;
  newMesg.setField(
    Field("MaxSize", 4, 134, 1.0, 0.0, "bytes", false, ProfileType.uint32),
  );
  fieldIndex++;

  return newMesg;
}