OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [Common/] [FileSystem/] [FatFs-0.7e/] [doc/] [en/] [fattime.html] - Blame information for rev 606

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 606 jeremybenn
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<html lang="en">
3
<head>
4
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
5
<meta http-equiv="Content-Style-Type" content="text/css">
6
<link rel="up" title="FatFs" href="../00index_e.html">
7
<link rel="stylesheet" href="../css_e.css" type="text/css" media="screen" title="ELM Default">
8
<title>FatFs - get_fattime</title>
9
</head>
10
 
11
<body>
12
 
13
<div class="para">
14
<h2>get_fattime</h2>
15
<p>The get_fattime function gets current time.</p>
16
<pre>
17
DWORD get_fattime (void);
18
</pre>
19
</div>
20
 
21
 
22
<div class="para">
23
<h4>Return Value</h4>
24
<p>Currnet time is returned with packed into a DWORD value. The bit field is as follows:</p>
25
<dl class="ret">
26
<dt>bit31:25</dt>
27
<dd>Year from 1980 (0..127)</dd>
28
<dt>bit24:21</dt>
29
<dd>Month (1..12)</dd>
30
<dt>bit20:16</dt>
31
<dd>Day in month(1..31)</dd>
32
<dt>bit15:11</dt>
33
<dd>Hour (0..23)</dd>
34
<dt>bit10:5</dt>
35
<dd>Minute (0..59)</dd>
36
<dt>bit4:0</dt>
37
<dd>Second / 2 (0..29)</dd>
38
</dl>
39
</div>
40
 
41
 
42
<div class="para">
43
<h4>Description</h4>
44
<p>The get_fattime function must return any valid time even if the system does not support a real time clock. If a zero is returned, the file will not have a valid time. This fucntion is not required in read only configuration.</p>
45
</div>
46
 
47
 
48
<p class="foot"><a href="../00index_e.html">Return</a></p>
49
</body>
50
</html>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.