Skip to content

Commit

Permalink
feat(bacnet): add more info to the enums to access values from code
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Nov 9, 2022
1 parent 863eb4e commit 807419e
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 59 deletions.
14 changes: 0 additions & 14 deletions plc4go/protocols/bacnetip/readwrite/ParserHelper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 0 additions & 16 deletions plc4go/protocols/bacnetip/readwrite/XmlParserHelper.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions plc4go/protocols/bacnetip/readwrite/model/MaxApduLengthAccepted.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions plc4go/protocols/bacnetip/readwrite/model/MaxSegmentsAccepted.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Expand Up @@ -488,35 +488,35 @@
]

// Attention: No proprietary extension allowed
[enum uint 3 MaxSegmentsAccepted
['0x0' UNSPECIFIED ]
['0x1' NUM_SEGMENTS_02 ]
['0x2' NUM_SEGMENTS_04 ]
['0x3' NUM_SEGMENTS_08 ]
['0x4' NUM_SEGMENTS_16 ]
['0x5' NUM_SEGMENTS_32 ]
['0x6' NUM_SEGMENTS_64 ]
['0x7' MORE_THAN_64_SEGMENTS ]
]
// Attention: No proprietary extension allowed
[enum uint 4 MaxApduLengthAccepted
['0x0' MINIMUM_MESSAGE_SIZE ] // 50 octets
['0x1' NUM_OCTETS_128 ]
['0x2' NUM_OCTETS_206 ] // fits in a LonTalk frame
['0x3' NUM_OCTETS_480 ] // fits in an ARCNET frame
['0x4' NUM_OCTETS_1024 ]
['0x5' NUM_OCTETS_1476 ] // fits in an Ethernet frame
['0x6' RESERVED_BY_ASHRAE_01 ]
['0x7' RESERVED_BY_ASHRAE_02 ]
['0x8' RESERVED_BY_ASHRAE_03 ]
['0x9' RESERVED_BY_ASHRAE_04 ]
['0xA' RESERVED_BY_ASHRAE_05 ]
['0xB' RESERVED_BY_ASHRAE_06 ]
['0xC' RESERVED_BY_ASHRAE_07 ]
['0xD' RESERVED_BY_ASHRAE_08 ]
['0xE' RESERVED_BY_ASHRAE_09 ]
['0xF' RESERVED_BY_ASHRAE_10 ]
[enum uint 3 MaxSegmentsAccepted(uint 8 maxSegments)
['0x0' UNSPECIFIED ['255']]
['0x1' NUM_SEGMENTS_02 [ '2']]
['0x2' NUM_SEGMENTS_04 [ '4']]
['0x3' NUM_SEGMENTS_08 [ '8']]
['0x4' NUM_SEGMENTS_16 [ '16']]
['0x5' NUM_SEGMENTS_32 [ '32']]
['0x6' NUM_SEGMENTS_64 [ '64']]
['0x7' MORE_THAN_64_SEGMENTS ['255']]
]
// Attention: No proprietary extension allowed
[enum uint 4 MaxApduLengthAccepted(uint 16 numberOfOctets)
['0x0' MINIMUM_MESSAGE_SIZE [ '50']] // 50 octets
['0x1' NUM_OCTETS_128 [ '128']]
['0x2' NUM_OCTETS_206 [ '206']] // fits in a LonTalk frame
['0x3' NUM_OCTETS_480 [ '480']] // fits in an ARCNET frame
['0x4' NUM_OCTETS_1024 ['1024']]
['0x5' NUM_OCTETS_1476 ['1476']] // fits in an Ethernet frame
['0x6' RESERVED_BY_ASHRAE_01 [ '0']]
['0x7' RESERVED_BY_ASHRAE_02 [ '0']]
['0x8' RESERVED_BY_ASHRAE_03 [ '0']]
['0x9' RESERVED_BY_ASHRAE_04 [ '0']]
['0xA' RESERVED_BY_ASHRAE_05 [ '0']]
['0xB' RESERVED_BY_ASHRAE_06 [ '0']]
['0xC' RESERVED_BY_ASHRAE_07 [ '0']]
['0xD' RESERVED_BY_ASHRAE_08 [ '0']]
['0xE' RESERVED_BY_ASHRAE_09 [ '0']]
['0xF' RESERVED_BY_ASHRAE_10 [ '0']]
]

// Attention: No proprietary extension allowed
Expand Down

0 comments on commit 807419e

Please sign in to comment.