LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
Main Page
Related Pages
Modules
Data Structures
Files
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_DEFINE
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
applications
lpc18xx_43xx
examples
LPCUSBlib
lpcusblib_MassStorageDevice
sdmmc
rtc.h
Generated on Fri Nov 16 2012 13:36:36 for LPCOpen Platform by
1.8.2