le_ips_interface.h
Go to the documentation of this file.
73 * - le_ips_AddThresholdEventHandler() API adds a handler to notify when the platform input voltage96 //--------------------------------------------------------------------------------------------------100 //--------------------------------------------------------------------------------------------------103 //--------------------------------------------------------------------------------------------------106 * Connect the current client thread to the service providing this API. Block until the service is109 * For each thread that wants to use this API, either ConnectService or TryConnectService must be110 * called before any other functions in this API. Normally, ConnectService is automatically called115 //--------------------------------------------------------------------------------------------------121 //--------------------------------------------------------------------------------------------------124 * Try to connect the current client thread to the service providing this API. Return with an error127 * For each thread that wants to use this API, either ConnectService or TryConnectService must be128 * called before any other functions in this API. Normally, ConnectService is automatically called137 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).140 //--------------------------------------------------------------------------------------------------146 //--------------------------------------------------------------------------------------------------150 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants153 //--------------------------------------------------------------------------------------------------160 //--------------------------------------------------------------------------------------------------166 * longer a connection to the service, and the functions in this API can't be used. For details, see171 //--------------------------------------------------------------------------------------------------178 //--------------------------------------------------------------------------------------------------182 //--------------------------------------------------------------------------------------------------197 //--------------------------------------------------------------------------------------------------201 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------216 //--------------------------------------------------------------------------------------------------220 //--------------------------------------------------------------------------------------------------224 //--------------------------------------------------------------------------------------------------226 (233 //--------------------------------------------------------------------------------------------------240 //--------------------------------------------------------------------------------------------------249 //--------------------------------------------------------------------------------------------------253 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------268 //--------------------------------------------------------------------------------------------------275 //--------------------------------------------------------------------------------------------------290 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------311 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------332 //--------------------------------------------------------------------------------------------------339 //--------------------------------------------------------------------------------------------------349 //--------------------------------------------------------------------------------------------------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)struct le_ips_ThresholdEventHandler * le_ips_ThresholdEventHandlerRef_tDefinition: le_ips_interface.h:217void(* le_ips_ThresholdEventHandlerFunc_t)(le_ips_ThresholdStatus_t event, void *contextPtr)Definition: le_ips_interface.h:226void(* le_ips_DisconnectHandler_t)(void *)Definition: le_ips_interface.h:101Platform is powered by an external source.Definition: le_ips_interface.h:204Warning input voltage threshold is reached.Definition: le_ips_interface.h:189void 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)High Critical input voltage threshold is reached.Definition: le_ips_interface.h:185void le_ips_SetServerDisconnectHandler(le_ips_DisconnectHandler_t disconnectHandler, void *contextPtr)Critical input voltage threshold is reached.Definition: le_ips_interface.h:191le_result_t le_ips_GetVoltageThresholds(uint16_t *criticalVoltPtr, uint16_t *warningVoltPtr, uint16_t *normalVoltPtr, uint16_t *hiCriticalVoltPtr)