Go to the source code of this file.
Legato Temperature Monitoring include file.
Copyright (C) Sierra Wireless Inc. Use of this work is subject to license.
Handler for Temperature event.
- Parameters
-
event | Temperature threshold event reached. |
contextPtr | |
Reference type used by Add/Remove functions for EVENT 'le_temp_ThresholdEvent'
Temperature event type.
Enumerator |
---|
LE_TEMP_PLATFORM_HI_CRITICAL |
High Platform Critical temperature threshold is reached.
|
LE_TEMP_RADIO_HI_CRITICAL |
High Radio Critical temperature threshold is reached.
|
LE_TEMP_PLATFORM_HI_WARNING |
High Platform Warning temperature threshold is reached.
|
LE_TEMP_RADIO_HI_WARNING |
High Radio Warning temperature threshold is reached.
|
LE_TEMP_PLATFORM_NORMAL |
Normal Platform temperature threshold is reached.
|
LE_TEMP_RADIO_NORMAL |
Normal Radio temperature threshold is reached.
|
LE_TEMP_PLATFORM_LOW_WARNING |
Low Platform Warning temperature threshold is reached.
|
LE_TEMP_PLATFORM_LOW_CRITICAL |
Low Platform Critical temperature threshold is reached.
|
Add handler function for EVENT 'le_temp_ThresholdEvent'
This event provides information on Threshold reached.
- Parameters
-
[in] | handlerPtr | |
[in] | contextPtr | |
void le_temp_ConnectService |
( |
void |
| ) |
|
Connect the client to the service
void le_temp_DisconnectService |
( |
void |
| ) |
|
Disconnect the client from the service
le_result_t le_temp_GetPlatformTemperature |
( |
int32_t * |
platformTempPtr | ) |
|
Get the Platform temperature level in degree celsius.
- Returns
- LE_OK The function succeeded.
- LE_FAULT The function failed to get the temperature.
- Parameters
-
[out] | platformTempPtr | [OUT] The Platform temperature level in degree celsius. |
le_result_t le_temp_GetPlatformThresholds |
( |
int32_t * |
lowCriticalTempPtr, |
|
|
int32_t * |
lowWarningTempPtr, |
|
|
int32_t * |
hiWarningTempPtr, |
|
|
int32_t * |
hiCriticalTempPtr |
|
) |
| |
Get the Platform warning and critical temperature thresholds in degree celsius.
- Returns
- LE_OK The function succeeded.
- LE_FAULT The function failed to get the thresholds.
- Parameters
-
[out] | lowCriticalTempPtr | [OUT] The low critical temperature threshold in degree celsius. |
[out] | lowWarningTempPtr | [OUT] The low warning temperature threshold in degree celsius. |
[out] | hiWarningTempPtr | [OUT] The high warning temperature threshold in degree celsius. |
[out] | hiCriticalTempPtr | [OUT] The high critical temperature threshold in degree celsius. |
le_result_t le_temp_GetRadioTemperature |
( |
int32_t * |
radioTempPtr | ) |
|
Get the Radio temperature level in degree celsius.
- Returns
- LE_OK The function succeeded.
- LE_FAULT The function failed to get the temperature.
- Parameters
-
[out] | radioTempPtr | [OUT] The Radio temperature level in degree celsius. |
le_result_t le_temp_GetRadioThresholds |
( |
int32_t * |
hiWarningTempPtr, |
|
|
int32_t * |
hiCriticalTempPtr |
|
) |
| |
Get the Radio warning and critical temperature thresholds in degree celsius.
- Returns
- LE_OK The function succeeded.
- LE_FAULT The function failed to get the thresholds.
- Parameters
-
[out] | hiWarningTempPtr | [OUT] The high warning temperature threshold in degree celsius. |
[out] | hiCriticalTempPtr | [OUT] The high critical temperature threshold in degree celsius. |
Remove handler function for EVENT 'le_temp_ThresholdEvent'
- Parameters
-
le_result_t le_temp_SetPlatformThresholds |
( |
int32_t |
lowCriticalTemp, |
|
|
int32_t |
lowWarningTemp, |
|
|
int32_t |
hiWarningTemp, |
|
|
int32_t |
hiCriticalTemp |
|
) |
| |
Set the Platform warning and critical temperature thresholds in degree celsius. When thresholds temperature are reached, a temperature event is triggered.
- Returns
- LE_OK The function succeeded.
- LE_BAD_PARAMETER The hiWarning threshold + 1 is equal to or higher than the hiCritical threshold. The loWwarning threshold is equal to or higher than the hiWarning threshold. The loWwarning threshold is equal to or lower than the loCritical threshold.
- LE_FAULT The function failed to set the thresholds.
- Parameters
-
[in] | lowCriticalTemp | [IN] The low critical temperature threshold in degree celsius. |
[in] | lowWarningTemp | [IN] The low warning temperature threshold in degree celsius. |
[in] | hiWarningTemp | [IN] The high warning temperature threshold in degree celsius. |
[in] | hiCriticalTemp | [IN] The high critical temperature threshold in degree celsius. |
le_result_t le_temp_SetRadioThresholds |
( |
int32_t |
hiWarningTemp, |
|
|
int32_t |
hiCriticalTemp |
|
) |
| |
Set the Radio warning and critical temperature thresholds in degree celsius. When thresholds temperature are reached, a temperature event is triggered.
- Returns
- LE_OK The function succeeded.
- LE_BAD_PARAMETER The hiWarning threshold + 1 is equal to or higher than the hiCritical threshold.
- LE_FAULT The function failed to set the thresholds.
- Parameters
-
[in] | hiWarningTemp | [IN] The high warning temperature threshold in degree celsius. |
[in] | hiCriticalTemp | [IN] The high critical temperature threshold in degree celsius. |