Mikroelektronika MIKROE-742 데이터 시트

다운로드
페이지 532
Cf_Fat_Get_File_Date
Cf_Fat_Get_File_Size
217
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
procedure Cf_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 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
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
var year : word;
month, day, hours, mins : byte;
...
Cf_Fat_Get_File_Date(year, month, day, hours, mins);
Prototype
function Cf_Fat_Get_File_Size(): dword;
Returns
Size of the currently assigned file in bytes.
Description
This function reads size of currently assigned file in bytes.
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
var my_file_size : dword;
...
my_file_size := Cf_Fat_Get_File_Size();