> I've only been using communications marked in Mhz units, so I don't think I understand bps very well.
As Bob explained. If Mega bits/sec is more palatable, use these units ))
> I want to set different Ethernet speeds
Unfortunately we do not always get what we want. The "speed" is determined by the hardware (PHY) and network infrastructure (switches). STM32 usually works at 100 Mbps, as its MAC is limited to 100 Mbps. But with a gigabit PHY it can connect to gigabit networks.
A whole packet flies at fixed bit rate. It is like a bullet. But you can regulate number of shots per unit of lime.
> can I understand that you adjust bit/s by specifying the max speed of Ethernet and then deciding the size of the Ethernet packet and how many packets per second to send?
If this is what you're after, then yes, based on the nominal bitrate you decide the size of packets and how many packets per second to send. Note that the actual number of bytes moved per second differs from the nominal bitrate because of random delays between packets and other factors. TL;DR. So you need to measure the actual data rate and adapt dynamically. Good luck!