Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -rbbcdba8850dd6f6a53044eca6a5ece611654653a -r3b3833a0b1aed89f1ff66104519f658f5a41fa99 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision bbcdba8850dd6f6a53044eca6a5ece611654653a) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 3b3833a0b1aed89f1ff66104519f658f5a41fa99) @@ -214,7 +214,7 @@ U16 fpgaDGPCurrentFeedback; ///< Reg 409. Fresh dialysate pump current feedback U16 fpgaSDPCurrentFeedback; ///< Reg 411. Spent dialysate pump current feedback U08 fpgaDGPHallStatus; ///< Reg 413. Fresh dialysate pump hall sensor direction status - U08 fpgaSDPHallStatus; ///< Reg 413. Spent dialysate pump hall sensor direction status + U08 fpgaSDPHallStatus; ///< Reg 414. Spent dialysate pump hall sensor direction status } DD_FPGA_SENSORS_T; typedef struct @@ -290,6 +290,8 @@ U08 fpgaBloodLeakSensorTest; ///< Reg 118. Blood leak sensor test U08 fpgaBloodLeakUARTControl; ///< Reg 119. Blood leak sensor UART control U08 fpgaBloodLeakFIFOTx; ///< Reg 120. Blood leak sensor FIFO transmit control + U08 fpgaPrimaryHeaterPWMControl; ///< Reg 121. Primary heater PWM control + U08 fpgaTrimmerHeaterPWMControl; ///< Reg 122. Trimmer heater PWM control } FPGA_ACTUATORS_T; #pragma pack(pop) @@ -1227,6 +1229,34 @@ /*********************************************************************//** * @brief + * The setFPGAPrimaryHeaterPWMControl function sets the primary heater + * PWM input. + * @details \b Inputs: none + * @details \b Outputs: fpgaPrimaryHeaterPWMControl + * @param control the PWM dutycycle to control the heater + * @return none + *************************************************************************/ +void setFPGAPrimaryHeaterPWMControl( U08 control ) +{ + fpgaActuatorSetPoints.fpgaPrimaryHeaterPWMControl = control; +} + +/*********************************************************************//** + * @brief + * The setFPGATrimmerHeaterPWMControl function sets the trimmer heater + * PWM input. + * @details \b Inputs: none + * @details \b Outputs: fpgaTrimmerHeaterPWMControl + * @param control the PWM dutycycle to control the heater + * @return none + *************************************************************************/ +void setFPGATrimmerHeaterPWMControl( U08 control ) +{ + fpgaActuatorSetPoints.fpgaTrimmerHeaterPWMControl = control; +} + +/*********************************************************************//** + * @brief * The getFPGAVersions function gets the FPGA version numbers. * @details \b Inputs: fpgaHeader * @details \b Outputs: none