Datasheet

Mmc_Fat_Get_File_Date
Mmc_Fat_Get_File_Size
283
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Mmc_Fat_Get_File_Date(var year: word; var month: byte;
var day: byte; var hours: byte; var mins: byte);
Returns Nothing.
Description
Reads time/date attributes of the currently assigned file.
Parameters:
-
year: buffer to store year attribute to. Upon function execution year attribute is
returned through this parameter.
- month: buffer to store month attribute to. Upon function execution month attrib
ute is returned through this parameter.
-
day: buffer to store day attribute to. Upon function execution day attribute is
returned through this parameter.
-
hours: buffer to store hours attribute to. Upon function execution hours attrib-
ute is returned through this parameter.
- mins: buffer to store minutes attribute to. Upon function execution minutes
attribute is returned through this parameter.
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
Example
var year : word;
month, day, hours, mins : byte;
...
Mmc_Fat_Get_File_Date(year, month, day, hours, mins);
Prototype
function Mmc_Fat_Get_File_Size(): dword;
Returns Size of the currently assigned file in bytes.
Description This function reads size of the currently assigned file in bytes.
Requires
MMC/SD card and MMC library must be initialized for file operations. See
Mmc_Fat_Init.
The file must be previously assigned. See Mmc_Fat_Assign.
Example
var my_file_size : dword;
...
my_file_size := Mmc_Fat_Get_File_Size();