LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
rtc.h
Go to the documentation of this file.
1
#ifndef _RTC_DEFINED
2
#define _RTC_DEFINED
3
4
#include "
integer.h
"
5
6
typedef
struct
{
7
WORD
year
;
/* 1..4095 */
8
BYTE
month
;
/* 1..12 */
9
BYTE
mday
;
/* 1.. 31 */
10
BYTE
wday
;
/* 1..7 */
11
BYTE
hour
;
/* 0..23 */
12
BYTE
min
;
/* 0..59 */
13
BYTE
sec
;
/* 0..59 */
14
}
RTC
;
15
16
int
rtc_initialize
(
void
);
/* Initialize RTC */
17
int
rtc_gettime
(
RTC
*);
/* Get time */
18
int
rtc_settime
(
const
RTC
*);
/* Set time */
19
20
#endif
software
filesystems
fatfslpc
rtc.h
Generated on Fri May 10 2013 10:42:10 for LPCOpen Platform by
1.8.2