le_rtc_interface.h
Go to the documentation of this file.
19 * This API provides definitions to read and set the @e user timebase for a target's real time clock (RTC).34 * @c TIME_SERVICES="qcom_time" line in @c /etc/time_service.conf to prevent the system time from being68 //--------------------------------------------------------------------------------------------------72 //--------------------------------------------------------------------------------------------------75 //--------------------------------------------------------------------------------------------------78 * Connect the current client thread to the service providing this API. Block until the service is82 * called before any other functions in this API. Normally, ConnectService is automatically called87 //--------------------------------------------------------------------------------------------------93 //--------------------------------------------------------------------------------------------------96 * Try to connect the current client thread to the service providing this API. Return with an error100 * called before any other functions in this API. Normally, ConnectService is automatically called109 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).112 //--------------------------------------------------------------------------------------------------118 //--------------------------------------------------------------------------------------------------122 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants125 //--------------------------------------------------------------------------------------------------132 //--------------------------------------------------------------------------------------------------138 * longer a connection to the service, and the functions in this API can't be used. For details, see143 //--------------------------------------------------------------------------------------------------150 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------165 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------LE_FULL_API void le_rtc_SetServerDisconnectHandler(le_rtc_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_rtc_ConnectService(void)le_result_t le_rtc_SetUserTime(uint64_t millisecondsPastGpsEpoch)le_result_t le_rtc_GetUserTime(uint64_t *millisecondsPastGpsEpochPtr)void le_rtc_DisconnectService(void)le_result_t le_rtc_TryConnectService(void)void(* le_rtc_DisconnectHandler_t)(void *)Definition: le_rtc_interface.h:73