Mikroelektronika MIKROE-724 データシート
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
401
Mmc_Fat_Get_File_Date_Modified
Mmc_Fat_Get_File_Size
Prototype
sub procedure Mmc_Fat_Get_File_Date_Modified(dim byref year as word, dim
byref month as byte, dim byref day as byte, dim byref hours as byte, dim
byref mins as byte)
Description Retrieves the last modification date/time for the currently selected file. Seconds are not being retrieved
since they are written in 2-sec increments.
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 attribute 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 attribute is returned through
this parameter.
-
mins
: buffer to store minutes attribute to. Upon function execution minutes attribute is returned
through this parameter.
Returns
Nothing.
Requires
The file must be assigned, see Mmc_Fat_Assign.
Example
dim year as word
month, day, hours, mins as byte
...
Mmc_Fat_Get_File_Date_Modified(year, month, day, hours, mins)
Prototype
sub function Mmc_Fat_Get_File_Size() as longword
Description This function reads size of the currently assigned file in bytes.
Parameters None.
Returns
Parameters None.
Returns
This function returns size of active 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
dim my_file_size as longword
...
my_file_size = Mmc_Fat_Get_File_Size()
Notes
None