⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dateandtime.tex

📁 嵌入式文件系统 EFSL 0.3.5 / 嵌入式文件系统 EFSL 0.3.5
💻 TEX
字号:
\label{dateandtime}The EFSL library supports setting and updating all date and time fieldssupported by the filesystem. In order to do this the library must know the current time and date at all times. Since it has to run everywhere,there is no standard mechanism to get the date/time, and some systems donot have a clock.With default configuration there is no date or time support, you have toturn it on manually in the configuration file \filename{config.h}.You will have to uncomment the field named \code{\#define DATE\_TIME\_SUPPORT},in order to activate date/time support.Furthermore you will have to provide the library with date and time information.A set of defines was used for this, when date/time support is not enabled,the defines automatically return \code{0x0000} for all time and date fields,so there is no performance suffer when you do not need date/time support.If you do need it you will have to provide 6 functions to the librarythat will tell it the time. Since these functions may get called often,it is highly recommended that you cache the time result somewhere soyou can serve the library directly from ram. If you do not do this andyour RTC request take a lot of time, you may suffer large losses in reador write operations depending on your hardware.The six functions are:\begin{itemize}    \item\code{euint16 efsl\_getYear(void)}     \item\code{euint8 efsl\_getMonth(void)}     \item\code{euint8 efsl\_getDay(void)}     \item\code{euint8 efsl\_getHour(void)}     \item\code{euint8 efsl\_getMinute(void)}     \item\code{euint8 efsl\_getSecond(void)}\end{itemize}Internally the library will recalculate these numbers to match thefilesystem that is currently in use. 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -