On PDI disable/enable, add polling readback that
it is set/cleared. Set 1 is delayed
until the end of a frame which is currently
processed, ET1100 datasheet.
This aligns the code base with SCC behavior.
When starting mailbox service, write the value of
ECAT RepeatRequest to PDI RepeatAck. Otherwise
it is risk of a race condition when running
CTT and the repeat ack would hold the value
of previous repeat ack test.
The race condition occurs on slow targets
that doesn't handle the repeat request
fast enough. The resulting mailbox read
will come before the mailbox is emptied
on the SM changed event.
fixes
Enable SM3 interrupt if the slave only got
inputs.
On PREOP_TO_SAFEOP do an intial write to SM3,
otherwise the SM3 will never occur since there
is no data present to read.
Re-add always verify SM length
Add validation of SM disabled, don't allow master
to activate or set a length if disabled.
Add validation of SM enabled, don't allow master
to set a length and de-activate.
Seperate validation of SM configuration that
depend on size of tx/rx pdo.
Add disable of SM3 when input only slave
reports error in OP.
Don't enable SM3 on start input if no inputs
Don't enable SM2 on start outputs if no
outputs
fix#112fix#113
The init of COE SDO defaults shall not be part of the
state machine according to ETG. Move the init to
SOES stack init where it will only be run once.
Small editorial changes on function and paranthesis
to unify in that function.