Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -rd748813399d38ef5b71d760e327e368cc82d7a38 -r1c4e2ce92ecb2e4b4301aba7bd2b869f1116d0f6 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision d748813399d38ef5b71d760e327e368cc82d7a38) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 1c4e2ce92ecb2e4b4301aba7bd2b869f1116d0f6) @@ -996,744 +996,6 @@ /*********************************************************************//** * @brief - * The setFPGAD17CondReset function resets the FPGA Conductivity - * Sensor D17. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD17CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D17_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD17CondReset function clears the reset of FPGA Conductivity - * Sensor D17. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD17CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D17_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD17CondInitEnable function enables the FPGA Conductivity - * Sensor D17 initialzation procedure. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD17CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D17_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD17CondInitEnable function clears the init process of FPGA Conductivity - * Sensor D17. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD17CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D17_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD17CondWriteEnable function enables the FPGA Conductivity - * Sensor D17 write transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @warning: The address (setFPGAD17D74Address) and data (setFPGACD12Data) register - * must be populated before invoking this write enable function to initiate - * write transaction with the sensor. - * @return none - *************************************************************************/ -void setFPGAD17CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D17_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD17CondWriteEnable function clears the write enable of FPGA Conductivity - * Sensor D17. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD17CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D17_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD17CondReadEnable function enables the FPGA Conductivity - * Sensor D17 read transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @warning: The address (setFPGAD17D74Address) register must be populated - * before invoking this read enable function to initiate read transaction - * with the sensor. - * @return none - *************************************************************************/ -void setFPGAD17CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D17_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD17CondReadEnable function clears the read enable of FPGA Conductivity - * Sensor D17. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD17CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D17_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD27CondReset function resets the FPGA Conductivity - * Sensor D27. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD27CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D27_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD27CondReset function clears the reset of FPGA Conductivity - * Sensor D27. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD27CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D27_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD27CondInitEnable function enables the FPGA Conductivity - * Sensor D27 initialzation procedure. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD27CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D27_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD27CondInitEnable function clears the init process of FPGA Conductivity - * Sensor D27. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD27CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D27_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD27CondWriteEnable function enables the FPGA Conductivity - * Sensor D27 write transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @warning: The address (setFPGACD12Address) and data (setFPGACD12Data) register - * must be populated before invoking this write enable function to initiate - * write transaction with the sensor. - * @return none - *************************************************************************/ -void setFPGAD27CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D27_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD27CondWriteEnable function clears the write enable of FPGA Conductivity - * Sensor D27. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD27CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D27_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD27CondReadEnable function enables the FPGA Conductivity - * Sensor D27 read transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @warning: The address (setFPGACD12Address) register must be populated - * before invoking this read enable function to initiate read transaction - * with the sensor. - * @return none - *************************************************************************/ -void setFPGAD27CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D27_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD27CondReadEnable function clears the read enable of FPGA Conductivity - * Sensor D27. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD27CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D27_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGD29CondReset function resets the FPGA Conductivity - * Sensor D29. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD29CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D29_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD29CondReset function clears the reset of FPGA Conductivity - * Sensor D29. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD29CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D29_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD29CondInitEnable function enables the FPGA Conductivity - * Sensor D29 initialzation procedure. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD29CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D29_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD29CondInitEnable function clears the init process of FPGA Conductivity - * Sensor D29. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD29CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D29_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD29CondWriteEnable function enables the FPGA Conductivity - * Sensor D29 write transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @warning: The address (setFPGACD12Address) and data (setFPGACD12Data) register - * must be populated before invoking this write enable function to initiate - * write transaction with the sensor. - * @return none - *************************************************************************/ -void setFPGAD29CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D29_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD29CondWriteEnable function clears the write enable of FPGA Conductivity - * Sensor D29. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD29CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D29_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD29CondReadEnable function enables the FPGA Conductivity - * Sensor D29 read transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @warning: The address (setFPGACD12Address) register must be populated - * before invoking this read enable function to initiate read transaction - * with the sensor. - * @return none - *************************************************************************/ -void setFPGAD29CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control |= FPGA_D29_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD29CondReadEnable function clears the read enable of FPGA Conductivity - * Sensor D29. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD29CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control &= ~FPGA_D29_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD43CondReset function resets the FPGA Conductivity - * Sensor D43. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD43CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control |= FPGA_D43_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD43CondReset function clears the reset of FPGA Conductivity - * Sensor D43. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD43CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control &= ~FPGA_D43_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD43CondInitEnable function enables the FPGA Conductivity - * Sensor D43 initialzation procedure. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD43CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control |= FPGA_D43_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD43CondInitEnable function clears the init process of FPGA Conductivity - * Sensor D43. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD43CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control &= ~FPGA_D43_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD43CondWriteEnable function enables the FPGA Conductivity - * Sensor D43 write transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @warning: The address (setFPGACD12Address) and data (setFPGACD12Data) register - * must be populated before invoking this write enable function to initiate - * write transaction with the sensor. - * @return none - *************************************************************************/ -void setFPGAD43CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control |= FPGA_D43_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD43CondWriteEnable function clears the write enable of FPGA Conductivity - * Sensor D43. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD43CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control &= ~FPGA_D43_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD43CondReadEnable function enables the FPGA Conductivity - * Sensor D43 read transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @warning: The address (setFPGACD12Address) register must be populated - * before invoking this read enable function to initiate read transaction - * with the sensor. - * @return none - *************************************************************************/ -void setFPGAD43CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control |= FPGA_D43_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD43CondReadEnable function clears the read enable of FPGA Conductivity - * Sensor D43. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD43CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control &= ~FPGA_D43_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD74CondReset function resets the FPGA Conductivity - * Sensor D74. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD74CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D74_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD74CondReset function clears the reset of FPGA Conductivity - * Sensor D74. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD74CondReset( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D74_RESET_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD74CondInitEnable function enables the FPGA Conductivity - * Sensor D74 initialzation procedure. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void setFPGAD74CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D74_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD74CondInitEnable function clears the init process of FPGA Conductivity - * Sensor D74. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD74CondInitEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D74_INIT_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD74CondWriteEnable function enables the FPGA Conductivity - * Sensor D74 write transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @warning: The address (setFPGACD74Address) and data (setFPGACD74Data) register - * must be populated before invoking this write enable function to initiate - * write transaction with the sensor. - * @return none - *************************************************************************/ -void setFPGAD74CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D74_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD74CondWriteEnable function clears the write enable of FPGA Conductivity - * Sensor D74. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD74CondWriteEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D74_WR_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The setFPGAD74CondReadEnable function enables the FPGA Conductivity - * Sensor D74 read transaction. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @warning: The address (setFPGACD74Address) register must be populated - * before invoking this read enable function to initiate read transaction - * with the sensor. - * @return none - *************************************************************************/ -void setFPGAD74CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control |= FPGA_D74_RD_ENABLE_BIT; -} - -/*********************************************************************//** - * @brief - * The clearFPGAD74CondReadEnable function clears the read enable of FPGA Conductivity - * Sensor D74. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param none - * @return none - *************************************************************************/ -void clearFPGAD74CondReadEnable( void ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control &= ~FPGA_D74_RD_ENABLE_BIT; -} - - -/*********************************************************************//** - * @brief - * The setFPGAD17D74Control function sets the FPGA Conductivity - * Sensor control register for D17 and D74. - * bit 7: Enables D74 read transaction (1), address needed - * bit 6: Enables D74 write transaction (1), address and data needs to be set - * bit 5: Enable D74 Init procedure (1) - * bit 4: reset D74 Conduct sensor (1) - * bit 3: Enables D17 read transaction (1), address needed - * bit 2: Enables D17 write transaction (1), address and data needs to be set - * bit 1: Enable D17 Init procedure (1) - * bit 0: reset D17 Conduct sensor (1) - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74Control - * @param control Conductivity Sensor control set - * @return none - *************************************************************************/ -void setFPGAD17D74Control( U08 control ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74Control = control; -} - -/*********************************************************************//** - * @brief - * The setFpgaCD34Control function sets the FPGA Conductivity - * Sensor control register for D27 and D29. - * bit 7: Enables D29 read transaction (1), address needed - * bit 6: Enables D29 write transaction (1), address and data needs to be set - * bit 5: Enable D29 Init procedure (1) - * bit 4: reset D29 Conduct sensor (1) - * bit 3: Enables D27 read transaction (1), address needed - * bit 2: Enables D27 write transaction (1), address and data needs to be set - * bit 1: Enable D27 Init procedure (1) - * bit 0: reset D27 Conduct sensor (1) - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensTD34Control - * @param control Conductivity sensor control set - * @return none - *************************************************************************/ -void setFPGAD27D29Control( U08 control ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29Control = control; -} - -/*********************************************************************//** - * @brief - * The setFpgaCD5Control function sets the FPGA Conductivity - * Sensor control register for D43. - * bit 4- 7: Reserved. - * bit 3: Enables D43 read transaction (1), address needed - * bit 2: Enables D43 write transaction (1), address and data needs to be set - * bit 1: Enable D43 Init procedure (1) - * bit 0: reset D43 Conduct sensor (1) - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD74Control - * @param control Conductivity sensor control set - * @return none - *************************************************************************/ -void setFPGAD43Control( U08 control ) -{ - fpgaActuatorSetPoints.fpgaConSensD43Control = control; -} - -/*********************************************************************//** - * @brief - * The setFPGAD17D74Address function sets the conductivity sensor - * CD12 address register to perform read and write operations. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74_Addrs - * @param address The conductivity sensor D17 and D74 address - * @return none - *************************************************************************/ -void setFPGAD17D74Address( U16 address ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74_Addrs = address; -} - -/*********************************************************************//** - * @brief - * The setFPGAD27D29Address function sets the conductivity sensor - * CD34 address register to perform read and write operations. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29_Addrs - * @param address The conductivity sensor CD34 address - * @return none - *************************************************************************/ -void setFPGAD27D29Address( U16 address ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29_Addrs = address; -} - -/*********************************************************************//** - * @brief - * The setFPGAD43Address function sets the conductivity sensor - * D74 address register to perform read and write operations. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43_Addrs - * @param address The conductivity sensor D43 address - * @return none - *************************************************************************/ -void setFPGAD43Address( U16 address ) -{ - fpgaActuatorSetPoints.fpgaConSensD43_Addrs = address; -} - -/*********************************************************************//** - * @brief - * The setFPGAD17D74Data function sets the conductivity sensor - * CD12 data outputfor write operations. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD17D74_Data_In - * @param data The conductivity sensor D17 and D74 Data - * @return none - *************************************************************************/ -void setFPGAD17D74Data( U32 data ) -{ - fpgaActuatorSetPoints.fpgaConSensD17D74_Data_In = data; -} - -/*********************************************************************//** - * @brief - * The setFPGAD27D29Data function sets the conductivity sensor - * CD34 data outputfor write operations. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD27D29_Data_In - * @param data The conductivity sensor D27 and D29 Data - * @return none - *************************************************************************/ -void setFPGAD27D29Data( U32 data ) -{ - fpgaActuatorSetPoints.fpgaConSensD27D29_Data_In = data; -} - -/*********************************************************************//** - * @brief - * The setFPGAD43Data function sets the conductivity sensor - * D43 data output for write operations. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.fpgaConSensD43_Data_In - * @param data The conductivity sensor D43 Data - * @return none - *************************************************************************/ -void setFPGAD43Data( U32 data ) -{ - fpgaActuatorSetPoints.fpgaConSensD43_Data_In = data; -} - -/*********************************************************************//** - * @brief * The setFPGAD5HeaterPWMControl function sets the primary heater * PWM input. * @details \b Inputs: none @@ -2232,7 +1494,7 @@ *************************************************************************/ U32 getFPGAD11PumpHallSensePulseWidth( void ) { - return fpgaSensorReadings.fpgaD11PumpHallSense; + return fpgaSensorReadings.d11HallSense; } /*********************************************************************//** @@ -2245,7 +1507,7 @@ *************************************************************************/ U32 getFPGAD10PumpHallSensePulseWidth( void ) { - return fpgaSensorReadings.fpgaD10PumpHallSense; + return fpgaSensorReadings.d10HallSense; } /*********************************************************************//** @@ -2258,7 +1520,7 @@ *************************************************************************/ U32 getFPGAD76PumpHallSensePulseWidth( void ) { - return fpgaSensorReadings.fpgaD76PumpHallSense; + return fpgaSensorReadings.d76HallSense; } /*********************************************************************//** @@ -2460,306 +1722,6 @@ /*********************************************************************//** * @brief - * The getFPGACD1ReadCount function gets D17 conductivity sensor read count. - * @details \b Inputs: fpgaSensorReadings.fpgaD17CondReadCnt - * @details \b Outputs: none - * @return Latest D17 conductivity sensor read count - *************************************************************************/ -U08 getFPGAD17CondReadCount( void ) -{ - return fpgaSensorReadings.fpgaD17CondReadCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD17CondErrorCount function gets D17 conductivity sensor error count. - * @details \b Inputs: fpgaSensorReadings.fpgaD17CondErrorCnt - * @details \b Outputs: none - * @return Latest D17 conductivity sensor read error count - *************************************************************************/ -U08 getFPGAD17CondErrorCount( void ) -{ - return fpgaSensorReadings.fpgaD17CondErrorCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD17Cond function gets D17 conductivity sensor value. - * @details \b Inputs: fpgaSensorReadings.fpgaCD1 - * @details \b Outputs: none - * @return Latest D17 conductivity sensor value - *************************************************************************/ -U16 getFPGAD17Cond( void ) -{ - return fpgaSensorReadings.fpgaD17CondCond; -} - -/*********************************************************************//** - * @brief - * The getFPGAD17CondTemp function gets D17 conductivity sensor temperature value. - * @details \b Inputs: fpgaSensorReadings.fpgaCD1Temp - * @details \b Outputs: none - * @return Latest D17 conductivity sensor temperature value - *************************************************************************/ -U16 getFPGAD17CondTemp( void ) -{ - return fpgaSensorReadings.fpgaD17CondTemp; -} - -/*********************************************************************//** - * @brief - * The getFPGAD17CondData function gets D17 conductivity sensor register value. - * @details \b Inputs: fpgaSensorReadings.fpgaD17CondDataOut - * @details \b Outputs: none - * @return Latest D17 conductivity sensor register data value - *************************************************************************/ -U32 getFPGAD17CondData( void ) -{ - return fpgaSensorReadings.fpgaD17CondDataOut; -} - -/*********************************************************************//** - * @brief - * The getFPGAD27CondReadCount function gets D27 conductivity sensor read count. - * @details \b Inputs: fpgaSensorReadings.fpgaD27CondReadCnt - * @details \b Outputs: none - * @return Latest D27 conductivity sensor read count - *************************************************************************/ -U08 getFPGAD27CondReadCount( void ) -{ - return fpgaSensorReadings.fpgaD27CondReadCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD27CondErrorCount function gets D27 conductivity sensor error count. - * @details \b Inputs: fpgaSensorReadings.fpgaD27CondErrorCnt - * @details \b Outputs: none - * @return Latest D27 conductivity sensor read error count - *************************************************************************/ -U08 getFPGAD27CondErrorCount( void ) -{ - return fpgaSensorReadings.fpgaD27CondErrorCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD27Cond function gets D27 conductivity sensor value. - * @details \b Inputs: fpgaSensorReadings.fpgaD27Cond - * @details \b Outputs: none - * @return Latest D27 conductivity sensor value - *************************************************************************/ -U16 getFPGAD27Cond( void ) -{ - return fpgaSensorReadings.fpgaD27CondCond; -} - -/*********************************************************************//** - * @brief - * The getFPGAD27CondTemp function gets D27 conductivity sensor temperature value. - * @details \b Inputs: fpgaSensorReadings.fpgaD27CondTemp - * @details \b Outputs: none - * @return Latest D27 conductivity sensor temperature value - *************************************************************************/ -U16 getFPGAD27CondTemp( void ) -{ - return fpgaSensorReadings.fpgaD27CondTemp; -} - -/*********************************************************************//** - * @brief - * The getFPGAD27CondData function gets D27 conductivity sensor register value. - * @details \b Inputs: fpgaSensorReadings.fpgaD27CondDataOut - * @details \b Outputs: none - * @return Latest D27 conductivity sensor register data value - *************************************************************************/ -U32 getFPGAD27CondData( void ) -{ - return fpgaSensorReadings.fpgaD27CondDataOut; -} - -/*********************************************************************//** - * @brief - * The getFPGAD29CondReadCount function gets D29 conductivity sensor read count. - * @details \b Inputs: fpgaSensorReadings.fpgaD29CondReadCnt - * @details \b Outputs: none - * @return Latest D29 conductivity sensor read count - *************************************************************************/ -U08 getFPGAD29CondReadCount( void ) -{ - return fpgaSensorReadings.fpgaD29CondReadCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD29CondErrorCount function gets D29 conductivity sensor error count. - * @details \b Inputs: fpgaSensorReadings.fpgaD29CondErrorCnt - * @details \b Outputs: none - * @return Latest D29 conductivity sensor read error count - *************************************************************************/ -U08 getFPGAD29CondErrorCount( void ) -{ - return fpgaSensorReadings.fpgaD29CondErrorCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD29Cond function gets D29 conductivity sensor value. - * @details \b Inputs: fpgaSensorReadings.fpgaD29Cond - * @details \b Outputs: none - * @return Latest D29 conductivity sensor value - *************************************************************************/ -U16 getFPGAD29Cond( void ) -{ - return fpgaSensorReadings.fpgaD29CondCond; -} - -/*********************************************************************//** - * @brief - * The getFPGAD29CondTemp function gets D29 conductivity sensor temperature value. - * @details \b Inputs: fpgaSensorReadings.fpgaD29CondTemp - * @details \b Outputs: none - * @return Latest D29 conductivity sensor temperature value - *************************************************************************/ -U16 getFPGAD29CondTemp( void ) -{ - return fpgaSensorReadings.fpgaD29CondTemp; -} - -/*********************************************************************//** - * @brief - * The getFPGAD29CondData function gets D29 conductivity sensor register value. - * @details \b Inputs: fpgaSensorReadings.fpgaD29CondDataOut - * @details \b Outputs: none - * @return Latest D29 conductivity sensor register data value - *************************************************************************/ -U32 getFPGAD29CondData( void ) -{ - return fpgaSensorReadings.fpgaD29CondDataOut; -} - -/*********************************************************************//** - * @brief - * The getFPGAD43CondReadCount function gets D43 conductivity sensor read count. - * @details \b Inputs: fpgaSensorReadings.fpgaD43CondReadCnt - * @details \b Outputs: none - * @return Latest D43 conductivity sensor read count - *************************************************************************/ -U08 getFPGAD43CondReadCount( void ) -{ - return fpgaSensorReadings.fpgaD43CondReadCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD43CondErrorCount function gets D43 conductivity sensor error count. - * @details \b Inputs: fpgaSensorReadings.fpgaD43CondErrorCnt - * @details \b Outputs: none - * @return Latest D43 conductivity sensor read error count - *************************************************************************/ -U08 getFPGAD43CondErrorCount( void ) -{ - return fpgaSensorReadings.fpgaD43CondErrorCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD43Cond function gets D43 conductivity sensor value. - * @details \b Inputs: fpgaSensorReadings.fpgaD43Cond - * @details \b Outputs: none - * @return Latest D43 conductivity sensor value - *************************************************************************/ -U16 getFPGAD43Cond( void ) -{ - return fpgaSensorReadings.fpgaD43CondCond; -} - -/*********************************************************************//** - * @brief - * The getFPGAD43CondTemp function gets D43 conductivity sensor temperature value. - * @details \b Inputs: fpgaSensorReadings.fpgaD43CondTemp - * @details \b Outputs: none - * @return Latest D43 conductivity sensor temperature value - *************************************************************************/ -U16 getFPGAD43CondTemp( void ) -{ - return fpgaSensorReadings.fpgaD43CondTemp; -} - -/*********************************************************************//** - * @brief - * The getFPGAD43CondData function gets D43 conductivity sensor register value. - * @details \b Inputs: fpgaSensorReadings.fpgaD43CondDataOut - * @details \b Outputs: none - * @return Latest D43 conductivity sensor register data value - *************************************************************************/ -U32 getFPGAD43CondData( void ) -{ - return fpgaSensorReadings.fpgaD43CondDataOut; -} - -/*********************************************************************//** - * @brief - * The getFPGAD74CondReadCount function gets D74 conductivity sensor read count. - * @details \b Inputs: fpgaSensorReadings.fpgaD74CondReadCnt - * @details \b Outputs: none - * @return Latest D74 conductivity sensor read count - *************************************************************************/ -U08 getFPGAD74CondReadCount( void ) -{ - return fpgaSensorReadings.fpgaD74CondReadCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD74CondErrorCount function gets D74 conductivity sensor error count. - * @details \b Inputs: fpgaSensorReadings.fpgaD74CondErrorCnt - * @details \b Outputs: none - * @return Latest D74 conductivity sensor read error count - *************************************************************************/ -U08 getFPGAD74CondErrorCount( void ) -{ - return fpgaSensorReadings.fpgaD74CondErrorCnt; -} - -/*********************************************************************//** - * @brief - * The getFPGAD74Cond function gets D74 conductivity sensor value. - * @details \b Inputs: fpgaSensorReadings.fpgaD74Cond - * @details \b Outputs: none - * @return Latest D74 conductivity sensor value - *************************************************************************/ -U16 getFPGAD74Cond( void ) -{ - return fpgaSensorReadings.fpgaD74CondCond; -} - -/*********************************************************************//** - * @brief - * The getFPGAD74CondTemp function gets D74 conductivity sensor temperature value. - * @details \b Inputs: fpgaSensorReadings.fpgaD74CondTemp - * @details \b Outputs: none - * @return Latest D74 conductivity sensor temperature value - *************************************************************************/ -U16 getFPGAD74CondTemp( void ) -{ - return fpgaSensorReadings.fpgaD74CondTemp; -} - -/*********************************************************************//** - * @brief - * The getFPGAD74CondData function gets D74 conductivity sensor register value. - * @details \b Inputs: fpgaSensorReadings.fpgaD74CondDataOut - * @details \b Outputs: none - * @return Latest D74 conductivity sensor register data value - *************************************************************************/ -U32 getFPGAD74CondData( void ) -{ - return fpgaSensorReadings.fpgaD74CondDataOut; -} - -/*********************************************************************//** - * @brief * The getFPGAD63LevelSensor function gets the latest FPGA D63 upper level * sensor reading. * @details \b Inputs: fpgaSensorReadings.fpgaD63LevelSensor @@ -2920,7 +1882,7 @@ *************************************************************************/ U08 getFPGARTDCountErrorCycles( void ) { - return fpgaSensorReadings.fpgaRTDCountErrorCycles; + return fpgaSensorReadings.fpgaD78D1D4D50ErrorCounter; } /*********************************************************************//** @@ -3611,479 +2573,728 @@ /*********************************************************************//** * @brief - * The setFPGAP9Control function sets the FPGA P9 sensor control register - * to perform a given action. - * bit 4..7: unused - * bit 3: Enable P9 read transaction; address needed - * bit 2: Enable P9 write transaction; address and data needs to be set - * bit 1: Enable P9 initialization procedure - * bit 0: reset P9 sensor + * The setFPGAP40PumpEnable function enables or disables the P40 pump. * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @param control bits indicating control action to take + * @details \b Outputs: fpgaActuatorSetPoints.p40PumpControl + * @param enable flag indicating whether to enable or disable the P40 pump. * @return none *************************************************************************/ -void setFPGAP9Control( U08 control ) +void setFPGAP40PumpEnable( BOOL enable ) { - fpgaActuatorSetPoints.conductivityP9Control = control; + fpgaActuatorSetPoints.p40PumpControl = ( TRUE == enable ? 0x1 : 0x0 ); } /*********************************************************************//** * @brief - * The setFPGAP9Address function sets the read/write address for a read/write - * action on the P9 sensor. + * The setFPGAP40PumpPWM function sets the P40 pump PWM duty cycle. + * The higher the PWM duty cycle (0..500), the faster the pump will go. + * @note PWM values < 5% or > 95% will cause pump to stop so effective + * range is actually 25..475. * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Address - * @param address The P9 sensor address to read from or write to + * @details \b Outputs: fpgaActuatorSetPoints.p40PumpPWMDutyCyclePct + * @param pwm PWM duty cycle magnitude * @return none *************************************************************************/ -void setFPGAP9Address( U16 address ) +void setFPGAP40PumpPWM( U16 pwm ) { - fpgaActuatorSetPoints.conductivityP9Address = address; + fpgaActuatorSetPoints.p40PumpPWMDutyCyclePct = pwm; } /*********************************************************************//** * @brief - * The setFPGAP9Data function sets the write data for a write action on - * the P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Data - * @param data The 32-bit data to write to the P9 sensor - * @return none + * The getFPGAP12PumpPWM function gets a read back from FPGA of RO pump PWM + * duty cycle. + * @details \b Inputs: fpgaSensorReadings.p40PumpPWMReadback + * @details \b Outputs: none + * @return measured speed (RPM) of the P40 pump *************************************************************************/ -void setFPGAP9Data( U32 data ) +U16 getFPGAP40PumpPWM( void ) { - fpgaActuatorSetPoints.conductivityP9Data = data; + return fpgaSensorReadings.p40PumpPWMReadback; } /*********************************************************************//** * @brief - * The setFPGAP18Control function sets the FPGA P18 sensor control register - * to perform a given action. - * bit 4..7: unused - * bit 3: Enable P18 read transaction; address needed - * bit 2: Enable P18 write transaction; address and data needs to be set - * bit 1: Enable P18 initialization procedure - * bit 0: reset P18 sensor - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @param control bits indicating control action to take - * @return none + * The getFPGAP12PumpTachCount function gets the running 16-bit tachometer count + * from the P40 pump hall sensor. + * @details \b Inputs: fpgaSensorReadings.p40PumpTachCount + * @details \b Outputs: none + * @return P40 pump tachometer count *************************************************************************/ -void setFPGAP18Control( U08 control ) +U16 getFPGAP40PumpTachCount( void ) { - fpgaActuatorSetPoints.conductivityP18Control = control; + return fpgaSensorReadings.p40PumpTachCount; } /*********************************************************************//** * @brief - * The setFPGAP18Address function sets the read/write address for a read/write - * action on the P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Address - * @param address The P18 sensor address to read from or write to - * @return none + * The getFPGAD17CondReadCount function gets the D17 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.d17CondCondReadCount + * @details \b Outputs: none + * @return D17 Conductivity sensor read count *************************************************************************/ -void setFPGAP18Address( U16 address ) +U08 getFPGAD17CondReadCount( void ) { - fpgaActuatorSetPoints.conductivityP18Address = address; + return fpgaSensorReadings.d17CondCondReadCount; } /*********************************************************************//** * @brief - * The setFPGAP18Data function sets the write data for a write action on - * the P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Data - * @param data The 32-bit data to write to the P18 sensor - * @return none + * The getFPGAD17CondErrorCount function gets the D17 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.d17CondCondErrorCount + * @details \b Outputs: none + * @return D17 Conductivity sensor error count *************************************************************************/ -void setFPGAP18Data( U32 data ) +U08 getFPGAD17CondErrorCount( void ) { - fpgaActuatorSetPoints.conductivityP18Data = data; + return fpgaSensorReadings.d17CondCondErrorCount; } /*********************************************************************//** * @brief - * The setFPGAP9Reset function sets the reset command bit for P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD17TempReadCount function gets the D17 (D16) temperature read count. + * @details \b Inputs: fpgaSensorReadings.d17CondTempReadCount + * @details \b Outputs: none + * @return D17 (D16) Temperature sensor read count *************************************************************************/ -void setFPGAP9Reset( void ) +U08 getFPGAD17TempReadCount( void ) { - fpgaActuatorSetPoints.conductivityP9Control |= FPGA_CONDUCTIVITY_RESET_BIT; + return fpgaSensorReadings.d17CondTempReadCount; } /*********************************************************************//** * @brief - * The clearFPGAP9Reset function clears the reset command bit for P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD17TempErrorCount function gets the D17 (D16) temperature error count. + * @details \b Inputs: fpgaSensorReadings.d17CondTempErrorCount + * @details \b Outputs: none + * @return D17 (D16) Temperature sensor error count *************************************************************************/ -void clearFPGAP9Reset( void ) +U08 getFPGAD17TempErrorCount( void ) { - fpgaActuatorSetPoints.conductivityP9Control &= ~FPGA_CONDUCTIVITY_RESET_BIT; + return fpgaSensorReadings.d17CondTempErrorCount; } /*********************************************************************//** * @brief - * The setFPGAP9InitEnable function sets the initialize command bit for - * P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD17CondData function gets the D17 conductivity data. + * @details \b Inputs: fpgaSensorReadings.d17CondCond + * @details \b Outputs: none + * @return D17 Conductivity data *************************************************************************/ -void setFPGAP9InitEnable( void ) +U32 getFPGAD17CondData( void ) { - fpgaActuatorSetPoints.conductivityP9Control |= FPGA_CONDUCTIVITY_INIT_ENABLE_BIT; + return fpgaSensorReadings.d17CondCond; } /*********************************************************************//** * @brief - * The clearFPGAP9InitEnable function clears the initialize command bit for - * P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD17CondTemp function gets the D17 (D16) temperature data. + * @details \b Inputs: fpgaSensorReadings.d17CondTemp + * @details \b Outputs: none + * @return D17 (D16) Temperature data *************************************************************************/ -void clearFPGAP9InitEnable( void ) +U32 getFPGAD17CondTemp( void ) { - fpgaActuatorSetPoints.conductivityP9Control &= ~FPGA_CONDUCTIVITY_INIT_ENABLE_BIT; + return fpgaSensorReadings.d17CondTemp; } /*********************************************************************//** * @brief - * The setFPGAP9WriteEnable function sets the write enable command bit for - * P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD17CondData function gets the D17 cal data. + * @details \b Inputs: fpgaSensorReadings.d17CondCalData + * @details \b Outputs: none + * @return D17 calibration data *************************************************************************/ -void setFPGAP9WriteEnable( void ) +U32 getFPGAD17CondCalData( void ) { - fpgaActuatorSetPoints.conductivityP9Control |= FPGA_CONDUCTIVITY_WR_ENABLE_BIT; + return fpgaSensorReadings.d17CondCalData; } /*********************************************************************//** * @brief - * The clearFPGAP9WriteEnable function clears the write enable command bit - * for P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD17CalMemCounter function gets the D17 memory count. + * @details \b Inputs: fpgaSensorReadings.d17CondMemCounter + * @details \b Outputs: none + * @return D17 memory count *************************************************************************/ -void clearFPGAP9WriteEnable( void ) +U08 getFPGAD17CalMemCounter( void ) { - fpgaActuatorSetPoints.conductivityP9Control &= ~FPGA_CONDUCTIVITY_WR_ENABLE_BIT; + return fpgaSensorReadings.d17CondMemCounter; } /*********************************************************************//** * @brief - * The setFPGAP9ReadEnable function sets the read enable command bit for - * P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD27CondReadCount function gets the D27 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.d27CondCondReadCount + * @details \b Outputs: none + * @return D27 Conductivity sensor read count *************************************************************************/ -void setFPGAP9ReadEnable( void ) +U08 getFPGAD27CondReadCount( void ) { - fpgaActuatorSetPoints.conductivityP9Control |= FPGA_CONDUCTIVITY_RD_ENABLE_BIT; + return fpgaSensorReadings.d27CondCondReadCount; } /*********************************************************************//** * @brief - * The clearFPGAP9ReadEnable function clears the read enable command bit - * for P9 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP9Control - * @return none + * The getFPGAD27CondErrorCount function gets the D27 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.d27CondCondErrorCount + * @details \b Outputs: none + * @return D27 Conductivity sensor error count *************************************************************************/ -void clearFPGAP9ReadEnable( void ) +U08 getFPGAD27CondErrorCount( void ) { - fpgaActuatorSetPoints.conductivityP9Control &= ~FPGA_CONDUCTIVITY_RD_ENABLE_BIT; + return fpgaSensorReadings.d27CondCondErrorCount; } /*********************************************************************//** * @brief - * The setFPGAP18Reset function sets the reset command bit for P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD27TempReadCount function gets the D27 (D28) temperature read count. + * @details \b Inputs: fpgaSensorReadings.d27CondTempReadCount + * @details \b Outputs: none + * @return D27 (D28) Temperature sensor read count *************************************************************************/ -void setFPGAP18Reset( void ) +U08 getFPGAD27TempReadCount( void ) { - fpgaActuatorSetPoints.conductivityP18Control |= FPGA_CONDUCTIVITY_RESET_BIT; + return fpgaSensorReadings.d27CondTempReadCount; } /*********************************************************************//** * @brief - * The clearFPGAP18Reset function clears the reset command bit for P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD27TempErrorCount function gets the D27 (D28) temperature error count. + * @details \b Inputs: fpgaSensorReadings.d27CondTempErrorCount + * @details \b Outputs: none + * @return D27 (D28) Temperature sensor error count *************************************************************************/ -void clearFPGAP18Reset( void ) +U08 getFPGAD27TempErrorCount( void ) { - fpgaActuatorSetPoints.conductivityP18Control &= ~FPGA_CONDUCTIVITY_RESET_BIT; + return fpgaSensorReadings.d27CondTempErrorCount; } /*********************************************************************//** * @brief - * The setFPGAP18InitEnable function sets the initialize command bit for - * P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD27CondData function gets the D27 conductivity data. + * @details \b Inputs: fpgaSensorReadings.d27CondCond + * @details \b Outputs: none + * @return D27 Conductivity data *************************************************************************/ -void setFPGAP18InitEnable( void ) +U32 getFPGAD27CondData( void ) { - fpgaActuatorSetPoints.conductivityP18Control |= FPGA_CONDUCTIVITY_INIT_ENABLE_BIT; + return fpgaSensorReadings.d27CondCond; } /*********************************************************************//** * @brief - * The clearFPGAP18InitEnable function clears the initialize command bit for - * P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD27CondTemp function gets the D27 (D28) temperature data. + * @details \b Inputs: fpgaSensorReadings.d27CondTemp + * @details \b Outputs: none + * @return D27 (D28) Temperature data *************************************************************************/ -void clearFPGAP18InitEnable( void ) +U32 getFPGAD27CondTemp( void ) { - fpgaActuatorSetPoints.conductivityP18Control &= ~FPGA_CONDUCTIVITY_INIT_ENABLE_BIT; + return fpgaSensorReadings.d27CondTemp; } /*********************************************************************//** * @brief - * The setFPGAP18WriteEnable function sets the write enable command bit for - * P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD27CondCalData function gets the D27 cal data. + * @details \b Inputs: fpgaSensorReadings.d27CondCalData + * @details \b Outputs: none + * @return D27 calibration data *************************************************************************/ -void setFPGAP18WriteEnable( void ) +U32 getFPGAD27CondCalData( void ) { - fpgaActuatorSetPoints.conductivityP18Control |= FPGA_CONDUCTIVITY_WR_ENABLE_BIT; + return fpgaSensorReadings.d27CondCalData; } /*********************************************************************//** * @brief - * The clearFPGAP18WriteEnable function clears the write enable command bit - * for P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD27CalMemCounter function gets the D27 memory count. + * @details \b Inputs: fpgaSensorReadings.d27CondMemCounter + * @details \b Outputs: none + * @return D27 memory count *************************************************************************/ -void clearFPGAP18WriteEnable( void ) +U08 getFPGAD27CalMemCounter( void ) { - fpgaActuatorSetPoints.conductivityP18Control &= ~FPGA_CONDUCTIVITY_WR_ENABLE_BIT; + return fpgaSensorReadings.d27CondMemCounter; } /*********************************************************************//** * @brief - * The setFPGAP18ReadEnable function sets the read enable command bit for - * P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD29CondReadCount function gets the D29 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.d29CondCondReadCount + * @details \b Outputs: none + * @return D29 Conductivity sensor read count *************************************************************************/ -void setFPGAP18ReadEnable( void ) +U08 getFPGAD29CondReadCount( void ) { - fpgaActuatorSetPoints.conductivityP18Control |= FPGA_CONDUCTIVITY_RD_ENABLE_BIT; + return fpgaSensorReadings.d29CondCondReadCount; } /*********************************************************************//** * @brief - * The clearFPGAP18ReadEnable function clears the read enable command bit - * for P18 sensor. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.conductivityP18Control - * @return none + * The getFPGAD29CondErrorCount function gets the D29 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.d29CondCondErrorCount + * @details \b Outputs: none + * @return D29 Conductivity sensor error count *************************************************************************/ -void clearFPGAP18ReadEnable( void ) +U08 getFPGAD29CondErrorCount( void ) { - fpgaActuatorSetPoints.conductivityP18Control &= ~FPGA_CONDUCTIVITY_RD_ENABLE_BIT; + return fpgaSensorReadings.d29CondCondErrorCount; } /*********************************************************************//** * @brief - * The getFPGAP9ReadCount function gets the latest P9 sensor read count. - * @details \b Inputs: fpgaSensorReadings.conductivityP9ReadCount + * The getFPGAD29TempReadCount function gets the D29 (D28) temperature read count. + * @details \b Inputs: fpgaSensorReadings.d29CondTempReadCount * @details \b Outputs: none - * @return Current read count for P9 sensor. + * @return D29 (D28) Temperature sensor read count *************************************************************************/ -U08 getFPGAP9ReadCount( void ) +U08 getFPGAD29TempReadCount( void ) { - return fpgaSensorReadings.conductivityP9ReadCount; + return fpgaSensorReadings.d29CondTempReadCount; } /*********************************************************************//** * @brief - * The getFPGAP9ErrorCount function gets the latest P9 sensor error count. - * @details \b Inputs: fpgaSensorReadings.conductivityP9ErrorCount + * The getFPGAD29TempErrorCount function gets the D29 (D28) temperature error count. + * @details \b Inputs: fpgaSensorReadings.d29CondTempErrorCount * @details \b Outputs: none - * @return Current error count for P9 sensor. + * @return D29 (D28) Temperature sensor error count *************************************************************************/ -U08 getFPGAP9ErrorCount( void ) +U08 getFPGAD29TempErrorCount( void ) { - return fpgaSensorReadings.conductivityP9ErrorCount; + return fpgaSensorReadings.d29CondTempErrorCount; } /*********************************************************************//** * @brief - * The getFPGAP9Conductivity function gets the latest P9 sensor conductivity - * reading. - * @details \b Inputs: fpgaSensorReadings.conductivityP9Cond + * The getFPGAD29CondData function gets the D29 conductivity data. + * @details \b Inputs: fpgaSensorReadings.d29CondCond * @details \b Outputs: none - * @return Current conductivity reading from P9 sensor. + * @return D29 Conductivity data *************************************************************************/ -U16 getFPGAP9Conductivity( void ) +U32 getFPGAD29CondData( void ) { - return fpgaSensorReadings.conductivityP9Cond; + return fpgaSensorReadings.d29CondCond; } /*********************************************************************//** * @brief - * The getFPGAP9Temperature function gets the latest P9 sensor temperature. - * @details \b Inputs: fpgaSensorReadings.conductivityP9Temp + * The getFPGAD29CondTemp function gets the D29 (D30) temperature data. + * @details \b Inputs: fpgaSensorReadings.d29CondTemp * @details \b Outputs: none - * @return Current temperature from P9 sensor. + * @return D29 (D28) Temperature data *************************************************************************/ -U16 getFPGAP9Temperature( void ) +U32 getFPGAD29CondTemp( void ) { - return fpgaSensorReadings.conductivityP9Temp; + return fpgaSensorReadings.d29CondTemp; } /*********************************************************************//** * @brief - * The getFPGAP9Data function gets the latest P9 sensor data from a read - * action. - * @details \b Inputs: fpgaSensorReadings.conductivityP9Data + * The getFPGAD29CondCalData function gets the D29 cal data. + * @details \b Inputs: fpgaSensorReadings.d29CondCalData * @details \b Outputs: none - * @return Latest data read from P9 sensor. + * @return D29 calibration data *************************************************************************/ -U32 getFPGAP9Data( void ) +U32 getFPGAD29CondCalData( void ) { - return fpgaSensorReadings.conductivityP9Data; + return fpgaSensorReadings.d29CondCalData; } /*********************************************************************//** * @brief - * The getFPGAP18ReadCount function gets the latest P18 sensor read count. - * @details \b Inputs: fpgaSensorReadings.conductivityP18ReadCount + * The getFPGAD29CalMemCounter function gets the D29 memory count. + * @details \b Inputs: fpgaSensorReadings.d29CondMemCounter * @details \b Outputs: none - * @return Current read count for P18 sensor. + * @return D29 memory count *************************************************************************/ -U08 getFPGAP18ReadCount( void ) +U08 getFPGAD29CalMemCounter( void ) { - return fpgaSensorReadings.conductivityP18ReadCount; + return fpgaSensorReadings.d29CondMemCounter; } /*********************************************************************//** * @brief - * The getFPGAP18ErrorCount function gets the latest P18 sensor error count. - * @details \b Inputs: fpgaSensorReadings.conductivityP18ErrorCount + * The getFPGAD43CondReadCount function gets the D43 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.d43CondCondReadCount * @details \b Outputs: none - * @return Current error count for P18 sensor. + * @return D437 Conductivity sensor read count *************************************************************************/ -U08 getFPGAP18ErrorCount( void ) +U08 getFPGAD43CondReadCount( void ) { - return fpgaSensorReadings.conductivityP18ErrorCount; + return fpgaSensorReadings.d43CondCondReadCount; } /*********************************************************************//** * @brief - * The getFPGAP18Conductivity function gets the latest P18 sensor conductivity - * reading. - * @details \b Inputs: fpgaSensorReadings.conductivityP18Cond + * The getFPGAD43CondErrorCount function gets the D43 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.d43CondCondErrorCount * @details \b Outputs: none - * @return Current conductivity reading from P18 sensor. + * @return D43 Conductivity sensor error count *************************************************************************/ -U16 getFPGAP18Conductivity( void ) +U08 getFPGAD43CondErrorCount( void ) { - return fpgaSensorReadings.conductivityP18Cond; + return fpgaSensorReadings.d43CondCondErrorCount; } /*********************************************************************//** * @brief - * The getFPGAP18Temperature function gets the latest P18 sensor temperature. - * @details \b Inputs: fpgaSensorReadings.conductivityP18Temp + * The getFPGAD43TempReadCount function gets the D43 (D44) temperature read count. + * @details \b Inputs: fpgaSensorReadings.d43CondTempReadCount * @details \b Outputs: none - * @return Current temperature from P18 sensor. + * @return D43 (D44) Temperature sensor read count *************************************************************************/ -U16 getFPGAP18Temperature( void ) +U08 getFPGAD43TempReadCount( void ) { - return fpgaSensorReadings.conductivityP18Temp; + return fpgaSensorReadings.d43CondTempReadCount; } /*********************************************************************//** * @brief - * The getFPGAP18Data function gets the latest P18 sensor data from a read - * action. - * @details \b Inputs: fpgaSensorReadings.conductivityP18Data + * The getFPGAD43TempErrorCount function gets the D43 (D44) temperature error count. + * @details \b Inputs: fpgaSensorReadings.d43CondTempErrorCount * @details \b Outputs: none - * @return Latest data read from P18 sensor. + * @return D43 (D44) Temperature sensor error count *************************************************************************/ -U32 getFPGAP18Data( void ) +U08 getFPGAD43TempErrorCount( void ) { - return fpgaSensorReadings.conductivityP18Data; + return fpgaSensorReadings.d43CondTempErrorCount; } /*********************************************************************//** * @brief - * The setFPGAP40PumpEnable function enables or disables the P40 pump. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.p40PumpControl - * @param enable flag indicating whether to enable or disable the P40 pump. - * @return none + * The getFPGAD43CondData function gets the D43 conductivity data. + * @details \b Inputs: fpgaSensorReadings.d43CondCond + * @details \b Outputs: none + * @return D43 Conductivity data *************************************************************************/ -void setFPGAP40PumpEnable( BOOL enable ) +U32 getFPGAD43CondData( void ) { - fpgaActuatorSetPoints.p40PumpControl = ( TRUE == enable ? 0x1 : 0x0 ); + return fpgaSensorReadings.d43CondCond; } /*********************************************************************//** * @brief - * The setFPGAP40PumpPWM function sets the P40 pump PWM duty cycle. - * The higher the PWM duty cycle (0..500), the faster the pump will go. - * @note PWM values < 5% or > 95% will cause pump to stop so effective - * range is actually 25..475. - * @details \b Inputs: none - * @details \b Outputs: fpgaActuatorSetPoints.p40PumpPWMDutyCyclePct - * @param pwm PWM duty cycle magnitude - * @return none + * The getFPGAD43CondTemp function gets the D43 (D44) temperature data. + * @details \b Inputs: fpgaSensorReadings.d43CondTemp + * @details \b Outputs: none + * @return D43 (D44) Temperature data *************************************************************************/ -void setFPGAP40PumpPWM( U16 pwm ) +U32 getFPGAD43CondTemp( void ) { - fpgaActuatorSetPoints.p40PumpPWMDutyCyclePct = pwm; + return fpgaSensorReadings.d43CondTemp; } /*********************************************************************//** * @brief - * The getFPGAP12PumpPWM function gets a read back from FPGA of RO pump PWM - * duty cycle. - * @details \b Inputs: fpgaSensorReadings.p40PumpPWMReadback + * The getFPGAD43CondCalData function gets the D43 cal data. + * @details \b Inputs: fpgaSensorReadings.d43CondCalData * @details \b Outputs: none - * @return measured speed (RPM) of the P40 pump + * @return D43 calibration data *************************************************************************/ -U16 getFPGAP40PumpPWM( void ) +U32 getFPGAD43CondCalData( void ) { - return fpgaSensorReadings.p40PumpPWMReadback; + return fpgaSensorReadings.d43CondCalData; } /*********************************************************************//** * @brief - * The getFPGAP12PumpTachCount function gets the running 16-bit tachometer count - * from the P40 pump hall sensor. - * @details \b Inputs: fpgaSensorReadings.p40PumpTachCount + * The getFPGAD43CalMemCounter function gets the D43 memory count. + * @details \b Inputs: fpgaSensorReadings.d43CondMemCounter * @details \b Outputs: none - * @return P40 pump tachometer count + * @return D43 memory count *************************************************************************/ -U16 getFPGAP40PumpTachCount( void ) +U08 getFPGAD43CalMemCounter( void ) { - return fpgaSensorReadings.p40PumpTachCount; + return fpgaSensorReadings.d43CondMemCounter; } +/*********************************************************************//** + * @brief + * The getFPGAD74CondReadCount function gets the D74 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.d74CondCondReadCount + * @details \b Outputs: none + * @return D74 Conductivity sensor read count + *************************************************************************/ +U08 getFPGAD74CondReadCount( void ) +{ + return fpgaSensorReadings.d74CondCondReadCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74CondErrorCount function gets the D74 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.d74CondCondErrorCount + * @details \b Outputs: none + * @return D74 Conductivity sensor error count + *************************************************************************/ +U08 getFPGAD74CondErrorCount( void ) +{ + return fpgaSensorReadings.d74CondCondErrorCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74TempReadCount function gets the D74 (D75) temperature read count. + * @details \b Inputs: fpgaSensorReadings.d74CondTempReadCount + * @details \b Outputs: none + * @return D74 (D75) Temperature sensor read count + *************************************************************************/ +U08 getFPGAD74TempReadCount( void ) +{ + return fpgaSensorReadings.d74CondTempReadCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74TempErrorCount function gets the D74 (D75) temperature error count. + * @details \b Inputs: fpgaSensorReadings.d74CondTempErrorCount + * @details \b Outputs: none + * @return D74 (D75) Temperature sensor error count + *************************************************************************/ +U08 getFPGAD74TempErrorCount( void ) +{ + return fpgaSensorReadings.d74CondTempErrorCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74CondData function gets the D74 conductivity data. + * @details \b Inputs: fpgaSensorReadings.d74CondCond + * @details \b Outputs: none + * @return D74 Conductivity data + *************************************************************************/ +U32 getFPGAD74CondData( void ) +{ + return fpgaSensorReadings.d74CondCond; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74CondTemp function gets the D74 (D75) temperature data. + * @details \b Inputs: fpgaSensorReadings.d74CondTemp + * @details \b Outputs: none + * @return D74 (D75) Temperature data + *************************************************************************/ +U32 getFPGAD74CondTemp( void ) +{ + return fpgaSensorReadings.d74CondTemp; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74CondCalData function gets the D74 cal data. + * @details \b Inputs: fpgaSensorReadings.d74CondCalData + * @details \b Outputs: none + * @return D74 calibration data + *************************************************************************/ +U32 getFPGAD74CondCalData( void ) +{ + return fpgaSensorReadings.d74CondCalData; +} + +/*********************************************************************//** + * @brief + * The getFPGAD74CalMemCounter function gets the D74 memory count. + * @details \b Inputs: fpgaSensorReadings.d74CondMemCounter + * @details \b Outputs: none + * @return D74 memory count + *************************************************************************/ +U08 getFPGAD74CalMemCounter( void ) +{ + return fpgaSensorReadings.d74CondMemCounter; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9CondReadCount function gets the P9 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.p9CondCondReadCount + * @details \b Outputs: none + * @return P9 Conductivity sensor read count + *************************************************************************/ +U08 getFPGAP9CondReadCount( void ) +{ + return fpgaSensorReadings.p9CondCondReadCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9CondErrorCount function gets the P9 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.p9CondCondErrorCount + * @details \b Outputs: none + * @return P9 Conductivity sensor error count + *************************************************************************/ +U08 getFPGAP9CondErrorCount( void ) +{ + return fpgaSensorReadings.p9CondCondErrorCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9TempReadCount function gets the P9 (P10) temperature read count. + * @details \b Inputs: fpgaSensorReadings.p9CondTempReadCount + * @details \b Outputs: none + * @return P9 (P10) Temperature sensor read count + *************************************************************************/ +U08 getFPGAP9TempReadCount( void ) +{ + return fpgaSensorReadings.p9CondTempReadCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9TempErrorCount function gets the P9 (P10) temperature error count. + * @details \b Inputs: fpgaSensorReadings.p9CondTempErrorCount + * @details \b Outputs: none + * @return P9 (P10) Temperature sensor error count + *************************************************************************/ +U08 getFPGAP9TempErrorCount( void ) +{ + return fpgaSensorReadings.p9CondTempErrorCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9CondData function gets the P9 conductivity data. + * @details \b Inputs: fpgaSensorReadings.p9CondCond + * @details \b Outputs: none + * @return P9 Conductivity data + *************************************************************************/ +U32 getFPGAP9CondData( void ) +{ + return fpgaSensorReadings.p9CondCond; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9CondTemp function gets the P9 (P10) temperature data. + * @details \b Inputs: fpgaSensorReadings.p9CondTemp + * @details \b Outputs: none + * @return P9 (P10) Temperature data + *************************************************************************/ +U32 getFPGAP9CondTemp( void ) +{ + return fpgaSensorReadings.p9CondTemp; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9CondCalData function gets the P9 cal data. + * @details \b Inputs: fpgaSensorReadings.p9CondCalData + * @details \b Outputs: none + * @return P9 calibration data + *************************************************************************/ +U32 getFPGAP9CondCalData( void ) +{ + return fpgaSensorReadings.p9CondCalData; +} + +/*********************************************************************//** + * @brief + * The getFPGAP9CalMemCounter function gets the P9 memory count. + * @details \b Inputs: fpgaSensorReadings.p9CondMemCounter + * @details \b Outputs: none + * @return P9 memory count + *************************************************************************/ +U08 getFPGAP9CalMemCounter( void ) +{ + return fpgaSensorReadings.p9CondMemCounter; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18CondReadCount function gets the P18 conductivity read count. + * @details \b Inputs: fpgaSensorReadings.p18CondCondReadCount + * @details \b Outputs: none + * @return P18 Conductivity sensor read count + *************************************************************************/ +U08 getFPGAP18CondReadCount( void ) +{ + return fpgaSensorReadings.p18CondCondReadCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18CondErrorCount function gets the P18 conductivity error count. + * @details \b Inputs: fpgaSensorReadings.p18CondCondErrorCount + * @details \b Outputs: none + * @return P18 Conductivity sensor error count + *************************************************************************/ +U08 getFPGAP18CondErrorCount( void ) +{ + return fpgaSensorReadings.p18CondCondErrorCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18TempReadCount function gets the P18 (P19) temperature read count. + * @details \b Inputs: fpgaSensorReadings.p9CondTempReadCount + * @details \b Outputs: none + * @return P18 (P19) Temperature sensor read count + *************************************************************************/ +U08 getFPGAP18TempReadCount( void ) +{ + return fpgaSensorReadings.p18CondTempReadCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18TempErrorCount function gets the P18 (P19) temperature error count. + * @details \b Inputs: fpgaSensorReadings.p18CondTempErrorCount + * @details \b Outputs: none + * @return P18 (P19) Temperature sensor error count + *************************************************************************/ +U08 getFPGAP18TempErrorCount( void ) +{ + return fpgaSensorReadings.p18CondTempErrorCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18CondData function gets the P18 conductivity data. + * @details \b Inputs: fpgaSensorReadings.p18CondCond + * @details \b Outputs: none + * @return P18 Conductivity data + *************************************************************************/ +U32 getFPGAP18CondData( void ) +{ + return fpgaSensorReadings.p18CondCond; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18CondTemp function gets the P18 (P19) temperature data. + * @details \b Inputs: fpgaSensorReadings.p18CondTemp + * @details \b Outputs: none + * @return P18 (P19) Temperature data + *************************************************************************/ +U32 getFPGAP18CondTemp( void ) +{ + return fpgaSensorReadings.p18CondTemp; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18CondCalData function gets the P18 cal data. + * @details \b Inputs: fpgaSensorReadings.p18CondCalData + * @details \b Outputs: none + * @return P18 calibration data + *************************************************************************/ +U32 getFPGAP18CondCalData( void ) +{ + return fpgaSensorReadings.p18CondCalData; +} + +/*********************************************************************//** + * @brief + * The getFPGAP18CalMemCounter function gets the P18 memory count. + * @details \b Inputs: fpgaSensorReadings.p18CondMemCounter + * @details \b Outputs: none + * @return P18 memory count + *************************************************************************/ +U08 getFPGAP18CalMemCounter( void ) +{ + return fpgaSensorReadings.p18CondMemCounter; +} /**@}*/