Łukasz Dywicki created PLC4X-244:
------------------------------------

             Summary: Variable length padding fields
                 Key: PLC4X-244
                 URL: https://issues.apache.org/jira/browse/PLC4X-244
             Project: Apache PLC4X
          Issue Type: Improvement
          Components: Code-Generation
    Affects Versions: 0.8.0
            Reporter: Łukasz Dywicki


Support for padding fields available in 0.7 release is limited to appending of 
single values when given padding expression returns true. While it works for 
initial case needed by arrays items in S7 driver it does not satisfy more 
complicated scenario where amount of "fill" or "pad bytes" dependens on other 
field length.

To put more context on it - socketcan interface always returns and always 
expects length of entire frame to be aligned to 16 bytes. This case is 
satisfied only if frame payload takes all available 8 bytes. Current padding 
field handling could work only for 7 and 8 bytes long payloads.

Proposal which comes out of brief discussion with [~cdutz] is attempt to change 
padding expression to integer so we know how many times padding field must be 
repeated.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to