RTCAlarmParam

Definitions

#include <nitro/rtc.h>
typedef struct { 
         RTCWeek    week; 
         u32        hour;
         u32        minute;
         u32        enable;
} RTCAlarmParam;

Elements

week Value of the RTCWeek enumeration that indicates the day of the week.
hour Numerical value 0 – 23 that indicates the hour
minute Numerical value 0 – 59 that indicates the minute
enable Flag to determine the enabling of alarms (respectively) for: the day of the week, the hour, and the minute

Description

Indicates real time clock alarm parameters. This function indicates the day of the week, the hour and the minute, as well as the status of the flag that determines whether each element is enabled.
The enable flag that determines whether or not an alarm is enabled can have any of the following values, or can be the value of the logical OR of all of them.

RTC_ALARM_ENABLE_NONE 0x0000 All determining flags disabled
RTC_ALARM_ENABLE_WEEK 0x0001 Use day of week parameter in alarm determination.
RTC_ALARM_ENABLE_HOUR 0x0002 Use hour parameter in alarm determination.
RTC_ALARM_ENABLE_MINUTE 0x0004 Use minute parameter in alarm determination.

See Also

RTCWeek

Revision History

08/19/2004 Changed the description due to the fixing of the time notation
07/01/2004 Changed the description due to standardize the time notation
05/18/2004 Initial version

CONFIDENTIAL