Closed nattgris closed 4 years ago
Agreed, padding using the static data types should be possible.
This PR adds support for padding. The CiA spec mentions padding for RPDO:s only, this PR would make it possible add padding into TPDO:s as well. It also doesn't validate the bitlength against the datatypes, as it seems useful to be able to e.g. pad 7 bits using a BOOLEAN datatype.
It seems standard RPDO padding between mappings as per CiA 301 §7.4.7.1 is not implemented.
For static mappings I guess you could work around it by defining objects like
with
However to support dynamic mappings you'd basically have to do this for all integer types for all slaves, because you don't know what mapping the master may set up. Seems better if that was built into the stack.