Index: firmware/App/Services/FpgaDD.c =================================================================== diff -u -r50144ec3e96785cf76d5bfd22ee65029c82e732b -r82b841cdb65ac335475e02841b7b568d1f5c77b1 --- firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 50144ec3e96785cf76d5bfd22ee65029c82e732b) +++ firmware/App/Services/FpgaDD.c (.../FpgaDD.c) (revision 82b841cdb65ac335475e02841b7b568d1f5c77b1) @@ -142,126 +142,149 @@ U16 fpgaD18PresTemp; ///< Reg 534. D18 MPM pressure sensor RAW temperature data U16 fpgaD41PresPressure; ///< Reg 536. D41 MPM pressure sensor RAW pressure data U16 fpgaD41PresTemp; ///< Reg 538. D41 MPM pressure sensor RAW temperature data - U32 fpgaD17CondDataOut; ///< Reg 540. Data read from Conductivity Sensor D17 register - U16 fpgaD17CondCond; ///< Reg 544. D17 conductivity - U16 fpgaD17CondTemp; ///< Reg 546. D17 Temperature - U08 fpgaD17CondReadCnt; ///< Reg 548. D17 successful read count - U08 fpgaD17CondErrorCnt; ///< Reg 549. D17 error read count - U32 fpgaD27CondDataOut; ///< Reg 550. Data read from Conductivity Sensor D27 register - U16 fpgaD27CondCond; ///< Reg 554. D27 conductivity - U16 fpgaD27CondTemp; ///< Reg 556. D27 Temperature - U08 fpgaD27CondReadCnt; ///< Reg 558. D27 successful read count - U08 fpgaD27CondErrorCnt; ///< Reg 559. D27 error read count - U32 fpgaD29CondDataOut; ///< Reg 560. Data read from Conductivity Sensor D29 register - U16 fpgaD29CondCond; ///< Reg 564. D29 conductivity - U16 fpgaD29CondTemp; ///< Reg 566. D29 Temperature - U08 fpgaD29CondReadCnt; ///< Reg 568. D29 successful read count - U08 fpgaD29CondErrorCnt; ///< Reg 569. D29 error read count - U32 fpgaD43CondDataOut; ///< Reg 570. Data read from Conductivity Sensor D43 register - U16 fpgaD43CondCond; ///< Reg 574. D43 conductivity - U16 fpgaD43CondTemp; ///< Reg 576. D43 Temperature - U08 fpgaD43CondReadCnt; ///< Reg 578. D43 successful read count - U08 fpgaD43CondErrorCnt; ///< Reg 579. D43 error read count - U16 fpgaD63LevelSensor; ///< Reg 580. Upper level Sensor - U16 fpgaD46LevelSensor; ///< Reg 582. Level Sensor 2 - U08 fpgaHallSensInputs; ///< Reg 584. Hall sensor Inputs - U08 fpgaD42TxFIFOCnt; ///< Reg 585. Blood leak sensor transmit FIFO count - U16 fpgaD42RxErrorCnt; ///< Reg 586. Blood leak sensor Receive error count - U16 fpgaD42RxFIFOCnt; ///< Reg 588. Blood leak sensor Receive FIFO count - U08 fpgaD42RxFIFODataOut; ///< Reg 590. Blood leak sensor Receive data - U08 fpgaD42PulseStatus; ///< Reg 591. Blood leak sensor status - U16 fpgaValveStates; ///< Reg 592. Valve status read - U16 fpgaValvePWMEnableStates; ///< Reg 594. Valve PWM Enable status read - U08 fpgaValveBCStates; ///< Reg 596. Balancing chamber Valves states - U08 fpgaValveBCPWMStates; ///< Reg 597. Balancing Chamber Valve PWM states - U08 fpgaValveSpStates; ///< Reg 598. DD Spare Valves states - U08 fpgaValveSpPWMStates; ///< Reg 599. Spare Valves PWM states - U08 fpgaD11_D10_PumpFault; ///< Reg 600. Concentrate pump fault register for D11_Pump and D10_Pump - U08 fpgaRTDCountErrorCycles; ///< Reg 601. Count of each incomplete seq of reads from RTD ADC. - U16 fpgaD11PumpHallSense; ///< Reg 602. Concentrate pump D11_Pump hall sensor pulse width - U16 fpgaD10PumpHallSense; ///< Reg 604. Concentrate pump D10_Pump hall sensor pulse width - U32 fpgaD78Temp; ///< Reg 606. Outlet heat exchanger temperature - U32 fpgaD1Temp; ///< Reg 610. Inlet heat exchanger temperature - U32 fpgaD4Temp; ///< Reg 614. Hydraulics primary heater temperature - U32 fpgaD50Temp; ///< Reg 618. Trimmer heater temperature - U16 fpgaD98LevelSensor; ///< Reg 622. Lower level Sensor - U16 fpgaD12MeasuredSpeed; ///< Reg 624. Fresh dialysate pump measured speed - U16 fpgaD48MeasuredSpeed; ///< Reg 626. Spent dialysate pump measured speed - U08 fpgaRTDReadCnt; ///< Reg 628. Read count for all RTD sensors - U08 fpgaD12D48PumpStatus; ///< Reg 629. Dialysate pumps Error status - U16 fpgaD12CurrentFeedback; ///< Reg 630. Fresh dialysate pump current feedback - U16 fpgaD48CurrentFeedback; ///< Reg 632. Spent dialysate pump current feedback - U08 fpgaD12HallStatus; ///< Reg 634. Fresh dialysate pump hall sensor direction status - U08 fpgaD48HallStatus; ///< Reg 635. Spent dialysate pump hall sensor direction status - U08 fpgaD6FloaterStatus; ///< Reg 636. Floater 1 level sensor status - U08 fpgaFloater2Status; ///< Reg 637. Floater 2 level sensor status - U16 fpgaD11PumpStepCountStatus; ///< Reg 638. Acid concentrate pump revolution down count status - U16 fpgaD10PumpStepCountStatus; ///< Reg 640. Bicarb concentrate pump revolution down count status - U16 fpgaAdcTemp; ///< Reg 642. TBD - U16 fpgaAdcVccInt; ///< Reg 644. TBD - U16 fpgaAdcVccAux; ///< Reg 646. TBD - U16 fpgaAdcVpVn; ///< Reg 648. TBD - U16 fpgaD12PumpSpeedFeedback; ///< Reg 650. D12 Pump speed feedback - U16 fpgaD48PumpSpeedFeedback; ///< Reg 652. D48 Pump Speed feedback - U16 fpgaD76PumpHallSense; ///< Reg 654. UF D76_Pump hall sensor pulse width - U16 fpgaD76PumpStepCountStatus; ///< Reg 656. UF pump revolution down count status - U08 fpgaD76PumpFault; ///< Reg 658: UF pump fault - U08 fpga_UnUsed_3; ///< reg 659: Not used + U16 fpgaD63LevelSensor; ///< Reg 540. Upper level Sensor + U16 fpgaD46LevelSensor; ///< Reg 542. Level Sensor 2 + U08 fpgaHallSensInputs; ///< Reg 544. Hall sensor Inputs + U08 fpgaD42TxFIFOCnt; ///< Reg 545. Blood leak sensor transmit FIFO count + U16 fpgaD42RxErrorCnt; ///< Reg 546. Blood leak sensor Receive error count + U16 fpgaD42RxFIFOCnt; ///< Reg 548. Blood leak sensor Receive FIFO count + U08 fpgaD42RxFIFODataOut; ///< Reg 550. Blood leak sensor Receive data + U08 fpgaD42PulseStatus; ///< Reg 551. Blood leak sensor status + U16 fpgaValveStates; ///< Reg 552. Valve status read + U16 fpgaValvePWMEnableStates; ///< Reg 554. Valve PWM Enable status read + U08 fpgaValveBCStates; ///< Reg 556. Balancing chamber Valves states + U08 fpgaValveBCPWMStates; ///< Reg 557. Balancing Chamber Valve PWM states + U08 fpgaValveSpStates; ///< Reg 558. DD Spare Valves states + U08 fpgaValveSpPWMStates; ///< Reg 559. Spare Valves PWM states + U08 fpgaD11_D10_PumpFault; ///< Reg 560. Concentrate pump fault register for D11_Pump and D10_Pump + U08 fpgaD78D1D4D50ErrorCounter; ///< Reg 561. Count of each incomplete seq of reads from RTD ADC. + U16 fpga_UnUsed_1; ///< Reg 562. Concentrate pump D11_Pump hall sensor pulse width + U16 fpga_UnUsed_2; ///< Reg 564. Concentrate pump D10_Pump hall sensor pulse width + U32 fpgaD78Temp; ///< Reg 566. Outlet heat exchanger temperature + U32 fpgaD1Temp; ///< Reg 570. Inlet heat exchanger temperature + U32 fpgaD4Temp; ///< Reg 574. Hydraulics primary heater temperature + U32 fpgaD50Temp; ///< Reg 578. Trimmer heater temperature + U16 fpgaD98LevelSensor; ///< Reg 582. Lower level Sensor + U16 fpgaD12MeasuredSpeed; ///< Reg 584. Fresh dialysate pump measured speed + U16 fpgaD48MeasuredSpeed; ///< Reg 586. Spent dialysate pump measured speed + U08 fpgaRTDReadCnt; ///< Reg 588. Read count for all RTD sensors + U08 fpgaD12D48PumpStatus; ///< Reg 589. Dialysate pumps Error status + U16 fpgaD12CurrentFeedback; ///< Reg 590. Fresh dialysate pump current feedback + U16 fpgaD48CurrentFeedback; ///< Reg 592. Spent dialysate pump current feedback + U08 fpgaD12HallStatus; ///< Reg 594. Fresh dialysate pump hall sensor direction status + U08 fpgaD48HallStatus; ///< Reg 595. Spent dialysate pump hall sensor direction status + U08 fpgaD6FloaterStatus; ///< Reg 596. Floater 1 level sensor status + U08 fpgaFloater2Status; ///< Reg 597. Floater 2 level sensor status + U16 fpgaD11PumpStepCountStatus; ///< Reg 598. Acid concentrate pump revolution down count status + U16 fpgaD10PumpStepCountStatus; ///< Reg 600. Bicarb concentrate pump revolution down count status + U16 fpgaAdcTemp; ///< Reg 602. TBD + U16 fpgaAdcVccInt; ///< Reg 604. TBD + U16 fpgaAdcVccAux; ///< Reg 606. TBD + U16 fpgaAdcVpVn; ///< Reg 608. TBD + U16 fpgaD12PumpSpeedFeedback; ///< Reg 610. D12 Pump speed feedback + U16 fpgaD48PumpSpeedFeedback; ///< Reg 612. D48 Pump Speed feedback + U16 fpga_UnUsed_3; ///< Reg 614. UF D76_Pump hall sensor pulse width + U16 fpgaD76PumpStepCountStatus; ///< Reg 616. UF pump revolution down count status + U08 fpgaD76PumpFault; ///< Reg 618: UF pump fault + U08 fpga_UnUsed_4; ///< Reg 619: Not used + S16 pressureP46; ///< Reg 620. P46 pressure data. + U16 temperatureP46; ///< Reg 622. P46 temperature data. + S16 pressureM3; ///< Reg 624. M3 pressure data. + U16 temperatureM3; ///< Reg 626. M3 temperature data. + S16 pressureP8; ///< Reg 628. P8 pressure data. + U16 temperatureP8; ///< Reg 630. P8 temperature data. + S16 pressureP13; ///< Reg 632. P13 pressure data. + U16 temperatureP13; ///< Reg 634. P13 temperature data. + S16 pressureP17; ///< Reg 636. P17 pressure data. + U16 temperatureP17; ///< Reg 638. P17 temperature data. + U16 p40PumpTachCount; ///< Reg 640. P40 pump tachometer counter. + U08 p25LevelSwitch; ///< Reg 642. P25 level switch. + U08 fpga_UnUsed_5; ///< Reg 643. Reserved. + U16 flowRateP7; ///< Reg 644. P7 flow sensor rate. + U16 flowTempP7; ///< Reg 646. P7 flow sensor temperature. + U16 p12PumpTachCount; ///< Reg 648. P12 pump tachometer counter. + U16 d79SpeedPulseWidth; ///< Reg 650. D79 pusle width feedback. + U16 flowIntTempP7; ///< Reg 652. P7 flow sensor internal temperature. + U08 valveIOControlReadback; ///< Reg 654. IO Valve control bits read back. + U08 valveFPControlReadback; ///< Reg 655. FP Valve control enable read back. + U08 valveIOPWMEnableReadback; ///< Reg 656. IO Valve PWM enable read back. + U08 valveFPPWMEnableReadback; ///< Reg 657. FP Valve PWM enable read back. + U16 p12PumpPWMReadback; ///< Reg 658. P12 pump PWM read back. + U16 p40PumpPWMReadback; ///< Reg 660. P40 pump PWM read back. + U08 p7flowReadCount; ///< Reg 662. P7 Flow sensor read counter. + U08 p7flowErrorCount; ///< Reg 663. P7 Flow sensor error counter. + U16 fpgaD87PresPressure; ///< Reg 664. D87 MPM pressure sensor RAW pressure data + U16 fpgaD87PresTemp; ///< Reg 666. D87 MPM pressure sensor RAW temperature data + U32 fpgaD99Temp; ///< Reg 668. D99 temperature sensor + U32 fpga_UnUsed_6; ///< Reg 672. eserved. + U32 fpga_UnUsed_7; ///< Reg 676. Reserved. + U08 ad7124errcnt; ///< Reg 680. Counter which increments when an invalid transaction happen between FPGA and AD7124. + U08 ad7124readcnt; ///< Reg 681. Counter which increments when a valid transaction happens between FPGA and AD7124. + U16 flowRateP16; ///< Reg 682. P16 flow sensor rate. + U16 flowTempP16; ///< Reg 684. P16 flow sensor temperature. + U16 flowIntTempP16; ///< Reg 686. P16 flow sensor internal temperature. + U08 p16flowReadCount; ///< Reg 688. P16 Flow sensor read counter. + U08 p16flowErrorCount; ///< Reg 689. P16 Flow sensor error counter. + U32 d11HallSense; ///< Reg 690. D11 Pump hall sensor optical sensor interface pulse width. + U32 d10HallSense; ///< Reg 694. D10 Pump hall sensor optical sensor interface pulse width. + U32 d76HallSense; ///< Reg 698. D76 Pump hall sensor optical sensor interface pulse width. + U32 d17CondCalData; ///< Reg 702. D16 Cal Word - Holds current word being read from cal memory. + U32 d17CondCond; ///< Reg 706. D16 Conductivity Measurement. + U32 d17CondTemp; ///< Reg 710. D16 Temperature Measurement. + U08 d17CondCondReadCount; ///< Reg 714. D16 Conductivity successful read count. + U08 d17CondCondErrorCount; ///< Reg 715. D16 Conductivity unsuccessful error count. + U08 d17CondTempReadCount; ///< Reg 716. D16 Temperature successful read count. + U08 d17CondTempErrorCount; ///< Reg 717. D16 Temperature unsuccessful error count. + U08 d17CondMemCounter; ///< Reg 718. D16 Cal memory counter that keeps track of which cal word. + U08 d74CondMemCounter; ///< Reg 719. D74 Cal memory counter that keeps track of which cal word. + U32 d74CondCalData; ///< Reg 720. D74 Cal Word - Holds current word being read from cal memory. + U32 d74CondCond; ///< Reg 724. D74 Conductivity Measurement. + U32 d74CondTemp; ///< Reg 728. D74 Temperature Measurement. + U08 d74CondCondReadCount; ///< Reg 732. D74 Conductivity successful read count. + U08 d74CondCondErrorCount; ///< Reg 733. D74 Conductivity unsuccessful error count. + U08 d74CondTempReadCount; ///< Reg 734. D74 Temperature successful read count. + U08 d74CondTempErrorCount; ///< Reg 735. D74 Temperature unsuccessful error count. + U32 d27CondCalData; ///< Reg 736. D27 Cal Word - Holds current word being read from cal memory. + U32 d27CondCond; ///< Reg 740. D27 Conductivity Measurement. + U32 d27CondTemp; ///< Reg 744. D27 Temperature Measurement. + U08 d27CondCondReadCount; ///< Reg 748. D27 Conductivity successful read count. + U08 d27CondCondErrorCount; ///< Reg 749. D27 Conductivity unsuccessful error count. + U08 d27CondTempReadCount; ///< Reg 750. D27 Temperature successful read count. + U08 d27CondTempErrorCount; ///< Reg 751. D27 Temperature unsuccessful error count. + U08 d27CondMemCounter; ///< Reg 752. D27 Cal memory counter that keeps track of which cal word. + U08 d29CondMemCounter; ///< Reg 753. D29 Cal memory counter that keeps track of which cal word. + U32 d29CondCalData; ///< Reg 754. D29 Cal Word - Holds current word being read from cal memory. + U32 d29CondCond; ///< Reg 758. D29 Conductivity Measurement. + U32 d29CondTemp; ///< Reg 762. D29 Temperature Measurement. + U08 d29CondCondReadCount; ///< Reg 766. D29 Conductivity successful read count. + U08 d29CondCondErrorCount; ///< Reg 767. D29 Conductivity unsuccessful error count. + U08 d29CondTempReadCount; ///< Reg 768. D29 Temperature successful read count. + U08 d29CondTempErrorCount; ///< Reg 769. D29 Temperature unsuccessful error count. + U32 d43CondCalData; ///< Reg 770. D43 Cal Word - Holds current word being read from cal memory. + U32 d43CondCond; ///< Reg 774. D43 Conductivity Measurement. + U32 d43CondTemp; ///< Reg 778. D43 Temperature Measurement. + U08 d43CondCondReadCount; ///< Reg 782. D43 Conductivity successful read count. + U08 d43CondCondErrorCount; ///< Reg 783. D43 Conductivity unsuccessful error count. + U08 d43CondTempReadCount; ///< Reg 784. D43 Temperature successful read count. + U08 d43CondTempErrorCount; ///< Reg 785. D43 Temperature unsuccessful error count. + U08 d43CondMemCounter; ///< Reg 786. D43 Cal memory counter that keeps track of which cal word. + U08 p9CondMemCounter; ///< Reg 787. P9 Cal memory counter that keeps track of which cal word. + U32 p9CondCalData; ///< Reg 788. P9 Cal Word - Holds current word being read from cal memory. + U32 p9CondCond; ///< Reg 792. P9 Conductivity Measurement. + U32 p9CondTemp; ///< Reg 796. P9 Temperature Measurement. + U08 p9CondCondReadCount; ///< Reg 800. P9 Conductivity successful read count. + U08 p9CondCondErrorCount; ///< Reg 801. P9 Conductivity unsuccessful error count. + U08 p9CondTempReadCount; ///< Reg 802. P9 Temperature successful read count. + U08 p9CondTempErrorCount; ///< Reg 803. P9 Temperature unsuccessful error count. + U32 p18CondCalData; ///< Reg 804. P18 Cal Word - Holds current word being read from cal memory. + U32 p18CondCond; ///< Reg 808. P18 Conductivity Measurement. + U32 p18CondTemp; ///< Reg 812. P18 Temperature Measurement. + U08 p18CondCondReadCount; ///< Reg 816. P18 Conductivity successful read count. + U08 p18CondCondErrorCount; ///< Reg 817. P18 Conductivity unsuccessful error count. + U08 p18CondTempReadCount; ///< Reg 818. P18 Temperature successful read count. + U08 p18CondTempErrorCount; ///< Reg 819. P18 Temperature unsuccessful error count. + U08 p18CondMemCounter; ///< Reg 820. P18 Cal memory counter that keeps track of which cal word. - S16 pressureP46; ///< Reg 660. P46 pressure data. - U16 temperatureP46; ///< Reg 662. P46 temperature data. - S16 pressureM3; ///< Reg 664. M3 pressure data. - U16 temperatureM3; ///< Reg 666. M3 temperature data. - S16 pressureP8; ///< Reg 668. P8 pressure data. - U16 temperatureP8; ///< Reg 670. P8 temperature data. - S16 pressureP13; ///< Reg 672. P13 pressure data. - U16 temperatureP13; ///< Reg 674. P13 temperature data. - S16 pressureP17; ///< Reg 676. P17 pressure data. - U16 temperatureP17; ///< Reg 678. P17 temperature data. - U16 p40PumpTachCount; ///< Reg 680. P40 pump tachometer counter. - U08 p25LevelSwitch; ///< Reg 682. P25 level switch. - U08 reserved4; ///< Reg 683. Reserved. - U32 conductivityP9Data; ///< Reg 684. P9 conductivity sensor data. - U16 conductivityP9Cond; ///< Reg 688. P9 conductivity sensor conductivity. - U16 conductivityP9Temp; ///< Reg 690. P9 conductivity sensor temperature. - U08 conductivityP9ReadCount; ///< Reg 692. P9 conductivity sensor read counter. - U08 conductivityP9ErrorCount; ///< Reg 693. P9 conductivity sensor error counter. - U32 conductivityP18Data; ///< Reg 694. P18 conductivity sensor data. - U16 conductivityP18Cond; ///< Reg 698. P18 conductivity sensor conductivity. - U16 conductivityP18Temp; ///< Reg 700. P18 conductivity sensor temperature. - U08 conductivityP18ReadCount; ///< Reg 702. P18 conductivity sensor read counter. - U08 conductivityP18ErrorCount; ///< Reg 703. P18 conductivity sensor error counter. - U16 flowRateP7; ///< Reg 704. P7 flow sensor rate. - U16 flowTempP7; ///< Reg 706. P7 flow sensor temperature. - U16 p12PumpTachCount; ///< Reg 708. P12 pump tachometer counter. - U16 d79SpeedPulseWidth; ///< Reg 710. D79 pusle width feedback. - U16 flowIntTempP7; ///< Reg 712. P7 flow sensor internal temperature. - U08 valveIOControlReadback; ///< Reg 714. IO Valve control bits read back. - U08 valveFPControlReadback; ///< Reg 715. FP Valve control enable read back. - U08 valveIOPWMEnableReadback; ///< Reg 714. IO Valve PWM enable read back. - U08 valveFPPWMEnableReadback; ///< Reg 715. FP Valve PWM enable read back. - U16 p12PumpPWMReadback; ///< Reg 718. P12 pump PWM read back. - U16 p40PumpPWMReadback; ///< Reg 720. P40 pump PWM read back. - U08 p7flowReadCount; ///< Reg 722. P7 Flow sensor read counter. - U08 p7flowErrorCount; ///< Reg 723. P7 Flow sensor error counter. - U16 fpgaD87PresPressure; ///< Reg 724. D87 MPM pressure sensor RAW pressure data - U16 fpgaD87PresTemp; ///< Reg 726. D87 MPM pressure sensor RAW temperature data - U32 fpgaD99Temp; ///< Reg 728. D99 temperature sensor - U32 tempTax1; ///< Reg 732. ( Tax1 ) temperature sensor reading. - U32 tempRTD; ///< Reg 736. spare temperature sensor reading. - U08 ad7124errcnt; ///< Reg 740. Counter which increments when an invalid transaction happen between FPGA and AD7124. - U08 ad7124readcnt; ///< Reg 741. Counter which increments when a valid transaction happens between FPGA and AD7124. - U16 flowRateP16; ///< Reg 742. P16 flow sensor rate. - U16 flowTempP16; ///< Reg 744. P16 flow sensor temperature. - U16 flowIntTempP16; ///< Reg 746. P16 flow sensor internal temperature. - U08 p16flowReadCount; ///< Reg 748. P16 Flow sensor read counter. - U08 p16flowErrorCount; ///< Reg 749. P16 Flow sensor error counter. - - U32 fpgaD74CondDataOut; ///< Reg 750. Data read from Conductivity Sensor D74 register - U16 fpgaD74CondCond; ///< Reg 754. D74 conductivity - U16 fpgaD74CondTemp; ///< Reg 756. D74 Temperature - U08 fpgaD74CondReadCnt; ///< Reg 758. D74 successful read count - U08 fpgaD74CondErrorCnt; ///< Reg 759. D74 error read count } DD_FPGA_SENSORS_T; typedef struct @@ -275,73 +298,58 @@ U08 fpgaBCValvePWMControl; ///< Reg 15. Balancing Chamber Valves PWM control U08 fpgaDDSpareValveControl; ///< Reg 16. Spare Valves Control Registers U08 fpgaDDSpareValvePWMControl; ///< Reg 17. Spare Valves PWM control - U08 fpgaConSensD17D74Control; ///< Reg 18. Conductivity/Temperature Sensors D17 & D74 Control registers - U08 fpgaConSensD27D29Control; ///< Reg 19. Conductivity/Temperature Sensors D27 & D29 Control registers - U16 fpgaConSensD17D74_Addrs; ///< Reg 20. D17,D74 Initialization Address register - U32 fpgaConSensD17D74_Data_In; ///< Reg 22. D17,D74 Initialization data register - U16 fpgaConSensD27D29_Addrs; ///< Reg 26. D27,D29 Initialization Address register - U32 fpgaConSensD27D29_Data_In; ///< Reg 28. D27,D29 Initialization data register - U16 fpgaRemoteUpdate_Write; ///< Reg 32.Register for Remote update used by SW. - U16 fpgaD12PumpSpeed; ///< Reg 34. D48 Speed/RPM Control - U08 fpgaD12PumpControl; ///< Reg 36. DGP Control - U08 fpgaD48PumpControl; ///< Reg 37. SDP Control - U16 fpgaD48PumpSpeed; ///< Reg 38. SDP Speed/RPM Control - U16 fpgaD11PumpSpeed; ///< Reg 40. Acid Concentrate Pump Speed/RPM Control - U08 fpgaD11PumpControl; ///< Reg 42. Acid Concentrate Pump Control - U08 fpgaD10PumpControl; ///< Reg 43. BiCarb Concentrate Pump Control - U16 fpgaD10PumpSpeed; ///< Reg 44. BiCarb Concentrate Pump Speed/RPM Control - U08 fpgaD42SensorTest; ///< Reg 46. Blood leak sensor test - U08 fpgaD42UARTControl; ///< Reg 47. Blood leak sensor UART control - U08 fpgaD42FIFOTx; ///< Reg 48. Blood leak sensor FIFO transmit control - U08 fpgaD5HeaterPWMControl; ///< Reg 49. Primary heater PWM control - U08 fpgaD45HeaterPWMControl; ///< Reg 50. Trimmer heater PWM control - U08 fpgaD79PWMPumpCtl; ///< Reg 51. Rinse pump PWM control - U16 fpgaVBCPWMLow; ///< Reg 52. VBC PWM low ( Balancing chamber valves) - U16 fpgaVBCPWMPeriod; ///< Reg 54. VBC PWM period - U16 fpgaVBCPWMPullIn; ///< Reg 56. VBC PWM pull in - U16 fpgaVSPPWMLow; ///< Reg 58. VSP PWM low ( Spare valves ) - U16 fpgaVSPPWMPeriod; ///< Reg 60. VSP PWM period - U16 fpgaVSPPWMPullIn; ///< Reg 62. VSP PWM pull in - U16 fpgaD11PumpRevCount; ///< Reg 64. Acid Concentrate pump revolution count - U16 fpgaD10PumpRevCount; ///< Reg 66. Bicarb Concentrate pump revolution count - U08 fpgaADCControl; ///< Reg 68. FPGA internal ADC Control register for debugging - U08 fpgaGPIOControl; ///< Reg 69. FPGA GPIO control interface - U16 fpgaACRelayPWMLow; ///< Reg 70. Length of time in 10us resoultion that PWM output stays low. - U16 fpgaACRelayPWMPeriod; ///< Reg 72. PWM period for AC relay/heater. - U16 fpgaD76PumpSpeed; ///< Reg 74. UF Pump Speed/RPM Control - U16 fpgaD76PumpRevCount; ///< Reg 76. UF pump revolution count - U08 fpgaD76PumpControl; ///< Reg 78. UF Pump Control + U16 fpgaRemoteUpdate_Write; ///< Reg 18. Register for Remote update used by SW. + U16 fpgaD12PumpSpeed; ///< Reg 20. D48 Speed/RPM Control + U08 fpgaD12PumpControl; ///< Reg 22. DGP Control + U08 fpgaD48PumpControl; ///< Reg 23. SDP Control + U16 fpgaD48PumpSpeed; ///< Reg 24. SDP Speed/RPM Control + U08 fpgaD11PumpControl; ///< Reg 28. Acid Concentrate Pump Control + U08 fpgaD10PumpControl; ///< Reg 29. BiCarb Concentrate Pump Control + U08 fpgaD42SensorTest; ///< Reg 32. Blood leak sensor test + U08 fpgaD42UARTControl; ///< Reg 33. Blood leak sensor UART control + U08 fpgaD42FIFOTx; ///< Reg 34. Blood leak sensor FIFO transmit control + U08 fpgaD5HeaterPWMControl; ///< Reg 35. Primary heater PWM control + U08 fpgaD45HeaterPWMControl; ///< Reg 36. Trimmer heater PWM control + U08 fpgaD79PWMPumpCtl; ///< Reg 37. Rinse pump PWM control + U16 fpgaVBCPWMLow; ///< Reg 38. VBC PWM low ( Balancing chamber valves) + U16 fpgaVBCPWMPeriod; ///< Reg 40. VBC PWM period + U16 fpgaVBCPWMPullIn; ///< Reg 42. VBC PWM pull in + U16 fpgaVSPPWMLow; ///< Reg 44. VSP PWM low ( Spare valves ) + U16 fpgaVSPPWMPeriod; ///< Reg 46. VSP PWM period + U16 fpgaVSPPWMPullIn; ///< Reg 48. VSP PWM pull in + U16 fpgaD11PumpRevCount; ///< Reg 50. Acid Concentrate pump revolution count + U16 fpgaD10PumpRevCount; ///< Reg 52. Bicarb Concentrate pump revolution count + U08 fpgaADCControl; ///< Reg 54. FPGA internal ADC Control register for debugging + U08 fpgaGPIOControl; ///< Reg 55. FPGA GPIO control interface + U16 fpgaACRelayPWMLow; ///< Reg 56. Length of time in 10us resoultion that PWM output stays low. + U16 fpgaACRelayPWMPeriod; ///< Reg 58. PWM period for AC relay/heater. + U16 reserved1; ///< Reg 60. Reserved + U16 fpgaD76PumpRevCount; ///< Reg 62. UF pump revolution count + U08 fpgaD76PumpControl; ///< Reg 64. UF Pump Control + U08 reserved2; ///< Reg 65. Reserved + U08 valveIOControl; ///< Reg 66. IO Valve control register. + U08 valveFPControl; ///< Reg 67. FP Valve control register. + U16 descalePumpSpeed; ///< Reg 68. Descaler pump speed register. + U08 descalePumpControl; ///< Reg 70. Descaler pump control register. + U08 p12PumpControl; ///< Reg 71. P12 pump control register. + U16 valveIOFPPWMLow; ///< Reg 72. Valve VWi PWM low pulse period in 0.1 uSec. + U16 valveIOFPPWMPeriod; ///< Reg 74. Valve VWi PWM full period in 0.1 uSec. + U16 valveIOFPPWMPullIn; ///< Reg 76. Valve PWM high pulse period when valve is on in 0.1 uSec. + U16 p12PumpPWMDutyCyclePct; ///< Reg 78. P12 pump PWM duty cycle in percentage. + U16 p40PumpPWMDutyCyclePct; ///< Reg 80. P40 pump PWM duty cycle in percentage. + U08 p40PumpControl; ///< Reg 82. P40 pump control register. + U08 reserved3; ///< Reg 83. Reserved. + U08 flowControlp7; ///< Reg 84. P7 AVS Romer flow sensor control register. + U08 flowAddressp7; ///< Reg 85. P7 AVS Romer flow sensor I2C slave address register. + U08 valveIOPWMEnable; ///< Reg 86. Valve IO PWM enable register. + U08 valveFPPWMEnable; ///< Reg 87. Valve FP PWM enable register. + U08 flowControlp16; ///< Reg 88. P16 AVS Romer flow sensor control register. + U08 flowAddressp16; ///< Reg 89. P16 AVS Romer flow sensor I2C slave address register. + U08 reserved4; ///< Reg 90. Reserved. + U32 fpgaD11PumpSpeed; ///< Reg 92. Acid Concentrate Pump Speed/RPM Control + U32 fpgaD10PumpSpeed; ///< Reg 94. BiCarb Concentrate Pump Speed/RPM Control + U32 fpgaD76PumpSpeed; ///< Reg 96. UF Pump Speed/RPM Control - U08 notused; ///< Reg 79. Not used - U08 valveIOControl; ///< Reg 80. IO Valve control register. - U08 valveFPControl; ///< Reg 81. FP Valve control register. - U08 conductivityP9Control; ///< Reg 82. P9 conductivity control register. - U08 conductivityP18Control; ///< Reg 83. P18 conductivity control register. - U16 conductivityP9Address; ///< Reg 84. P9 conductivity address register. - U32 conductivityP9Data; ///< Reg 86. P9 conductivity data in register. - U16 conductivityP18Address; ///< Reg 90. P18 conductivity address register. - U32 conductivityP18Data; ///< Reg 92. P18 conductivity data in register. - U16 descalePumpSpeed; ///< Reg 96. Descaler pump speed register. - U08 descalePumpControl; ///< Reg 98. Descaler pump control register. - U08 p12PumpControl; ///< Reg 99. P12 pump control register. - U16 valveIOFPPWMLow; ///< Reg 100. Valve VWi PWM low pulse period in 0.1 uSec. - U16 valveIOFPPWMPeriod; ///< Reg 102. Valve VWi PWM full period in 0.1 uSec. - U16 valveIOFPPWMPullIn; ///< Reg 104. Valve PWM high pulse period when valve is on in 0.1 uSec. - U16 p12PumpPWMDutyCyclePct; ///< Reg 106. P12 pump PWM duty cycle in percentage. - U16 p40PumpPWMDutyCyclePct; ///< Reg 108. P40 pump PWM duty cycle in percentage. - U08 p40PumpControl; ///< Reg 110. P40 pump control register. - U08 reserved1; ///< Reg 111. Reserved. - U08 flowControlp7; ///< Reg 112. P7 AVS Romer flow sensor control register. - U08 flowAddressp7; ///< Reg 113. P7 AVS Romer flow sensor I2C slave address register. - U08 valveIOPWMEnable; ///< Reg 114. Valve IO PWM enable register. - U08 valveFPPWMEnable; ///< Reg 115. Valve FP PWM enable register. - U08 flowControlp16; ///< Reg 116. P16 AVS Romer flow sensor control register. - U08 flowAddressp16; ///< Reg 117. P16 AVS Romer flow sensor I2C slave address register. - - U08 fpgaConSensD43Control; ///< Reg 118. Conductivity/Temperature Sensors D43 Control registers - U16 fpgaConSensD43_Addrs; ///< Reg 119. D43 Initialization Address register - U32 fpgaConSensD43_Data_In; ///< Reg 121. D43 Initialization data register - } FPGA_ACTUATORS_T; #pragma pack(pop) @@ -989,744 +997,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 @@ -2225,7 +1495,7 @@ *************************************************************************/ U16 getFPGAD11PumpHallSensePulseWidth( void ) { - return fpgaSensorReadings.fpgaD11PumpHallSense; + return fpgaSensorReadings.d11HallSense; } /*********************************************************************//** @@ -2238,7 +1508,7 @@ *************************************************************************/ U16 getFPGAD10PumpHallSensePulseWidth( void ) { - return fpgaSensorReadings.fpgaD10PumpHallSense; + return fpgaSensorReadings.d10HallSense; } /*********************************************************************//** @@ -2251,7 +1521,7 @@ *************************************************************************/ U16 getFPGAD76PumpHallSensePulseWidth( void ) { - return fpgaSensorReadings.fpgaD76PumpHallSense; + return fpgaSensorReadings.d76HallSense; } /*********************************************************************//** @@ -2453,306 +1723,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 @@ -2913,7 +1883,7 @@ *************************************************************************/ U08 getFPGARTDCountErrorCycles( void ) { - return fpgaSensorReadings.fpgaRTDCountErrorCycles; + return fpgaSensorReadings.fpgaD78D1D4D50ErrorCounter; } /*********************************************************************//** @@ -3604,479 +2574,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; +} /**@}*/