
14. MMC WINDOW LIBRARY
B–61863E–1/06
PMC LIBRARY
362
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f
[Name]
pl_mmc3r
[Description]
Reads data of up to 256 bytes via the window between PMC and
MMC. The contents of data can be determined arbitrarily by the PMC
or MMC-III application program.
[Format]
ret = pl_mmc3r(buffer_no,offset,data_len,read_buffer);
short ret ;
unsigned short buffer_no,offset,data_len ;
char *read_buffer ;
[Input]
buffer_no : Specifies the buffer in which data is read.
offset : Specifies the point from which data starts to be read,
as a relative value from the beginning of the buffer.
data_len : Specifies the number of data items to be read from
MMC-III. (Up to 256 bytes)
*read_buffer : Specifies the address in which data read from
MMC-III is stored.
[Output]
Data
Data
Data
[Returns]
ret Complete code : –11, 0, 2, 3, or 6
–11: Initialization of the MMC-III is not completed. (The buffer is
not initialized.)
0: Normal termination
2: The specified data length is incorrect. (Data length = 0 or
negative value, or offset + data length exceeds the buffer range)
3: There is no specified buffer. (A buffer number other than 1 to
10 is specified.)
6: There is no required option. (MMC-III is not provided.)
[Remarks]
______
14.3
READING
ARBITRARY DATA
FROM MMC VIA THE
WINDOW (MMC-III)
0
1
2
254
255
read_buffer
Data sent from MMC-III is set.