CORDET Framework - C2 Implementation
|
Implementation of temperature monitoring module. More...
Go to the source code of this file.
Functions | |
void | CrDaTempMonitoringEnable (FwSmDesc_t smDesc) |
Enable temperature monitoring. More... | |
void | CrDaTempMonitoringDisable (FwSmDesc_t smDesc) |
Disable temperature monitoring. More... | |
void | CrDaTempMonitoringSetTempLimit (FwSmDesc_t smDesc) |
Set the limit against the temperature is monitored. More... | |
void | CrDaTempMonitoringExec (char temp, CrFwDestSrc_t appId) |
Execute a temperature monitoring action on the argument temperature. More... | |
Variables | |
static int | tempLimit = 0 |
The temperature limit. | |
static CrFwBool_t | isTempMonitoringEnabled = 0 |
The enable status of temperature monitoring. | |
Implementation of temperature monitoring module.
This file is part of the CORDET Framework.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
For information on alternative licensing, please contact P&P Software GmbH.
Definition in file CrDemoSlave2/CrDaTempMonitor.c.
void CrDaTempMonitoringDisable | ( | FwSmDesc_t | smDesc | ) |
Disable temperature monitoring.
This function is intended to be used as progress action for the InCommand which disables temperature monitoring.
smDesc | the InCommand state machine descriptor (this argument is required for compatibility with the CrFwInCmdProgressAction_t prototype) |
Definition at line 67 of file CrDemoSlave2/CrDaTempMonitor.c.
void CrDaTempMonitoringEnable | ( | FwSmDesc_t | smDesc | ) |
Enable temperature monitoring.
This function is intended to be used as progress action for the InCommand which enables temperature monitoring.
smDesc | the InCommand state machine descriptor (this argument is required for compatibility with the CrFwInCmdProgressAction_t prototype) |
Definition at line 62 of file CrDemoSlave2/CrDaTempMonitor.c.
void CrDaTempMonitoringExec | ( | char | temp, |
CrFwDestSrc_t | appId | ||
) |
Execute a temperature monitoring action on the argument temperature.
If temperature monitoring is disabled, this function returns without doing anything. If temperature monitoring is enabled, this function compares the argument temperature with its temperature limit and if it finds that the argument temperature exceeds its limit, it generates a "temperature limit violated" report to the Master Application.
This function would normally be called periodically by the host application.
temp | the temperature to be monitored (an integer in the range 0 to 127) |
appId | the identifier of the application which is performing the monitoring (either Slave 1 or Slave 2) |
Definition at line 78 of file CrDemoSlave2/CrDaTempMonitor.c.
void CrDaTempMonitoringSetTempLimit | ( | FwSmDesc_t | smDesc | ) |
Set the limit against the temperature is monitored.
This function is intended to be used as progress action for the InCommand which set the temperature monitoring limit.
smDesc | the InCommand state machine descriptor (this argument is required for compatibility with the CrFwInCmdProgressAction_t prototype) |
Definition at line 72 of file CrDemoSlave2/CrDaTempMonitor.c.