How to define the 'unit' for a type? #364
-
|
So If I use the auto-generated icd, there is a column in the html table, that says 'Unit'. How can I populate this field from the asn/acn definition? |
Beta Was this translation helpful? Give feedback.
Answered by
maxime-esa
Dec 16, 2025
Replies: 1 comment 1 reply
-
|
Hi @borro0 Like this: $ cat foo.asn
Units DEFINITIONS ::=
BEGIN
Speed ::= INTEGER (0..320) --{ km/h }--
Features ::= SEQUENCE {
mass INTEGER (100..2000) --{ kg }--,
velocity Speed -- actual speed
}
ENDYou will get this output:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
borro0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi @borro0
Like this:
You will get this output: