Index: firmware/App/Services/FPGA.c =================================================================== diff -u -ra3a01327c8fe80f65f6658ae6cbef4910a4a8033 -r9a20996b770f446b8c669cba7a49668c1fdadd67 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision a3a01327c8fe80f65f6658ae6cbef4910a4a8033) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 9a20996b770f446b8c669cba7a49668c1fdadd67) @@ -1314,134 +1314,6 @@ /*********************************************************************//** * @brief - * The enableValvesPIDControl function enables PID on valves per given bit - * mask. - * @details - * Inputs : none - * Outputs : fpgaActuatorSetPoints - * @param enableBits bit mask indicating which valves to enable - * @return none - *************************************************************************/ -void enableValvesPIDControl( U16 enableBits ) -{ - fpgaActuatorSetPoints.fpgaPIDControl = 0x55; // TODO - this looks hard coded - ignoring param - fix this -} - -/*********************************************************************//** - * @brief - * The setDialyzerInletValvePosition function sets the target position for - * the dialyzer inlet valve. - * @details - * Inputs : none - * Outputs : fpgaActuatorSetPoints - * @param setPoint target position for the dialyzer inlet valve - * @return none - *************************************************************************/ -void setDialyzerInletValvePosition( S16 setPoint ) -{ - fpgaActuatorSetPoints.VDiSetPoint = setPoint; -} - -/*********************************************************************//** - * @brief - * The getDialyzerInletValvePosition function gets the last read position - * for the dialyzer inlet valve. - * @details - * Inputs : fpgaSensorReadings - * Outputs : none - * @return last read position of the dialyzer inlet valve - *************************************************************************/ -S16 getDialyzerInletValvePosition( void ) -{ - return fpgaSensorReadings.VDiPosition; -} - -/*********************************************************************//** - * @brief - * The setDialyzerOutletValvePosition function sets the target position for - * the dialyzer outlet valve. - * @details - * Inputs : none - * Outputs : fpgaActuatorSetPoints - * @return none - *************************************************************************/ -void setDialyzerOutletValvePosition( S16 setPoint ) -{ - fpgaActuatorSetPoints.VDoSetPoint = setPoint; -} - -/*********************************************************************//** - * @brief - * The getDialyzerOutletValvePosition function gets the last read position - * for the dialyzer outlet valve. - * @details - * Inputs : fpgaSensorReadings - * Outputs : none - * @return last read position of the dialyzer outlet valve - *************************************************************************/ -S16 getDialyzerOutletValvePosition( void ) -{ - return fpgaSensorReadings.VDoPosition; -} - -/*********************************************************************//** - * @brief - * The setVenousBloodValvePosition function sets the target position for - * the venous blood valve. - * @details - * Inputs : none - * Outputs : fpgaActuatorSetPoints - * @return none - *************************************************************************/ -void setVenousBloodValvePosition( S16 setPoint ) -{ - fpgaActuatorSetPoints.VBVSetPoint = setPoint; -} - -/*********************************************************************//** - * @brief - * The getVenousBloodValvePoistion function gets the last read position - * for the venous blood valve. - * @details - * Inputs : fpgaSensorReadings - * Outputs : none - * @return last read position of the venous blood valve - *************************************************************************/ -S16 getVenousBloodValvePoistion( void ) -{ - return fpgaSensorReadings.VBVPosition; -} - -/*********************************************************************//** - * @brief - * The setArterialBloodValvePosition function sets the target position for - * the arterial blood valve. - * @details - * Inputs : none - * Outputs : fpgaActuatorSetPoints - * @return none - *************************************************************************/ -void setArterialBloodValvePosition( S16 setPoint ) -{ - fpgaActuatorSetPoints.VBASetPoint = setPoint; -} - -/*********************************************************************//** - * @brief - * The getArterialBloodValvePoistion function gets the last read position - * for the arterial blood valve. - * @details - * Inputs : fpgaSensorReadings - * Outputs : none - * @return last read position of the arterial blood valve - *************************************************************************/ -S16 getArterialBloodValvePoistion( void ) -{ - return fpgaSensorReadings.VBAPosition; -} - -/*********************************************************************//** - * @brief * The consumeUnexpectedData function checks to see if a byte is sitting in * the SCI2 received data register. * @details