User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
375
Mmc_Fat_Get_File_Date
Prototype
void Mmc_Fat_Get_File_Date(unsigned int *year, unsigned short *month,
unsigned short *day, unsigned short *hours, unsigned short *mins);
Description Reads time/date attributes of the currently assigned le.
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 MMC/SD card and MMC library must be initialized for le operations. See Mmc_Fat_Init.
The le must be previously assigned. See Mmc_Fat_Assign.
Example
// get Date/time of le
unsigned yr;
char mnth, dat, hrs, mins;
...
le_Name = “MYFILEABTXT”;
Mmc_Fat_Assign(le_Name);
Mmc_Fat_Get_File_Date(&yr, &mnth, &day, &hrs, &mins);
Notes None.