Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: common/utils.c
- Revision:
- 32:52445bef314d
- Parent:
- 23:bb685f35b08b
- Child:
- 39:e255f52072fc
--- a/common/utils.c Wed Oct 23 16:18:50 2019 +0000
+++ b/common/utils.c Fri Oct 25 05:08:19 2019 +0000
@@ -101,32 +101,20 @@
ADMW_LOG_INFO("\t\t\tLast Alert Code: %u (0x%X)",
pStatus->channelAlertCodes[i],
pStatus->channelAlertCodes[i]);
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_TIMEOUT)
- ADMW_LOG_INFO("\t\t\tTimeout alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_UNDER_RANGE)
- ADMW_LOG_INFO("\t\t\tUnder Range alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_OVER_RANGE)
- ADMW_LOG_INFO("\t\t\tOver Range alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_LOW_LIMIT)
- ADMW_LOG_INFO("\t\t\tLow limit alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_HIGH_LIMIT)
- ADMW_LOG_INFO("\t\t\tHigh Limit alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_SENSOR_OPEN)
- ADMW_LOG_INFO("\t\t\tSensor Fault alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_REF_DETECT)
- ADMW_LOG_INFO("\t\t\tReference Detection alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_CONFIG_ERR)
- ADMW_LOG_INFO("\t\t\tConfiguration Error alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_LUT_ERR)
- ADMW_LOG_INFO("\t\t\tLook-Up Table Error alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_SENSOR_NOT_READY)
- ADMW_LOG_INFO("\t\t\tSensor Not Ready alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_COMP_NOT_READY)
- ADMW_LOG_INFO("\t\t\tCompensation Channel Not Ready alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_LUT_UNDER_RANGE)
- ADMW_LOG_INFO("\t\t\tUnder Look-Up Table Range alert detected");
- if (pStatus->channelAlerts[i] & ADMW_CHANNEL_ALERT_LUT_OVER_RANGE)
- ADMW_LOG_INFO("\t\t\tOver Look-Up Table Range alert detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_ADC_NEAR_OVERRANGE)
+ ADMW_LOG_INFO("\t\t\ADC near overrange detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_SENSOR_UNDERRANGE)
+ ADMW_LOG_INFO("\t\t\tSensor underrange detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_SENSOR_OVERRANGE)
+ ADMW_LOG_INFO("\t\t\tSensor overrange detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_CJ_SOFT_FAULT)
+ ADMW_LOG_INFO("\t\t\tCJC soft fault alert detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_CJ_HARD_FAULT)
+ ADMW_LOG_INFO("\t\t\tCJC hard fault alert detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_ADC_INPUT_OVERRANGE)
+ ADMW_LOG_INFO("\t\t\tADC input overranage alert detected");
+ if (pStatus->channelAlerts[i] & ADMW_ALERT_DETAIL_CH_SENSOR_HARDFAULT)
+ ADMW_LOG_INFO("\t\t\tChannel sensor hardfault alert detected");
}
}