Index: firmware/App/Services/NVRecordsDD.h =================================================================== diff -u -r2e65cae607c3ee68326f82d6134b0de3777559f9 -rb925bf251dfd5584a0839cee93ccf8566a0ec2fb --- firmware/App/Services/NVRecordsDD.h (.../NVRecordsDD.h) (revision 2e65cae607c3ee68326f82d6134b0de3777559f9) +++ firmware/App/Services/NVRecordsDD.h (.../NVRecordsDD.h) (revision b925bf251dfd5584a0839cee93ccf8566a0ec2fb) @@ -69,7 +69,7 @@ } PROCESS_RECORD_SPECS_T; /// Enum for all the subcomponents for the DD calibration record -typedef enum DD_Cal_Records_components +typedef enum DD_Cal_Records_Type { DD_CAL_RECORD_PRESSURE_SENSOR = 0, ///< Index for pressure sensors calibration data. DD_CAL_RECORD_TEMPERATURE_SENSOR, ///< Index for temperature sensors calibration data. @@ -81,10 +81,10 @@ DD_CAL_RECORD_ACCELEROMETER_SENSOR, ///< Index for accelerometers calibration data. DD_CAL_RECORD_BLLOD_LEAK_SENSOR, ///< Index for blood leak sensor calibration data. NUM_OF_CAL_RECORD_COMPONENTS ///< Total number of components in calibration record -}DD_CAL_REC_COMPONENTS; +}DD_CAL_REC_TYPE; /// Enum for all the subcomponents for the DD institutional record -typedef enum DD_Instit_Records_components +typedef enum DD_Instit_Records_Type { DD_INSTIT_MIN_DIALYSATE_FLOW_MLPM = 0, ///< Index for Min dialysate flow in mL/min. DD_INSTIT_MAX_DIALYSATE_FLOW_MLPM, ///< Index for Max dialysate flow in mL/min. @@ -111,7 +111,7 @@ DD_INSTIT_CALIBRATION_TIME, ///< Index for Calibration time in epoch. DD_INSTIT_CRC, ///< Index for CRC of the institutional record. NUM_OF_DD_INSTIT_RECORD_COMPONENTS ///< Total number of components in institutional record -}DD_INSTIT_REC_COMPONENTS; +}DD_INSTIT_REC_TYPE; /// DD available NV data to get typedef enum DD_nv_commands @@ -343,14 +343,17 @@ void initNVRecordsDD( void ); SELF_TEST_STATUS_T execNVMRecordsSelfTest( void ); PROCESS_RECORD_SPECS_T getProcessRecord( NVM_RECORD_TYPE_T job ); -PROCESS_RECORD_SPECS_T getTemporaryRxRecord( NVM_RECORD_TYPE_T job ); void benignPolynomialCalRecord( POLYNOMIAL_CAL_PAYLOAD_T* record ); BOOL setLastDisinfectDate( DD_USAGE_INFO_ITEMS_T disinfect, U32 epochTime ); BOOL setServiceTime( void ); U32 getMinRORejectionRatioInInstitRecordPCT( void ); F32 getMinInletWaterConductivityLimitInstitRecordUSPCM( void ); BOOL getNVMRecord( NV_DATA_T nvData, U08* bufferAddress, U32 bufferLength, U08 numOfSnsrs2Check, ALARM_ID_T nvAlarm ); +BOOL setNVMRecord( NVM_RECORD_TYPE_T recType, U08* bufferAddress ); +BOOL setNVMCalRecord(DD_CAL_REC_TYPE calRecType, U08* bufferAddress, U08 idx); +BOOL setNVMInstitRecord(DD_INSTIT_REC_TYPE institRecType, U08 *valuePtr); +void sendNVEvent( NVM_RECORD_TYPE_T recType, U32 d1, U32 d2 ); void updateNVSelfTestResult( SELF_TEST_STATUS_T result ); void updateNVSelfTestState( NVM_SELF_TEST_STATE_T state ); void updateSelfTestReadRecordsFlag ( BOOL value );