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 voltage103 //--------------------------------------------------------------------------------------------------107 //--------------------------------------------------------------------------------------------------110 //--------------------------------------------------------------------------------------------------113 * Connect the current client thread to the service providing this API. Block until the service is116 * For each thread that wants to use this API, either ConnectService or TryConnectService must be117 * called before any other functions in this API. Normally, ConnectService is automatically called122 //--------------------------------------------------------------------------------------------------128 //--------------------------------------------------------------------------------------------------131 * Try to connect the current client thread to the service providing this API. Return with an error134 * For each thread that wants to use this API, either ConnectService or TryConnectService must be135 * called before any other functions in this API. Normally, ConnectService is automatically called144 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).147 //--------------------------------------------------------------------------------------------------153 //--------------------------------------------------------------------------------------------------157 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants160 //--------------------------------------------------------------------------------------------------167 //--------------------------------------------------------------------------------------------------173 * longer a connection to the service, and the functions in this API can't be used. For details, see178 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------189 //--------------------------------------------------------------------------------------------------204 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------231 //--------------------------------------------------------------------------------------------------233 (240 //--------------------------------------------------------------------------------------------------247 //--------------------------------------------------------------------------------------------------256 //--------------------------------------------------------------------------------------------------260 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------278 //--------------------------------------------------------------------------------------------------285 //--------------------------------------------------------------------------------------------------300 //--------------------------------------------------------------------------------------------------313 //--------------------------------------------------------------------------------------------------324 //--------------------------------------------------------------------------------------------------337 //--------------------------------------------------------------------------------------------------348 //--------------------------------------------------------------------------------------------------355 //--------------------------------------------------------------------------------------------------368 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------388 //--------------------------------------------------------------------------------------------------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:224void(* le_ips_DisconnectHandler_t)(void *)Definition: le_ips_interface.h:108Platform is powered by an external source.Definition: le_ips_interface.h:211Warning input voltage threshold is reached.Definition: le_ips_interface.h:196void 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:192le_result_t le_ips_SetBatteryLevel(uint8_t batteryLevel)void le_ips_SetServerDisconnectHandler(le_ips_DisconnectHandler_t disconnectHandler, void *contextPtr)Critical input voltage threshold is reached.Definition: le_ips_interface.h:198void(* le_ips_ThresholdEventHandlerFunc_t)(le_ips_ThresholdStatus_t event, void *contextPtr)Definition: le_ips_interface.h:233le_result_t le_ips_GetVoltageThresholds(uint16_t *criticalVoltPtr, uint16_t *warningVoltPtr, uint16_t *normalVoltPtr, uint16_t *hiCriticalVoltPtr)