Mikroelektronika MIKROE-350 Datenbogen

Seite von 526
Cf_Fat_Get_File_Date
Cf_Fat_Get_File_Size
202
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub procedure Cf_Fat_Get_File_Date(dim byref year as worddim
byref 
month as bytedim byref day as bytedim byref hours as
byte
dim byref mins as 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 
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. 
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
dim year as word
month, day, hours, mins 
as byte
...
Cf_Fat_Get_File_Date(year, month, day, hours, mins)
Prototype
sub function Cf_Fat_Get_File_Size() as longword
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
dim my_file_size as longword
...
my_file_size = Cf_Fat_Get_File_Size()