User manual

RC200/203 Manual
www.celoxica.com Page 75
5. Once the whole packet has been read or written, call
RC200EthernetReadEnd() or RC200EthernetWriteEnd().
Important considerations:
You must call RC200EthernetReadEnd() or RC200EthernetWriteEnd() at the
end of a read or write, and the driver will not reposnd correctly to further
commands until this is done.
If you call either
RC200EthernetReadBegin() or RC200EthernetWriteBegin()
and they return an error, then a read or write operation has not been started,
so there is no need to call the "End" macros.
Once you start reading or writing a packet, you must finish it before accessing
the network driver in any other way. For example, it is not permissible to
overlap reading and writing of packets.
5.16.1 Ethernet management tasks
extern macro proc RC200EthernetRun (ClockRate, MACAddress);
Parameters:
ClockRate: Clock rate of the clock domain of the call to this
macro, in Hz.
MACAddress: Ethernet MAC address to be used by the
Ethernet chip, of type
unsigned 48.
Timing: Does not terminate in normal use.
Description:
Runs the device management tasks for the Ethernet
interface. You must run this macro in parallel with accesses
to the device.
5.16.2 Enabling the Ethernet device
extern macro proc RC200EthernetEnable (Mode);