User manual
RC200/203 Manual
www.celoxica.com Page 74
rocess erases the entire contents of the block, even if you only write
A write p
one byte.
Completing a read or write operation
extern macro proc RC200SmartMediaOperationEnd (ResultPtr);
ResultPtr
Parameters:
ister of type unsigned 1. Returns 0
Timing:
cle
iaWrite().
Description:
n then carry out other non-
SmartMedia CPLD operations.
e
It will return 1 if there was an error in the previous
otherwise.
5.16 Ethernet macros
redictable nature of network communications (for example, a packet
could b
rallel with the rest of the read/write code.
4.
ead() or RC200EthernetWrite(). Data is read or written
one byte at a time.
: Pointer to reg
for success, 1 for failure.
1 or more clock cycles. It will take more than one clock cy
if you call the macro directly after the last call to
RC200SmartMediaRead() or RC200SmartMed
You can only call this macro after a call to
RC200SmartMediaRead() or RC200SmartMediaWrite().
After a read or write is terminated, this macro ensures that
all internal SmartMedia driver operations are terminated
before the next command can be called. Both of the possible
return values from this macro indicate that the SmartMedia
driver is in an idle state. You ca
Checking for errors during reads and writes
extern macro expr RC200SmartMediaGetError();
You can use this macro to perform a real-time check for errors whilst a read or writ
operation is in progress. You can use the macro at any time after the first call to
RC200SmartMediaRead() or RC200SmartMediaWrite() and before you have called
RC200SmartMediaOperationEnd().
operation, and return 0
Timing of the Ethernet macros is unpredictable, since the chip has its own CPU, and
because of the unp
e corrupt).
1. Call
RC200EthernetRun() in pa
2. Call
RC200EthernetEnable().
3. Call
RC200EthernetReadBegin() or RC200EthernetWriteBegin().
Call
RC200EthernetR