AIROC™ BTSDK v4.4 - Documentation | ||||
Functions | |
void | wiced_rtc_init (void) |
Function wiced_rtc_init. More... | |
void | wiced_rtc_get_raw_clock (tRTC_REAL_TIME_CLOCK *rtcClock) |
Function wiced_rtc_get_raw_clock. More... | |
void | wiced_rtc_get_time (RtcTime *timebuf) |
Function wiced_rtc_get_time. More... | |
void | wiced_rtc_set_reference_time (RtcTime *ref_time) |
Function wiced_rtc_set_reference_time. More... | |
BOOL32 | wiced_set_rtc_time (RtcTime *newTime) |
Function wiced_rtc_set_reference_time. More... | |
BOOL32 | wiced_rtc_ctime (RtcTime *timer, char *outbuf) |
Function wiced_rtc_ctime. More... | |
void | wiced_seconds_to_rtc_time (UINT32 second, RtcTime *rtctime) |
Function wiced_seconds_to_rtc_time. More... | |
void | wiced_rtc_time_to_seconds (RtcTime *rtctime, UINT32 *second) |
Function wiced_rtc_time_to_seconds. More... | |
BOOL32 wiced_rtc_ctime | ( | RtcTime * | timer, |
char * | outbuf | ||
) |
Function wiced_rtc_ctime.
convert the tm object pointed by timer to c string containing a human-readable verion of the correspoing local time and data
the returned string has the folloing format
Mmm dd hh:mm:ss yyyy where Mmm - the month in letters dd - the day of the month hh:mm:ss - time yyyy - year
[in] | timer | rtc time |
[in] | outbuf | string output |
void wiced_rtc_get_raw_clock | ( | tRTC_REAL_TIME_CLOCK * | rtcClock | ) |
Function wiced_rtc_get_raw_clock.
Reads Real time clock value from hardware clock.
[in] | rtcClock | : Real time clock |
void wiced_rtc_get_time | ( | RtcTime * | timebuf | ) |
Function wiced_rtc_get_time.
get current time in RTC_time format
[in] | timebuf | current time in rtc format |
void wiced_rtc_init | ( | void | ) |
Function wiced_rtc_init.
Initialize the RTC block.
[in] | void |
void wiced_rtc_set_reference_time | ( | RtcTime * | ref_time | ) |
Function wiced_rtc_set_reference_time.
set original reference time.
[in] | ref_time | rtc time |
void wiced_rtc_time_to_seconds | ( | RtcTime * | rtctime, |
UINT32 * | second | ||
) |
Function wiced_rtc_time_to_seconds.
convert RTC_time broken-down format to 32-bits seocnds
[in] | rtctime | : rtc time |
[in] | second | : seconds |
void wiced_seconds_to_rtc_time | ( | UINT32 | second, |
RtcTime * | rtctime | ||
) |
Function wiced_seconds_to_rtc_time.
conver the 32 bit seconds to RTC_time broken down format
[in] | second | seconds |
[in] | rtctime | rtc format output |
BOOL32 wiced_set_rtc_time | ( | RtcTime * | newTime | ) |
Function wiced_rtc_set_reference_time.
set the current time
[in] | newTime | : rtc time for setting. |