#include "legato.h"
Go to the source code of this file.
Typedefs | |
typedef struct le_ips_ThresholdEventHandler * | le_ips_ThresholdEventHandlerRef_t |
typedef void(* | le_ips_ThresholdEventHandlerFunc_t) (le_ips_ThresholdStatus_t event, void *contextPtr) |
Enumerations | |
enum | le_ips_ThresholdStatus_t { LE_IPS_VOLTAGE_HI_CRITICAL, LE_IPS_VOLTAGE_NORMAL, LE_IPS_VOLTAGE_WARNING, LE_IPS_VOLTAGE_CRITICAL } |
Functions | |
void | le_ips_ConnectService (void) |
void | le_ips_DisconnectService (void) |
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) |
le_result_t | le_ips_SetVoltageThresholds (uint16_t criticalVolt, uint16_t warningVolt, uint16_t normalVolt, uint16_t hiCriticalVolt) |
le_result_t | le_ips_GetVoltageThresholds (uint16_t *criticalVoltPtr, uint16_t *warningVoltPtr, uint16_t *normalVoltPtr, uint16_t *hiCriticalVoltPtr) |
Legato Input Power Supply Monitoring API include file.
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.
typedef void(* le_ips_ThresholdEventHandlerFunc_t) (le_ips_ThresholdStatus_t event, void *contextPtr) |
Handler for Platform input voltage event.
event | Input voltage threshold event reached. |
contextPtr |
typedef struct le_ips_ThresholdEventHandler* le_ips_ThresholdEventHandlerRef_t |
Reference type used by Add/Remove functions for EVENT 'le_ips_ThresholdEvent'
Platform input voltage event type.
le_ips_ThresholdEventHandlerRef_t le_ips_AddThresholdEventHandler | ( | le_ips_ThresholdEventHandlerFunc_t | handlerPtr, |
void * | contextPtr | ||
) |
Add handler function for EVENT 'le_ips_ThresholdEvent'
This event provides information on Threshold reached.
[in] | handlerPtr | |
[in] | contextPtr |
void le_ips_ConnectService | ( | void | ) |
Connect the current client thread to the service providing this API.
This function must be called before any other functions in this API. Normally, it's automatically called for the main thread, but must be explicitly called for other threads. For details, see Client-specific Functions.
This function is created automatically.
void le_ips_DisconnectService | ( | void | ) |
Disconnect the current client thread from the service providing this API.
Normally, this function doesn't need to be called. After this function is called, there's no longer a connection to the service, and the functions in this API can't be used. For details, see Client-specific Functions.
This function is created automatically.
le_result_t le_ips_GetInputVoltage | ( | uint32_t * | inputVoltagePtr | ) |
Get the Platform input voltage in [mV].
[out] | inputVoltagePtr | [OUT] The input voltage in [mV] |
le_result_t le_ips_GetVoltageThresholds | ( | uint16_t * | criticalVoltPtr, |
uint16_t * | warningVoltPtr, | ||
uint16_t * | normalVoltPtr, | ||
uint16_t * | hiCriticalVoltPtr | ||
) |
Get the Platform warning and critical input voltage thresholds in [mV].
[out] | criticalVoltPtr | [OUT] The critical input voltage threshold in [mV]. |
[out] | warningVoltPtr | [OUT] The warning input voltage threshold in [mV]. |
[out] | normalVoltPtr | [OUT] The normal input voltage threshold in [mV]. |
[out] | hiCriticalVoltPtr | [IN] The high critical input voltage threshold in [mV]. |
void le_ips_RemoveThresholdEventHandler | ( | le_ips_ThresholdEventHandlerRef_t | addHandlerRef | ) |
Remove handler function for EVENT 'le_ips_ThresholdEvent'
[in] | addHandlerRef |
le_result_t le_ips_SetVoltageThresholds | ( | uint16_t | criticalVolt, |
uint16_t | warningVolt, | ||
uint16_t | normalVolt, | ||
uint16_t | hiCriticalVolt | ||
) |
Set the Platform warning and critical input voltage thresholds in [mV]. When thresholds input voltage are reached, a input voltage event is triggered.
[in] | criticalVolt | [IN] The critical input voltage threshold in [mV]. |
[in] | warningVolt | [IN] The warning input voltage threshold in [mV]. |
[in] | normalVolt | [IN] The normal input voltage threshold in [mV]. |
[in] | hiCriticalVolt | [IN] The high critical input voltage threshold in [mV]. |