le_ips_interface.h
Go to the documentation of this file.
80 * - le_ips_AddThresholdEventHandler() API adds a handler to notify when the platform input voltage104 //--------------------------------------------------------------------------------------------------108 //--------------------------------------------------------------------------------------------------111 //--------------------------------------------------------------------------------------------------114 * Connect the current client thread to the service providing this API. Block until the service is117 * For each thread that wants to use this API, either ConnectService or TryConnectService must be118 * called before any other functions in this API. Normally, ConnectService is automatically called123 //--------------------------------------------------------------------------------------------------129 //--------------------------------------------------------------------------------------------------132 * Try to connect the current client thread to the service providing this API. Return with an error135 * For each thread that wants to use this API, either ConnectService or TryConnectService must be136 * called before any other functions in this API. Normally, ConnectService is automatically called145 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).148 //--------------------------------------------------------------------------------------------------154 //--------------------------------------------------------------------------------------------------158 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants161 //--------------------------------------------------------------------------------------------------168 //--------------------------------------------------------------------------------------------------174 * longer a connection to the service, and the functions in this API can't be used. For details, see179 //--------------------------------------------------------------------------------------------------186 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------193 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------200 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------207 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------214 //--------------------------------------------------------------------------------------------------221 //--------------------------------------------------------------------------------------------------230 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------241 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------259 //--------------------------------------------------------------------------------------------------274 //--------------------------------------------------------------------------------------------------287 //--------------------------------------------------------------------------------------------------298 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------322 //--------------------------------------------------------------------------------------------------329 //--------------------------------------------------------------------------------------------------342 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------362 //--------------------------------------------------------------------------------------------------le_ips_ThresholdEventHandlerRef_t le_ips_AddThresholdEventHandler(le_ips_ThresholdEventHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_ips_GetInputVoltage(uint32_t *inputVoltagePtr)void le_ips_ConnectService(void)le_result_t le_ips_GetPowerSource(le_ips_PowerSource_t *powerSourcePtr)void le_ips_RemoveThresholdEventHandler(le_ips_ThresholdEventHandlerRef_t handlerRef)le_result_t le_ips_GetBatteryLevel(uint8_t *batteryLevelPtr)void(* le_ips_DisconnectHandler_t)(void *)Definition: le_ips_interface.h:109LE_FULL_API void le_ips_SetServerDisconnectHandler(le_ips_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_ips_DisconnectService(void)le_result_t le_ips_TryConnectService(void)le_result_t le_ips_SetVoltageThresholds(uint16_t criticalVolt, uint16_t warningVolt, uint16_t normalVolt, uint16_t hiCriticalVolt)le_result_t le_ips_SetBatteryLevel(uint8_t batteryLevel)le_result_t le_ips_GetVoltageThresholds(uint16_t *criticalVoltPtr, uint16_t *warningVoltPtr, uint16_t *normalVoltPtr, uint16_t *hiCriticalVoltPtr)