Hardware description
Completing the read process
extern macro proc RC200EthernetReadEnd (
ResultPtr
);
Parameters:
ResultPtr
: Pointer to data of type
unsigned 1
. Returns 1 (failure) or 0
(success).
Timing:
7 clock cycles to 5ms, depending on the speed of response of the Ethernet device.
Description:
Completes the process of reading a packet from the Ethernet device. You must call
this macro after all the data has been read from a packet.
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
);
www.celoxica.com
Page 67