Real-Time Clock Service API Data Types and Enumerations
Real-Time Clock Service API Data Types
and Enumerations
This section describes the data structures for reading and writing the date
and time to the
time. It also describes the asynchronous event types and the result codes
that can be returned from an RTC function.
tm structure
A C-standard time structure is provided in the VisualDSP++ 5.0 system
include file,
time.h
hour, day, month, year, plus three additional fields which are not cur-
rently used by this RTC service
Table 11-2. Fields of the tm Structure
Field Type and Name
int tm_sec
int tm_min
int tm_hour
int tm_mday
int tm_mon
int tm_year
int tm_wday
int tm_yday
int tm_isdst
When using
an epoch date of the first of January 1970 is used. Although this is
the earliest date that can be stored using these functions, the year
11-28
register, which maintains the current date and
RTC_STAT
. This structure contains fields for the second, minute,
(Table
Field Description
Seconds after the minute
Minutes after the hour
Hour of the day, [0,23]
Day of the month, [1,31]
Months since Jan
Years since 1900
Days since Sun, [0,6]
Days since Jan 1 [0,365]
Daylight savings flag
adi_rtc_SetDateTime()
VisualDSP++ 5.0 Device Drivers and System
11-2).
and
adi_rtc_GetDateTime()
Services Manual for Blackfin Processors
,
Need help?
Do you have a question about the VisualDSP++ 5.0 and is the answer not in the manual?