To optimize and ease the use of the TRDP stack on separate communication processors (usually via DPRAM), a callback to update send data just before the data is pushed is needed.
The tlp_publish function should take two additional parameters (function pointer and refCon), which would be stored in PD_ELE_T and would be called each time just before the PD is sent. PD_ELE_T does not need to be enlarged.
The callback could be used to get new data from a co-processor interface...
Postponed for next major release.
Finally we came across some tool requirements which would need this feature, too!
But: Usage of this pre-sending callback should not delay sending of the telegram, as this might increase latency and jitter!