Datasheet
Cf_Fat_Get_File_Date
265
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
Prototype
void Cf_Fat_Get_File_Date(unsigned int *year, unsigned short
*month, unsigned short *day, unsigned short *hours, unsigned
short *mins);
Returns Nothing.
Description
Reads time/date attributes of 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 attribute is returned through this parameter.
- day: buffer to store day attribute to. Upon function execution day attrib-
ute 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 min-
utes attribute is returned through this parameter.
Requires
CF card and CF library must be initialized for file 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);