The poll_ethernet function polls the ethernet status
register for any received ethernet packets. If there is a new packet,
it allocates a block of memory. It then reads and copies the packet
from the ethernet controller into the allocated memory. The function
puts the pointer to the memory block into the received frames queue
by calling the put_in_queue function.
The poll_ethernet function is part of RL-TCPnet. The
prototype is defined in net_config.h.
note
You must provide the poll_ethernet function if the
ethernet controller you use is different from the ones provided in
the TCPnet source.
You must provide the poll_ethernet function only if you
want to use the ethernet driver in poll mode.
The TcpNet system frequently calls poll_ethernet to poll
for any received ethernet packet.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.