Hi,
In general base on the MAC tou have you advertise using the
MDIO bus your capability and the augo-neg will try to achive the best between
what you can do and what the other side can do.
if you
don;t use auto-neg than you usualy can fix using pullup/down the phy to work in
certain mode meaning usualy 10/100 and half/full-duplex.
once
the auto-neg is done you can read again using the MDIO the result.
as for
when sending and receiving than you need to take also into considuration the
blinder time which will result in cases where you start trasmiting even tho' you
already started reciving.
now
days all (?) MAC are dual path so the MAC can recive while trasmiting this is
perfectly ok , of course a collision will occur and you will have to retransmite
as well as reject the junk you recived and apply the backoff
algoritem.
have a
nice day
Illan
|