Index: firmware/App/Monitors/BloodLeak.c =================================================================== diff -u -re581f1fc8ebdcb834799d936357b1f17a06b741c -r03d752c607e90f52e2f0b05a2ebd01283ed3f033 --- firmware/App/Monitors/BloodLeak.c (.../BloodLeak.c) (revision e581f1fc8ebdcb834799d936357b1f17a06b741c) +++ firmware/App/Monitors/BloodLeak.c (.../BloodLeak.c) (revision 03d752c607e90f52e2f0b05a2ebd01283ed3f033) @@ -247,8 +247,8 @@ /*********************************************************************//** * @brief * The initBloodLeak function initializes the Blood Leak module. - * @details Inputs: none - * @details Outputs: bloodLeakState, bloodLeakStatus, bloodLeakSelfTestStatus, + * @details \b Inputs: none + * @details \b Outputs: bloodLeakState, bloodLeakStatus, bloodLeakSelfTestStatus, * bloodLeakUARTCmdIndex, bloodLeakSetPointSequence * bloodLeakDataPublicationTimerCounter, bloodLeakEmbModeHasZeroBeenRqustd * bloodLeakEmbModeSubstate, bloodLeakEmbModeCmdEnqueueCount @@ -325,13 +325,14 @@ /*********************************************************************//** * @brief * The execBloodLeak function executes the blood leak detector driver. - * @details Inputs: bloodLeakState - * @details Outputs: bloodLeakCalRecord, bloodLeakState + * @details \b Inputs: bloodLeakState + * @details \b Outputs: bloodLeakCalRecord, bloodLeakState + * @details \b Alarm: ALARM_ID_DD_SOFTWARE_FAULT when in an unknown state * @return none *************************************************************************/ void execBloodLeak( void ) { - //if ( TRUE == isNewCalibrationRecordAvailable() ) + //if ( TRUE == isNewCalibrationRecordAvailable() ) // TODO uncomment when non-volatile memory has been implemented //{ // U32 length = sizeof( HD_BLOOD_LEAK_SENSOR_CAL_RECORD_T ); // @@ -386,8 +387,9 @@ * @brief * The execBloodLeakEmbModeCommand function executes the blood leak embedded * mode command. - * @details Inputs: bloodLeakEmbModeSubstate - * @details Outputs: bloodLeakEmbModeSubstate + * @details \b Inputs: bloodLeakEmbModeSubstate + * @details \b Outputs: bloodLeakEmbModeSubstate + * @details \b Alarm: ALARM_ID_DD_SOFTWARE_FAULT when in an unknown state * @return none *************************************************************************/ void execBloodLeakEmbModeCommand( void ) @@ -417,9 +419,10 @@ * @brief * The zeroBloodLeak function requests that the Blood Leak Detector be * zeroed. - * @details Inputs: bloodLeakEmbModeCmdEnqueueCount - * @details Outputs: bloodLeakEmbModeHasZeroBeenRqustd, + * @details \b Inputs: bloodLeakEmbModeCmdEnqueueCount + * @details \b Outputs: bloodLeakEmbModeHasZeroBeenRqustd, * bloodLeakEmbModeCmdEnqueueCount, bloodLeakSelfTestStatus + * @details \b Alarm: ALARM_ID_DD_SOFTWARE_FAULT when there not enough queues available * @return TRUE if the zero commands were successfully queued otherwise, FALSE *************************************************************************/ BOOL zeroBloodLeak( void ) @@ -455,8 +458,8 @@ * @brief * The zeroBloodLeakReset function resets the commandRqstCount for all the * zero blood leak commands. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none * @return none *************************************************************************/ void zeroBloodLeakReset( void ) @@ -471,8 +474,8 @@ * @brief * The hasBloodLeakZeroSequenceFailed function returns TURE if the number * of times the zero sequence has failed. - * @details Inputs: bloodLeakEmbModeCmd - * @details Outputs: none + * @details \b Inputs: bloodLeakEmbModeCmd + * @details \b Outputs: none * @return TRUE if zero sequence failed otherwise, FALSE *************************************************************************/ BOOL hasBloodLeakZeroSequenceFailed( void ) @@ -489,8 +492,8 @@ * @brief * The getBloodLeakStatus function gets the current reading for the blood * leak detector. - * @details Inputs: bloodLeakStatus - * @details Outputs: none + * @details \b Inputs: bloodLeakStatus + * @details \b Outputs: none * @return the current blood leak status. *************************************************************************/ BLOOD_LEAK_STATUS_T getBloodLeakStatus( void ) @@ -504,8 +507,8 @@ * @brief * The getBloodLeakSelfTestStatus function gets the status for the blood * leak detector self-test. - * @details Inputs: bloodLeakSelfTestStatus - * @details Outputs: none + * @details \b Inputs: bloodLeakSelfTestStatus + * @details \b Outputs: none * @return status of blood leak detector self-test. *************************************************************************/ SELF_TEST_STATUS_T getBloodLeakSelfTestStatus( void ) @@ -517,8 +520,8 @@ * @brief * The isBloodLeakZeroingNeeded function checks whether blood leak zeroing * is needed in terms of drift. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none * @return TRUE if blood leak zeroing is needed otherwise, FALSE *************************************************************************/ BOOL isBloodLeakZeroingNeeded( void ) @@ -549,8 +552,8 @@ * @brief * The exitBloodLeakNormalState requests that the blood leak sensor to exit * its normal state. - * @details Inputs: bloodLeakState - * @details Outputs: bloodLeakExitNormalRequested + * @details \b Inputs: bloodLeakState + * @details \b Outputs: bloodLeakExitNormalRequested * @return none *************************************************************************/ void exitBloodLeakNormalState( void ) @@ -564,8 +567,10 @@ /*********************************************************************//** * @brief * The execBloodLeakSelfTest function executes the blood leak self-test. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none + * @details \b Alarm: ALARM_ID_DD_BLOOD_LEAK_INVALID_CAL_RECORD when the + * calibration record is not available. * @return blood leak self test results (SELF_TEST_STATUS_T) *************************************************************************/ SELF_TEST_STATUS_T execBloodLeakSelfTest( void ) @@ -592,8 +597,10 @@ * @brief * The handleBloodLeakWaitForPostState function handles the wait for POST * state of the of blood leak state machine. - * @details Inputs: bloodLeakEmbModeCmd - * @details Outputs: bloodLeakEmbModeCmd + * @details \b Inputs: bloodLeakEmbModeCmd + * @details \b Outputs: bloodLeakEmbModeCmd + * @details \b Alarm: ALARM_ID_DD_BLOOD_LEAK_SENSOR_EMBEDDED_MODE_FAILURE if + * the embedded mode was not started correctly. * @return next state *************************************************************************/ static BLOOD_LEAK_STATE_T handleBloodLeakWaitForPostState( void ) @@ -622,7 +629,7 @@ } } - if ( /*( getCurrentOperationMode() != MODE_INIT ) &&*/ ( TRUE == isEmbModeReady ) ) // TODO uncomment + if ( ( getCurrentOperationMode() != MODE_INIT ) && ( TRUE == isEmbModeReady ) ) { resetEmbModeCmdRqstCount( CS_EMB_MODE_CMD ); state = BLOOD_LEAK_CHECK_SET_POINT_STATE; @@ -635,8 +642,11 @@ * @brief * The handleBloodLeakCheckSetPointState function handles the check set point * state to ensure the set point is set correctly. - * @details Inputs: bloodLeakCalRecord - * @details Outputs: bloodLeakCalRecord + * @details \b Inputs: bloodLeakCalRecord + * @details \b Outputs: bloodLeakCalRecord + * @details \b Alarm: ALARM_ID_DD_BLOOD_LEAK_SENSOR_SET_POINT_SET_FAILURE if + * the blood leak detector's set point does not match with the set point in + * the calibration record. * @return next state *************************************************************************/ static BLOOD_LEAK_STATE_T handleBloodLeakCheckSetPointState( void ) @@ -673,8 +683,8 @@ * @brief * The handleBloodLeakInitState function handles the Blood Leak module in init * state. - * @details Inputs: bloodLeakEmbModeHasZeroBeenRqustd - * @details Outputs: none + * @details \b Inputs: bloodLeakEmbModeHasZeroBeenRqustd + * @details \b Outputs: none * @return next state *************************************************************************/ static BLOOD_LEAK_STATE_T handleBloodLeakInitState( void ) @@ -695,8 +705,8 @@ * @brief * The handleBloodLeakCheckZeroAndSelfTestState function handles the blood * leak check zero and self test state. - * @details Inputs: bloodLeakEmbModeCmd - * @details Outputs: bloodLeakEmbModeCmd, bloodLeakEmbModeHasZeroBeenRqustd, + * @details \b Inputs: bloodLeakEmbModeCmd + * @details \b Outputs: bloodLeakEmbModeCmd, bloodLeakEmbModeHasZeroBeenRqustd, * bloodLeakSelfTestStatus * @return next state *************************************************************************/ @@ -779,8 +789,8 @@ * @brief * The handleBloodLeakVerifyIntensityAfterZeroingState function checks the * blood leak sensor's intensity after zeroing the sensor. - * @details Inputs: bloodLeakEmbModeCmd - * @details Outputs: bloodLeakSelfTestStatus + * @details \b Inputs: bloodLeakEmbModeCmd + * @details \b Outputs: bloodLeakSelfTestStatus * @return next state *************************************************************************/ static BLOOD_LEAK_STATE_T handleBloodLeakVerifyIntensityAfterZeroingState( void ) @@ -817,11 +827,15 @@ * @brief * The handleBloodLeakNormalState function handles the Blood Leak module * in normal state. - * @details Inputs: bloodLeakStatus, bloodLeakPersistenceCtr, + * @details \b Inputs: bloodLeakStatus, bloodLeakPersistenceCtr, * bloodLeakExitNormalRequested - * @details Outputs: bloodLeakStatus, bloodLeakPersistenceCtr, + * @details \b Outputs: bloodLeakStatus, bloodLeakPersistenceCtr, * bloodLeakExitNormalRequested, bloodLeakEmbModeHasZeroBeenRqustd, * bloodLeakRecoveryStartTimeMS + * @details \b Alarm: ALARM_ID_DD_BLOOD_LEAK_DETECTED if blood has been + * detected during treatment + * @details \b Alarm: ALARM_ID_DD_BLOOD_LEAK_RECOVERING_PLEASE_WAIT if blood + * has been detected during treatment * @return next state *************************************************************************/ static BLOOD_LEAK_STATE_T handleBloodLeakNormalState( void ) @@ -887,11 +901,13 @@ * @brief * The handleBloodLeakRecoverBloodDetectState function handles the blood * leak recover blood detect state. - * @details Inputs: bloodLeakStatus, bloodLeakRecoveryStartTimeMS, + * @details \b Inputs: bloodLeakStatus, bloodLeakRecoveryStartTimeMS, * bloodLeakEmbModeHasZeroBeenRqustd, bloodLeakExitNormalRequested - * @details Outputs: bloodLeakStatus, bloodLeakRecoveryStartTimeMS, + * @details \b Outputs: bloodLeakStatus, bloodLeakRecoveryStartTimeMS, * bloodLeakPersistenceCtr, bloodLeakEmbModeHasZeroBeenRqustd, * bloodLeakExitNormalRequested + * @details \b Alarm: ALARM_ID_DD_BLOOD_LEAK_RECOVERING_PLEASE_WAIT if blood + * has been detected during treatment * @return next state *************************************************************************/ static BLOOD_LEAK_STATE_T handleBloodLeakRecoverBloodDetectState( void ) @@ -938,10 +954,12 @@ * The handleBloodLeakEmbModeWaitForCommandState function handles the wait for * command state. The state prepares the message to be sent to the blood leak * sensor. - * @details Inputs: bloodLeakEmbModeRqstedCmd, bloodLeakEmbModeCmd - * @details Outputs: bloodLeakEmbModeRqstedCmd, bloodLeakEmbModeCmdSeq, + * @details \b Inputs: bloodLeakEmbModeRqstedCmd, bloodLeakEmbModeCmd + * @details \b Outputs: bloodLeakEmbModeRqstedCmd, bloodLeakEmbModeCmdSeq, * bloodLeakUARTCmdIndex, bloodLeakEmbModeRespIndex, bloodLeakEmbModeCmdSeqLength, * bloodLeakEmbModeOpsStartTime, bloodLeakEmbModeSetPoint, bloodLeakEmbModeRespBuffer + * @details \b Alarm: ALARM_ID_DD_SOFTWARE_FAULT if incorrect blood leak command has + * been selected * @return next state *************************************************************************/ static BLOOD_LEAK_EMB_MODE_STATE_T handleBloodLeakEmbModeWaitForCommandState( void ) @@ -1023,11 +1041,13 @@ * @brief * The handleBloodLeakEmbModeSendCommandState function handles the send command * state. The state sends the command sequence to the blood leak sensor one by one. - * @details Inputs: bloodLeakEmbModeRqstedCmd, bloodLeakCalCharacter, bloodLeakUARTCmdIndex + * @details \b Inputs: bloodLeakEmbModeRqstedCmd, bloodLeakCalCharacter, bloodLeakUARTCmdIndex * bloodLeakEmbModeCmdSeqLength - * @details Outputs: bloodLeakEmbModeRqstedCmd, bloodLeakCalCommandSquence, + * @details \b Outputs: bloodLeakEmbModeRqstedCmd, bloodLeakCalCommandSquence, * bloodLeakUARTCmdIndex, bloodLeakEmbModeCmdSeqLength, bloodLeakEmbModeCmdSeqLength, * bloodLeakSetPointSequence + * @details \b Alarm: ALARM_ID_DD_SOFTWARE_FAULT if incorrect blood leak command has + * been selected * @return next state *************************************************************************/ static BLOOD_LEAK_EMB_MODE_STATE_T handleBloodLeakEmbModeSendCommandState( void ) @@ -1119,9 +1139,9 @@ * @brief * The handleBloodLeakEmbModeWaitForCommandResponseState function handles the * wait for command responses state. The state receives data in the buffer. - * @details Inputs: bloodLeakEmbModeHasRxRqstBeenSent, bloodLeakEmbModeRespBuffer, + * @details \b Inputs: bloodLeakEmbModeHasRxRqstBeenSent, bloodLeakEmbModeRespBuffer, * bloodLeakEmbModeRespIndex, bloodLeakEmbModeRqstedCmd, bloodLeakEmbModeOpsStartTime - * @details Outputs: bloodLeakEmbModeCmd, bloodLeakEmbModeRqstedCmd, + * @details \b Outputs: bloodLeakEmbModeCmd, bloodLeakEmbModeRqstedCmd, * bloodLeakEmbModeCmdSeq, bloodLeakEmbModeRespBuffer * @return next state *************************************************************************/ @@ -1231,8 +1251,8 @@ * @brief * The processReceivedEmbModeChar function processes the character that * has been received. - * @details Inputs: bloodLeakEmbModeCmd, bloodLeakEmbModeRespIndex - * @details Outputs: bloodLeakEmbModeRespBuffer, bloodLeakEmbModeRespIndex + * @details \b Inputs: bloodLeakEmbModeCmd, bloodLeakEmbModeRespIndex + * @details \b Outputs: bloodLeakEmbModeRespBuffer, bloodLeakEmbModeRespIndex * @param data which is the data that has been received from the BLD * @return none *************************************************************************/ @@ -1301,8 +1321,8 @@ * @brief * The convertString2Integer function converts the buffer of the answers in * string (ASCII) to integer. - * @details Inputs: bloodLeakEmbModeCmd - * @details Outputs: bloodLeakEmbModeRespBuffer, bloodLeakEmbModeCmd + * @details \b Inputs: bloodLeakEmbModeCmd + * @details \b Outputs: bloodLeakEmbModeRespBuffer, bloodLeakEmbModeCmd * @param cmd which is the embedded mode command * @param respLength the length of the received response from the sensor * @return none @@ -1346,8 +1366,8 @@ * @brief * The prepareSetPointSeq function prepares the set point sequence to be * written to the blood leak sensor. - * @details Inputs: none - * @details Outputs: bloodLeakSetPointSequence, bloodLeakSetPointSeqLength + * @details \b Inputs: none + * @details \b Outputs: bloodLeakSetPointSequence, bloodLeakSetPointSeqLength * @param setPoint the set point that has to be prepared to be sent to the sensor * @return none *************************************************************************/ @@ -1421,9 +1441,10 @@ /*********************************************************************//** * @brief * The publishBloodLeakData function publishes blood leak data at the set interval. - * @details Inputs: bloodLeakDataPublicationTimerCounter - * @details Outputs: bloodLeakDataPublicationTimerCounter, bloodLeakPersistenceCtr, + * @details \b Inputs: bloodLeakDataPublicationTimerCounter + * @details \b Outputs: bloodLeakDataPublicationTimerCounter, bloodLeakPersistenceCtr, * bloodLeakState, bloodLeakZeroingStatus + * @details \b Message: MSG_ID_DD_BLOOD_LEAK_DATA DD blood leak broadcast message * @return none *************************************************************************/ static void publishBloodLeakData( void ) @@ -1454,8 +1475,8 @@ * @brief * The initEmbModeSpecs function initializes the embedded mode specifications * structure. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeCmd + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeCmd * @return none *************************************************************************/ static void initEmbModeSpecs( void ) @@ -1563,8 +1584,8 @@ /*********************************************************************//** * @brief * The enqueueEmbModeCmd function enqueues an embedded mode command. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeCmdQRearIndex, bloodLeakEmbModeCmdQCount + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeCmdQRearIndex, bloodLeakEmbModeCmdQCount * bloodLeakEmbModeCmdQ, bloodLeakEmbModeCmd * @param cmd the command to enqueue * @return none @@ -1584,8 +1605,8 @@ * @brief * The resetEmbModeCmdRqstCount function resets embedded mode command request * count. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeCmd + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeCmd * @param cmd the command to reset its request count * @return none *************************************************************************/ @@ -1597,8 +1618,8 @@ /*********************************************************************//** * @brief * The dequeueEmbModeCmd function dequeues the embedded mode command. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeCmdQFrontIndex, bloodLeakEmbModeCmdQCount + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeCmdQFrontIndex, bloodLeakEmbModeCmdQCount * @return command that is dequeued *************************************************************************/ static U08 dequeueEmbModeCmd( void ) @@ -1624,8 +1645,8 @@ * @brief * The isEmbModeCmdQueueEmpty function checks whether the embedded mode command * queue is empty or not. - * @details Inputs: bloodLeakEmbModeCmdQCount - * @details Outputs: none + * @details \b Inputs: bloodLeakEmbModeCmdQCount + * @details \b Outputs: none * @return TRUE if the queue is empty otherwise, FALSE *************************************************************************/ static BOOL isEmbModeCmdQueueEmpty( void ) @@ -1644,8 +1665,8 @@ * @brief * The getAvailableEmbModeQueueCount function returns the available embedded * mode queue count. - * @details Inputs: bloodLeakEmbModeCmdQCount - * @details Outputs: none + * @details \b ts: bloodLeakEmbModeCmdQCount + * @details \b Outputs: none * @return Current available embedded mode queue count *************************************************************************/ static U32 getAvailableEmbModeQueueCount( void ) @@ -1657,9 +1678,9 @@ * @brief * The enqueueInfoEmbModeCmds function enqueues the informative embedded * mode commands. - * @details Inputs: bloodLeakEmbModeInfoCmdEnqueueLastTimeStamp, bloodLeakState, + * @details \b Inputs: bloodLeakEmbModeInfoCmdEnqueueLastTimeStamp, bloodLeakState, * bloodLeakEmbModeInfoCmdCounter - * @details Outputs: bloodLeakEmbModeInfoCmdEnqueueLastTimeStamp, bloodLeakState, + * @details \b Outputs: bloodLeakEmbModeInfoCmdEnqueueLastTimeStamp, bloodLeakState, * bloodLeakEmbModeInfoCmdCounter * @return none *************************************************************************/ @@ -1700,8 +1721,8 @@ * @brief * The getBloodLeakRxBytesAvailable function returns the number of received * bytes available from FPGA. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none * @return Number of received bytes available *************************************************************************/ static U16 getBloodLeakRxBytesAvailable( void ) @@ -1713,8 +1734,8 @@ * @brief * The getFPGABloodDetectProcessedStatus function returns the status of the * blood detect from FPGA meaning the status that is read from the sensor. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none * @return BLOOD_LEAK_NOT_DETECTED if blood has not been detected otherwise, * BLOOD_LEAK_DETECTED *************************************************************************/ @@ -1728,8 +1749,8 @@ * @brief * The isDialysateLineInBypass function checks and returns whether the * dialysate line is in bypass mode or not. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none * @return TRUE if the dialysate line is in bypass otherwise, FALSE *************************************************************************/ static BOOL isDialysateLineInBypass( void ) @@ -1747,8 +1768,8 @@ * @brief * The processBloodLeakIntensityData function calculates the moving average * of blood leak intensity data. - * @details Inputs: none - * @details Outputs: bloodLeakZeroingStatus + * @details \b Inputs: none + * @details \b Outputs: bloodLeakZeroingStatus * @return none *************************************************************************/ static void processBloodLeakIntensityData( void ) @@ -1771,8 +1792,8 @@ * @brief * The resetEmbModeCmdRespConsumedFlag function sets the cmd response ready flag * to false its flag that fresh data is ready. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeCmd + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeCmd * @param cmd the command to signal its data has been consumed * @return none *************************************************************************/ @@ -1785,9 +1806,9 @@ * @brief * The getEmbModeInfoValue function gets the data of the embedded info cmds. * This is only for the info values (I, V). - * @details Inputs: bloodLeakEmbModeIntensityOverride, + * @details \b Inputs: bloodLeakEmbModeIntensityOverride, * bloodLeakEmbModeDetectOverride - * @details Outputs: bloodLeakEmbModeCmd + * @details \b Outputs: bloodLeakEmbModeCmd * @param cmd the command to get the read data * @return the value of the read command *************************************************************************/ @@ -1823,8 +1844,8 @@ * @brief * The isLowerRangeIntensityDriftZeroingNeeded function checks whether blood * leak zeroing is needed in terms of drift in range drift (35-40%). - * @details Inputs: bloodLeakZeroingStatus - * @details Outputs: bloodLeakZeroingStatus + * @details \b Inputs: bloodLeakZeroingStatus + * @details \b Outputs: bloodLeakZeroingStatus * @return TRUE if blood leak zeroing is needed otherwise, FALSE *************************************************************************/ static BOOL isLowerRangeIntensityDriftZeroingNeeded( void ) @@ -1870,8 +1891,8 @@ * @brief * The isUpperIntensityZeroingNeeded function checks whether blood * leak zeroing is needed in terms of drift upper range intensity (>= 950). - * @details Inputs: bloodLeakZeroingStatus - * @details Outputs: bloodLeakZeroingStatus + * @details \b Inputs: bloodLeakZeroingStatus + * @details \b Outputs: bloodLeakZeroingStatus * @return TRUE if blood leak zeroing is needed otherwise, FALSE *************************************************************************/ static BOOL isUpperIntensityZeroingNeeded( void ) @@ -1901,8 +1922,9 @@ * @brief * The sendBloodLeakEmbeddedModeCommandResponse function sends out * the blood leak embedded mode command response. - * @details Inputs: none - * @details Outputs: blood leak embedded mode command response msg constructed and queued + * @details \b Inputs: none + * @details \b Outputs: blood leak embedded mode command response msg constructed and queued + * @details \b Message: MSG_ID_DD_SEND_BLOOD_LEAK_EMB_MODE_RESPONSE DD blood leak response command * @param cmd: the command its response is being sent * @param responseLen: the length of the buffer * @param response: pointer to the response buffer @@ -1965,8 +1987,8 @@ * @brief * The testSetBloodLeak2EmbeddedMode function sets the blood leak driver to the * embedded more for calibration. - * @details Inputs: none - * @details Outputs: bloodLeakSignalEmbeddedModeReq + * @details \b Inputs: none + * @details \b Outputs: bloodLeakSignalEmbeddedModeReq * @param message Override message from Dialin * @return TRUE if switching to embedded mode was accepted otherwise, FALSE *************************************************************************/ @@ -1991,8 +2013,8 @@ * @brief * The testSetBloodLeakEmbeddedModeCommand function sets the blood leak * calibration command. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeSetPoint + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeSetPoint * @param message Override message from Dialin to set the command and the * setpoint payload value * @return TRUE if the command is accepted otherwise, FALSE @@ -2023,8 +2045,8 @@ * @brief * The testBloodLeakEmbeddedModeInfoOverride function overrides the * blood leak embedded mode info values. - * @details Inputs: none - * @details Outputs: bloodLeakEmbModeIntensityOverride, + * @details \b Inputs: none + * @details \b Outputs: bloodLeakEmbModeIntensityOverride, * bloodLeakEmbModeDetectOverride * @param message Override message from Dialin to set the command and the * embedded mode info values @@ -2066,8 +2088,8 @@ * @brief * The testBloodLeakIntensityMovingAverageOverride function overrides the * blood leak intensity moving average. - * @details Inputs: none - * @details Outputs: bloodLeakZeroingStatus + * @details \b Inputs: none + * @details \b Outputs: bloodLeakZeroingStatus * @param message Override message from Dialin to override the blood leak * intensity moving average. * @return TRUE if override successful, FALSE if not @@ -2083,8 +2105,8 @@ * @brief * The testBloodLeakZeroingIntervalInMillisecondsOverride function overrides the * blood leak zeroing interval in milliseconds. - * @details Inputs: none - * @details Outputs: bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS, + * @details \b Inputs: none + * @details \b Outputs: bloodLeakZeroingStatus.zeroingDriftIntervalTimeMS, * bloodLeakZeroingStatus.zeroingUpperRangeIntervalTimeMS * @param message from Dialin to override the blood leak * zeroing interval. @@ -2117,8 +2139,8 @@ * @brief * The testBloodLeakZeroSequenceRequest function requests the blood leak * detector's zero sequence command. - * @details Inputs: none - * @details Outputs: none + * @details \b Inputs: none + * @details \b Outputs: none * @param message from Dialin to request zero sequence * @return TRUE if override successful, FALSE if not *************************************************************************/ Index: firmware/source/sys_main.c =================================================================== diff -u -r9012cfee881655869e21c5fddf51d7517ce5f6ea -r03d752c607e90f52e2f0b05a2ebd01283ed3f033 --- firmware/source/sys_main.c (.../sys_main.c) (revision 9012cfee881655869e21c5fddf51d7517ce5f6ea) +++ firmware/source/sys_main.c (.../sys_main.c) (revision 03d752c607e90f52e2f0b05a2ebd01283ed3f033) @@ -177,6 +177,7 @@ initConcentratePump(); initDialysatePump(); initLevels(); + initBloodLeak(); initCommBuffers(); initMsgQueues(); initSystemComm(); @@ -185,7 +186,6 @@ initTDInterface(); initFPInterface(); initUltrafiltration(); - initBloodLeak(); #ifdef __PUMPTEST__ initPistonPump(); #endif