le_pm_interface.h
Go to the documentation of this file.
21 * media stream) result in high interrupt rates; keeping the system awake results in better performance26 * released, the system may enter a suspend state depending on the status of other (unrelated) wakeup44 * Power Manager's clients call @c le_pm_NewWakeupSource() to create a wakeup source. This function93 //--------------------------------------------------------------------------------------------------97 //--------------------------------------------------------------------------------------------------100 //--------------------------------------------------------------------------------------------------103 * Connect the current client thread to the service providing this API. Block until the service is106 * For each thread that wants to use this API, either ConnectService or TryConnectService must be107 * called before any other functions in this API. Normally, ConnectService is automatically called112 //--------------------------------------------------------------------------------------------------118 //--------------------------------------------------------------------------------------------------121 * Try to connect the current client thread to the service providing this API. Return with an error124 * For each thread that wants to use this API, either ConnectService or TryConnectService must be125 * called before any other functions in this API. Normally, ConnectService is automatically called134 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).137 //--------------------------------------------------------------------------------------------------143 //--------------------------------------------------------------------------------------------------147 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants150 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------163 * longer a connection to the service, and the functions in this API can't be used. For details, see168 //--------------------------------------------------------------------------------------------------175 //--------------------------------------------------------------------------------------------------179 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------186 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------196 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------222 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------242 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------269 * @note The service is available only if le_pm_StayAwake() has returned LE_NO_MEMORY. It should be272 //--------------------------------------------------------------------------------------------------void le_pm_DisconnectService(void)void le_pm_ConnectService(void)le_result_t le_pm_ForceRelaxAndDestroyAllWakeupSource(void)le_pm_WakeupSourceRef_t le_pm_NewWakeupSource(uint32_t createOpts, const char *LE_NONNULL wsTag)le_result_t le_pm_Relax(le_pm_WakeupSourceRef_t wsRef)le_result_t le_pm_StayAwake(le_pm_WakeupSourceRef_t wsRef)le_result_t le_pm_TryConnectService(void)void le_pm_SetServerDisconnectHandler(le_pm_DisconnectHandler_t disconnectHandler, void *contextPtr)struct le_pm_WakeupSource * le_pm_WakeupSourceRef_tDefinition: le_pm_interface.h:201