Function |
MMC_WRITE_BLOCK |
Description |
This function writes 512 bytes data into MMC(MultiMediaCard)
in the specified slot of the I-8000 system.
This function is used for C/C++ compiler. |
Function Prototype |
unsigned int MMC_WRITE_BLOCK(int slot, unsigned char *dataarray,
unsigned long BlockNumber, int TryCount);
unsigned int |
Function return
0: no error
1,2: write fail
|
slot |
Specified slot of the I-8000 system
Range from 0 to 3 for 4 slot
Range from 0 to 7 for 8 slot
|
*dataarray |
data array, 512 bytes data to be written into MMC
|
BlockNumber |
specified the block number to write.
|
TryCount |
normal : 1
If the MMC isn't stable,set the TryCount to perform
many times writing until successful.
|
|
Example |
Function |
status = MMC_WRITE_BLOCK(0,dataarray,1,1) |
Return |
status |
Description |
The example writes the dataarray, 512 bytes, to the block 1 of MMC at slot 0
, if success the status is 0. |
|
Modules |
I-8073 |
|
Reference |
|
|