Documentation for field-data and field-length keywords #336
-
|
I'm working on a generated ASN.1/ACN file which uses the field-data and field-length keyword in it's ACN definitions. I'm unable to find any documentation around these keywords. Can someone help with this please? Additionally, is there any document which covers the capabilities of ACN and the errors generated by asn1scc? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
There are no such keywords in ACN named "field-data" and "field-length". You can find the complete documentation for ACN here: https://gitlab.esa.int/taste/taste-setup/-/wikis/Technical_topic_ASN_1_An_introduction_to_ACN If you upload your grammar we can try to check what's wrong. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I see it's a quite advanced construct. To summarize, is was designed to provide the size of the variable-size array from an external source (computed by a function named Let me explain: The In the The
Then At runtime the encoder function will therefore encode the And the decoder function will call the mapping function to get a length, so that it will be able to decode |
Beta Was this translation helpful? Give feedback.
Ok, I see it's a quite advanced construct. To summarize, is was designed to provide the size of the variable-size array from an external source (computed by a function named
asw-mapper-20-3-parameter-value, that you provide in your C code).Let me explain:
The
ASN.1snippet means you have single field (field-data) accessible to the end user in the data structure.In the
ACNsnippet there is an added field namedfield-length, of typeASW-PARAMETER-VALUE-LENGTH.The
ACNparameters used for this field are the ones between brackets:size 0means that in practice the field will not use any bits in the final structure.encoding pos-intis the rule for the binary encoding. Since zero bits are us…