User manual

RC200/203 Manual
www.celoxica.com Page 71
Parameters:
ResultPtr: Pointer to register of type unsigned 1. Returns 0
if the card is correctly formatted with the Celoxica logical
address map, or 1 if it is not.
Timing: 350 clock cycles or more.
Description:
This macro checks to see if the SmartMedia card is formatted
according to the Celoxica logical address map. If it is, it
returns 0 and stores the number of the block where the
logical map is stored.
If you then set a logical address to block 0, using
RC200SmartMediaSetLogicalAddress(), this will target the
first valid block after the logical address map (refer to the
RC200 Hardware and Installation Guide for more detail).
You must call this macro before using
RC200SmartMediaSetLogicalAddress().
SmartMedia Physical Specification
extern macro proc RC200SmartMediaFormat (ResultPtr);
Parameters:
ResultPtr: Pointer to register of type unsigned 1. Returns 0 for
success, 1 for failure.
Timing: 250 clock cycles or more.
Description:
This macro checks to see if the SmartMedia card is formatted
according to the SmartMedia Physical Specification. If the card is
unformatted, it formats it.
ResultPtr indicates whether the card has been successfully
formatted or not.
ResultPtr also returns 0 if the card was already
formatted.
5.15.9 Reading from and writing to the SmartMedia
Setting a logical address
extern macro proc RC200SmartMediaSetLogicalAddress (WriteNotRead, Address);