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.
Return Value
The poll_ethernet function does not return any value.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.