Index: firmware/App/Services/FpgaTD.c =================================================================== diff -u -rd9b5f588d81e15ed3849222bed3362e15dbf4b0a -r87d705fcf977af12b7b034735fa5867f2daea2b9 --- firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision d9b5f588d81e15ed3849222bed3362e15dbf4b0a) +++ firmware/App/Services/FpgaTD.c (.../FpgaTD.c) (revision 87d705fcf977af12b7b034735fa5867f2daea2b9) @@ -413,14 +413,14 @@ /*********************************************************************//** * @brief - * The setBloodPumpEnabled function enables or disables the blood pump per + * The setBPEnabled function enables or disables the blood pump per * the given flag. * @details \b Inputs: none * @details \b Outputs: Blood pump enabled or disabled (bit 0 of BP control register) * @param enable TRUE if BP enable is requested, FALSE if BP disable is requested * @return none *************************************************************************/ -void setBloodPumpEnabled( BOOL enable ) +void setBPEnabled( BOOL enable ) { if ( TRUE == enable ) { @@ -434,7 +434,7 @@ /*********************************************************************//** * @brief - * The setBloodPumpDirection function sets the direction for the blood pump + * The setBPDirection function sets the direction for the blood pump * motor to the given direction. * @details \b Inputs: none * @details \b Outputs: Blood pump motor direction is set (bit 1 of BP control register). @@ -443,7 +443,7 @@ * @param dir the desired direction for the blood pump motor (fwd or rev) * @return none *************************************************************************/ -void setBloodPumpDirection( MOTOR_DIR_T dir ) +void setBPDirection( MOTOR_DIR_T dir ) { if ( MOTOR_DIR_REVERSE == dir ) { @@ -457,55 +457,55 @@ /*********************************************************************//** * @brief - * The homeBloodPump function sets the bit requesting that the blood pump + * The homeBP function sets the bit requesting that the blood pump * be homed. * @details \b Inputs: none * @details \b Outputs: BP home request is set (bit 2 of BP control register). * @return none *************************************************************************/ -void homeBloodPump( void ) +void homeBP( void ) { fpgaActuatorSetPoints.BPControl |= FPGA_BP_HOME_BIT_MASK; } /*********************************************************************//** * @brief - * The resetBloodPumpHomeRequest function resets the fpga blood pump home + * The resetBPHomeRequest function resets the fpga blood pump home * request. * @note This function should be called after request is made and transmission * to FPGA is complete. * @details \b Inputs: none * @details \b Outputs: BP home request is cleared (bit 2 of BP control register) * @return none *************************************************************************/ -void resetBloodPumpHomeRequest( void ) +void resetBPHomeRequest( void ) { fpgaActuatorSetPoints.BPControl &= ~((U08)FPGA_BP_HOME_BIT_MASK); } /*********************************************************************//** * @brief - * The setBloodPumpSetSpeed function sets the fpga blood pump set speed + * The setBPSetSpeed function sets the fpga blood pump set speed * to the given speed (0..3000 RPM). * @details \b Inputs: none * @details \b Outputs: BP set speed is set * @param rpm the set point for the BP speed (in RPM). * @return none *************************************************************************/ -void setBloodPumpSetSpeed( U16 rpm ) +void setBPSetSpeed( U16 rpm ) { fpgaActuatorSetPoints.BPSetSpeed = rpm; } /*********************************************************************//** * @brief - * The getBloodPumpSpeed function gets the latest blood pump speed (in RPM) + * The getBPSpeed function gets the latest blood pump speed (in RPM) * from the FPGA. * @details \b Inputs: fpgaSensorReadings * @details \b Outputs: none * @return Latest blood pump speed. *************************************************************************/ -U16 getBloodPumpSpeed( void ) +U16 getBPSpeed( void ) { return fpgaSensorReadings.BPSpeed; }