![]()  | 
        
           Wirepas SDK
           
         | 
        
Go to the source code of this file.
Typedefs | |
| typedef uint64_t | rtc_timestamp_t | 
| typedef void(* | on_rtc_initialized) (void) | 
| Callback called the first time RTC time is aquired from network.  More... | |
Functions | |
| rtc_res_e | RTC_init (void) | 
| Initialize the stack state library.  More... | |
| rtc_res_e | RTC_getUTCTime (rtc_timestamp_t *now) | 
| Get current expected RTC time from node.  More... | |
| rtc_res_e | RTC_getLocalTime (rtc_timestamp_t *now) | 
| Get current expected RTC time with timezone from node.  More... | |
| rtc_res_e | RTC_getTimezoneOffsetInSeconds (long *timezoneOffsetInSeconds) | 
| Get configured timezone offset of the node.  More... | |
| rtc_res_e | RTC_addInitializeCb (on_rtc_initialized callback) | 
| Add a new callback to be informed when RTC time is available from network.  More... | |
| rtc_res_e | RTC_removeInitializedCb (on_rtc_initialized callback) | 
| Remove an event callback from the list. Removed item fields are all set to 0.  More... | |
Enumerations | |
| enum | rtc_res_e {  RTC_RES_OK = 0, RTC_UNAVAILABLE_YET = 1, RTC_NO_MORE_CALLBACKS = 2, RTC_UNKNOWN_CALLBACK = 3, RTC_INVALID_VALUE = 4, RTC_UNINITIALIZED = 5 }  | 
| List of return code.  More... | |
| enum | provisioning_data_ids_e {  PROV_DATA_ID_ENC_KEY = 0, PROV_DATA_ID_AUTH_KEY = 1, PROV_DATA_ID_NET_ADDR = 2, PROV_DATA_ID_NET_CHAN = 3, PROV_DATA_ID_NODE_ADDR = 4, PROV_DATA_ID_NODE_ROLE = 5, PROV_DATA_ID_NET_KEY_SEQ = 6, PROV_DATA_ID_MGMT_ENC_KEY = 7, PROV_DATA_ID_MGMT_AUTH_KEY = 8, RTC_ID_TIMESTAMP = 0, RTC_ID_TIMEZONE_OFFSET = 1 }  | 
| List of Wirepas Ids for TLV encoded provisioning data.  More... | |
Macros | |
| #define | RTC_VERSION (uint16_t)(1) | 
| typedef void(* on_rtc_initialized) (void) | 
Callback called the first time RTC time is aquired from network.
| typedef uint64_t rtc_timestamp_t | 
| rtc_res_e RTC_addInitializeCb | ( | on_rtc_initialized | callback | ) | 
Add a new callback to be informed when RTC time is available from network.
| callback | New callback | 
| rtc_res_e RTC_getLocalTime | ( | rtc_timestamp_t * | now | ) | 
Get current expected RTC time with timezone from node.
| now | Current local time if return code is RTC_RES_OK | 
| rtc_res_e RTC_getTimezoneOffsetInSeconds | ( | long * | timezoneOffsetInSeconds | ) | 
Get configured timezone offset of the node.
| timezoneOffsetInSeconds | timezone offset of the local time if return code is RTC_RES_OK | 
| rtc_res_e RTC_getUTCTime | ( | rtc_timestamp_t * | now | ) | 
Get current expected RTC time from node.
| now | Current RTC time if return code is RTC_RES_OK | 
| rtc_res_e RTC_init | ( | void | ) | 
Initialize the stack state library.
| rtc_res_e RTC_removeInitializedCb | ( | on_rtc_initialized | callback | ) | 
Remove an event callback from the list. Removed item fields are all set to 0.
| callback | callback to remove. | 
List of Wirepas Ids for TLV encoded provisioning data.
| enum rtc_res_e | 
List of return code.
Definition at line 20 of file rtc.h.