Rtcclk_settime (), Rtcclk_settime, E 29) – Maxim Integrated 73S12xxF Software User Manual
Page 29

UG_12xxF_016
73S12xxF Software User Guide
Rev. 1.50
29
Where MONTH is defined as: enum { JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG,
SEP, OCT, NOV, DEC }; and RTC_INTERVAL is defined as:
enum {HALF_SEC, ONE_SEC, TWO_SEC, FOUR_SEC, EIGHT_SEC, NO_INT};
Parameters
Sec: Output parameter
Current second unit.
Min : Output parameter
Current minute unit.
Hour: Output parameter
Current hour unit.
Date: Output parameter
Current date unit.
Month: Output parameter
Current month unit as specified in the enum MONTH type.
Year: Output parameter
Current year unit, e.g. 2005.
TicInterval: Output parameter
Tic interval as HALF_SEC, ONE_SEC or TWO_SEC, defined in RTC_INTERVAL.
IntInterval: Output parameter
Interrupt interval as defined in RTC_INTERVAL.
Return Codes None.
RTCClk_SetTIME ()
Purpose
Set time and start clocking immediately. Time conversion is done by the Gregorian/Julian
conversion method as defined on website:
Synopsis
Bbool RTCClk_SetTIME ( struct C_RTC_t xdata *RTC_Time )
struct C_RTC_t
{
Unsigned char
Sec;
Unsigned char
Min;
Unsigned char
Hour;
Unsigned char
Date;
enum MONTH
Month;
Unsigned integer
Year;
enum RTC_INTERVAL TicInterval;
//Tic interval - 1, 1/2 or 2 sec
enum RTC_INTERVAL IntInterval;
//int interval. NO_INT=disable int.
};
Where MONTH is defined as: enum { JAN=1, FEB, MAR, APR, MAY, JUN, JUL,
AUG, SEP, OCT, NOV, DEC }; and RTC_INTERVAL is defined as: enum
{HALF_SEC, ONE_SEC, TWO_SEC, FOUR_SEC, EIGHT_SEC, NO_INT };
Parameters
Sec: Input parameter
Current second unit.
Min: Input parameter
Current minute unit.
Hour: Input parameter
Current hour unit.
Date: Input parameter
Current Date unit.
Month: Input parameter
Current month unit as specified in the enum MONTH type.