User manual

Table Of Contents
mikroC PRO for PIC32
MikroElektronika
299
Cf_Fat_Get_File_Date
Cf_Fat_Get_File_Date_Modied
Prototype
void Cf_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 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 CF card and CF library must be initialized for le operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
Example
unsigned year;
char month, day, hours, mins;
...
Cf_Fat_Get_File_Date(&year, &month, &day, &hours, &mins);
Notes None.
Prototype
void Cf_Fat_Get_File_Date_Modied(unsigned int *year, unsigned short *month,
unsigned short *day, unsigned short *hours, unsigned short *mins);
Description Retrieves the last modication date/time of the currently assigned le.
Parameters - year: buffer to store year of modication attribute to. Upon function execution year of modication
attribute is returned through this parameter.
- month: buffer to store month of modication attribute to. Upon function execution month of modication
attribute is returned through this parameter.
- day: buffer to store day of modication attribute to. Upon function execution day of modication
attribute is returned through this parameter.
- hours: buffer to store hours of modication attribute to. Upon function execution hours of modication
attribute is returned through this parameter.
- mins: buffer to store minutes of modication attribute to. Upon function execution minutes of
modication attribute is returned through this parameter.
Returns Nothing.
Requires CF card and CF library must be initialized for le operations. See Cf_Fat_Init.
File must be previously assigned. See Cf_Fat_Assign.
Example
unsigned year;
char month, day, hours, mins;
...
Cf_Fat_Get_File_Date_Modied(&year, &month, &day, &hours, &mins);
Notes None.