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 voltage108 //--------------------------------------------------------------------------------------------------112 //--------------------------------------------------------------------------------------------------115 //--------------------------------------------------------------------------------------------------118 * Connect the current client thread to the service providing this API. Block until the service is121 * For each thread that wants to use this API, either ConnectService or TryConnectService must be122 * called before any other functions in this API. Normally, ConnectService is automatically called127 //--------------------------------------------------------------------------------------------------133 //--------------------------------------------------------------------------------------------------136 * Try to connect the current client thread to the service providing this API. Return with an error139 * For each thread that wants to use this API, either ConnectService or TryConnectService must be140 * called before any other functions in this API. Normally, ConnectService is automatically called149 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).152 //--------------------------------------------------------------------------------------------------158 //--------------------------------------------------------------------------------------------------162 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants165 //--------------------------------------------------------------------------------------------------172 //--------------------------------------------------------------------------------------------------178 * longer a connection to the service, and the functions in this API can't be used. For details, see183 //--------------------------------------------------------------------------------------------------190 //--------------------------------------------------------------------------------------------------194 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------211 //--------------------------------------------------------------------------------------------------215 //--------------------------------------------------------------------------------------------------218 //--------------------------------------------------------------------------------------------------225 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------238 //--------------------------------------------------------------------------------------------------245 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------302 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------326 //--------------------------------------------------------------------------------------------------333 //--------------------------------------------------------------------------------------------------346 //--------------------------------------------------------------------------------------------------353 //--------------------------------------------------------------------------------------------------366 //--------------------------------------------------------------------------------------------------le_ips_ThresholdEventHandlerRef_t le_ips_AddThresholdEventHandler(le_ips_ThresholdEventHandlerFunc_t handlerPtr, void *contextPtr)le_result_t le_ips_TryConnectService(void)le_result_t le_ips_GetInputVoltage(uint32_t *inputVoltagePtr)void le_ips_DisconnectService(void)void(* le_ips_ThresholdEventHandlerFunc_t)(le_ips_ThresholdStatus_t event, void *contextPtr)Definition: le_ips_common.h:76void le_ips_ConnectService(void)void(* le_ips_DisconnectHandler_t)(void *)Definition: le_ips_interface.h:113void le_ips_RemoveThresholdEventHandler(le_ips_ThresholdEventHandlerRef_t handlerRef)le_result_t le_ips_GetVoltageThresholds(uint16_t *criticalVoltPtr, uint16_t *warningVoltPtr, uint16_t *normalVoltPtr, uint16_t *hiCriticalVoltPtr)LE_FULL_API void le_ips_SetServerDisconnectHandler(le_ips_DisconnectHandler_t disconnectHandler, void *contextPtr)le_result_t le_ips_GetPowerSource(le_ips_PowerSource_t *powerSourcePtr)le_result_t le_ips_SetBatteryLevel(uint8_t batteryLevel)le_result_t le_ips_SetVoltageThresholds(uint16_t criticalVolt, uint16_t warningVolt, uint16_t normalVolt, uint16_t hiCriticalVolt)struct le_ips_ThresholdEventHandler * le_ips_ThresholdEventHandlerRef_tDefinition: le_ips_common.h:67le_result_t le_ips_GetBatteryLevel(uint8_t *batteryLevelPtr)