sharpbrick / powered-up

.NET implementation of the LEGO PoweredUp Protocol
MIT License
98 stars 19 forks source link

Improve Human Readable Port (Mode) Dump #113

Closed tthiery closed 3 years ago

tthiery commented 3 years ago

Target

  Port: 0x01 / 1
    - Port Information
      IOTypeId: Voltage / 0x0014 / 20
      Version: SW: 0.0.0.1, HW: 2.0.0.0
      Capability: Input, LogicalCombinable
      ModeCombinations: [0000000000000011]
    - Configuration
      UsedCombinationIndex: 0
      ConfiguredModeDataSetIndex: []
    - Mode 0: Name: TAG, Symbol: idx, Capability: Input
      - Port Mode Information
        DataSet: 2 x Int16, TotalFigures: 3, Decimals: 0
        Input Mapping: Discrete, Nullable
        Raw: Min: 00000 Max: 00000 
        Pct: Min: 00000 Max: 00000 (no-scale, no-translation)
        SI:  Min: 00000 Max: 00000 (no-scale, no-translation)
      - Configuration
        NotificationEnabled: False
        DeltaInterval: 0

Current

  Port: 1
    IOTypeId: 73
    HardwareRevision: 2.0.0.0
    SoftwareRevision: 0.0.0.1
    OutputCapability: False
    InputCapability: True
    LogicalCombinableCapability: True
    LogicalSynchronizableCapability: False
    ModeCombinations: [0000000000000011]
    UsedCombinationIndex: 0
    MultiUpdateEnabled: False
    ConfiguredModeDataSetIndex: []
    Mode: 0
      Name: TAG
      IsInput: True
      IsOutput: False
      RawMin: 0
      RawMax: 10
      PctMin: 0
      PctMax: 100
      SIMin: 0
      SIMax: 10
      Symbol: idx
      InputSupportsNull: True
      InputSupportFunctionalMapping20: False
      InputAbsolute: False
      InputRelative: False
      InputDiscrete: True
      OutputSupportsNull: False
      OutputSupportFunctionalMapping20: False
      OutputAbsolute: False
      OutputRelative: False
      OutputDiscrete: False
      NumberOfDatasets: 2
      DatasetType: Int16
      TotalFigures: 3
      Decimals: 0
      DeltaInterval: 0
      NotificationEnabled: False