ethercrab icon indicating copy to clipboard operation
ethercrab copied to clipboard

Add method to `SlaveGroup` to get all slave statuses at once

Open jamwaffles opened this issue 2 years ago • 0 comments

This requires internal support for sending multiple PDUs at a time (as many fit in an Ethernet packet) which is a useful feature to have for other purposes.

One option is to add SlaveState::Other(Flags) where Flags is a bitflags struct. This allows both easily checking if every slave in a group is in the same state, as well as collecting different states in some bit flags.

jamwaffles avatar Sep 06 '23 14:09 jamwaffles