User manual

RC200/203 Manual
www.celoxica.com Page 79
5.16.7 Writing a packet to the network
Starting the write process
extern macro proc RC200EthernetWriteBegin (Destination, DataByteCount,
ResultPtr);
Parameters:
Destination: Data of type unsigned 48. Specifies the
destination MAC address for the packet.
DataByteCount: Data of type unsigned 11. Specifies the
number of data bytes to be sent. Possible values: 64-1518.
ResultPtr: Pointer to data of type unsigned 1. Returns 1
(failure) or 0 (success).
Timing:
At least 100 clock cycles. Timing depends on what the chip is
doing when the macro is called.
Description:
Starts a Packet Write operation to send data to the Ethernet
device, and from there onto the network.
If the Ethernet buffer is full of received (but unread) packets,
the oldest one is dropped to make space for the new write
packet.
Result will be returned as 0 if successful, and 1 otherwise. If
it is not successful, no further packet write commands should
be issued, and you should try again to initiate the write.
Writing a byte of data to a packet
extern macro proc RC200EthernetWrite (Data, ResultPtr);