le_rtc_interface.h
Go to the documentation of this file.
17 * This API provides definitions to read and set the @e user timebase for a target's real time clock (RTC).32 * @c TIME_SERVICES="qcom_time" line in @c /etc/time_service.conf to prevent the system time from being64 //--------------------------------------------------------------------------------------------------67 * Connect the current client thread to the service providing this API. Block until the service is71 * called before any other functions in this API. Normally, ConnectService is automatically called76 //--------------------------------------------------------------------------------------------------82 //--------------------------------------------------------------------------------------------------85 * Try to connect the current client thread to the service providing this API. Return with an error89 * called before any other functions in this API. Normally, ConnectService is automatically called96 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.97 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).100 //--------------------------------------------------------------------------------------------------106 //--------------------------------------------------------------------------------------------------112 * longer a connection to the service, and the functions in this API can't be used. For details, see117 //--------------------------------------------------------------------------------------------------123 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------138 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------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)