Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
wiced_rtc.h File Reference

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...
 

Function Documentation

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

  • Parameters
    [in]timerrtc time
  • Parameters
    [in]outbufstring output
    Returns
    : SUCCESS/FALSE
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.

  • Parameters
    [in]rtcClock: Real time clock
    Returns
    : None
void wiced_rtc_get_time ( RtcTime *  timebuf)

Function wiced_rtc_get_time.

get current time in RTC_time format

  • Parameters
    [in]timebufcurrent time in rtc format
    Returns
    : None
void wiced_rtc_init ( void  )

Function wiced_rtc_init.

Initialize the RTC block.

  • Parameters
    [in]void
    Returns
    : None
void wiced_rtc_set_reference_time ( RtcTime *  ref_time)

Function wiced_rtc_set_reference_time.

set original reference time.

  • Parameters
    [in]ref_timertc time
    Returns
    : None
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

  • Parameters
    [in]rtctime: rtc time
  • Parameters
    [in]second: seconds
    Returns
    : NONE
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

  • Parameters
    [in]secondseconds
  • Parameters
    [in]rtctimertc format output
    Returns
    : NONE
BOOL32 wiced_set_rtc_time ( RtcTime *  newTime)

Function wiced_rtc_set_reference_time.

set the current time

  • Parameters
    [in]newTime: rtc time for setting.
    Returns
    : SUCCESS/FALSE