le_ips_interface.h
Go to the documentation of this file.
17 * The IPS API is used to get monitoring information related to the platform voltage input and set66 * - le_ips_AddThresholdEventHandler() API adds a handler to notify when the Platform input voltage87 //--------------------------------------------------------------------------------------------------90 * Connect the current client thread to the service providing this API. Block until the service is94 * called before any other functions in this API. Normally, ConnectService is automatically called99 //--------------------------------------------------------------------------------------------------105 //--------------------------------------------------------------------------------------------------108 * Try to connect the current client thread to the service providing this API. Return with an error111 * For each thread that wants to use this API, either ConnectService or TryConnectService must be112 * called before any other functions in this API. Normally, ConnectService is automatically called119 * - LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.120 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).123 //--------------------------------------------------------------------------------------------------129 //--------------------------------------------------------------------------------------------------135 * longer a connection to the service, and the functions in this API can't be used. For details, see140 //--------------------------------------------------------------------------------------------------147 //--------------------------------------------------------------------------------------------------151 //--------------------------------------------------------------------------------------------------169 //--------------------------------------------------------------------------------------------------173 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------185 //--------------------------------------------------------------------------------------------------187 (192 //--------------------------------------------------------------------------------------------------198 //--------------------------------------------------------------------------------------------------208 //--------------------------------------------------------------------------------------------------212 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------234 //--------------------------------------------------------------------------------------------------249 //--------------------------------------------------------------------------------------------------265 //--------------------------------------------------------------------------------------------------273 //--------------------------------------------------------------------------------------------------le_ips_ThresholdEventHandlerRef_t le_ips_AddThresholdEventHandler(le_ips_ThresholdEventHandlerFunc_t handlerPtr, void *contextPtr)void le_ips_RemoveThresholdEventHandler(le_ips_ThresholdEventHandlerRef_t addHandlerRef)le_result_t le_ips_GetInputVoltage(uint32_t *inputVoltagePtr)void le_ips_ConnectService(void)struct le_ips_ThresholdEventHandler * le_ips_ThresholdEventHandlerRef_tDefinition: le_ips_interface.h:174Warning input voltage threshold is reached.Definition: le_ips_interface.h:160void 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:154Critical input voltage threshold is reached.Definition: le_ips_interface.h:163void(* le_ips_ThresholdEventHandlerFunc_t)(le_ips_ThresholdStatus_t event, void *contextPtr)Definition: le_ips_interface.h:187le_result_t le_ips_GetVoltageThresholds(uint16_t *criticalVoltPtr, uint16_t *warningVoltPtr, uint16_t *normalVoltPtr, uint16_t *hiCriticalVoltPtr)