Datasheet

Library Example
MMC library test. Upon flashing, insert a MMC/SD card into the module, when you
should receive the "Init-OK" message. Then, you can experiment with MMC read
and write functions, and observe the results through the terminal Receive Panel win-
dow.
335
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Description
Note: Long File Names (LFN) are not supported.
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
Example
//-------------- Tries to create a swap file, whose size will be
at least 100 sectors.
//If it succeeds, it sends the No. of start sector over UART
void M_Create_Swap_File(){
size = Mmc_Fat_Get_Swap_File(100);
if (size <> 0) {
UART_Write(0xAA);
UART_Write(Lo(size));
UART_Write(Hi(size));
UART_Write(Higher(size));
UART_Write(Highest(size));
UART_Write(0xAA);
}
}
Bit Mask Description
0 0x01 Read Only
1 0x02 Hidden
2 0x04 System
3 0x08 Volume Label
4 0x10 Subdirectory
5 0x20 Archive
6 0x40 Device (internal use only, never found on disk)
7 0x80 Not used