Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56790

Extend QCanBusFrame::toString() with format parameter

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.11
    • 5.8, 5.9
    • SerialBus: CAN Bus
    • None

      Idea: allow custom output instead of fixed format by adding a toString(const QString &format) overload.

      Format can contain the following format specifiers:

      i: CAN-ID (lowercase letters) without leading zeros
      I: CAN-ID (uppercase letters)
      CAN-ID in decimall?

      d: Data field in hex (lowercase letters)
      D: Data field in hex (uppercase letters)
      a: Data field in ASCII

      l: Decimal data length in bytes (without leading zero)
      ll: Decimal data length in bytes (two digits, leading zero)
      LL: Decimal data length in bytes (two digits, leading space)

      e: 0 for standard format, 1 for extended format
      E: space for standard format, 'E' for extended format
      r: 0 for standard frame, 1 for remote request frame
      R: space for standard frame, 'R' for remote request frame
      f: 0 for CAN 2.0b frame, 1 for CAN FD frame
      F: space for CAN 2.0b frame, 'F' for CAN FD frame
      FF: two spaces for CAN 2.0b frame, „FD“ for CAN FD frame

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            aha_1980 André Hartmann
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes