ethercrab-rs / ethercrab

EtherCAT master written in pure Rust
252 stars 23 forks source link

Support multiple PDUs per Ethernet frame #185

Closed jamwaffles closed 7 months ago

jamwaffles commented 7 months ago

This PR lays the groundwork for sending multiple PDUs per Ethernet frame for efficiency and performance reasons.

The motivator for this PR is to send a DC sync frame alongside a group's PDI. This is currently done by sending two disparate Ethernet frames, which halves(!) throughput.

This PR still only sends one PDU per frame, but it adds a nice (I think?) API to be able to queue up multiple PDUs later down the road.