Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r40b37059da0ecd27dc9beb48614f6f3869d18732 -r7611b3a8e323b688441c88f56aa114d292efd4e1 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 40b37059da0ecd27dc9beb48614f6f3869d18732) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 7611b3a8e323b688441c88f56aa114d292efd4e1) @@ -1611,6 +1611,32 @@ /*********************************************************************//** * @brief + * The getFPGAArterialPressureReadCounter function gets the latest arterial + * pressure sensor read counter. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return last arterial pressure sensor read counter + *************************************************************************/ +U08 getFPGAArterialPressureReadCounter( void ) +{ + return fpgaSensorReadings.adc1SequenceCount; +} + +/*********************************************************************//** + * @brief + * The getFPGAArterialPressureErrorCounter function gets the latest arterial + * pressure sensor error counter. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return last arterial pressure sensor error counter + *************************************************************************/ +U08 getFPGAArterialPressureErrorCounter( void ) +{ + return fpgaSensorReadings.adc1ErrorCount; +} + +/*********************************************************************//** + * @brief * The getFPGAVenousPressure function gets the latest venous pressure reading. * The high 2 bits are status bits: 00=ok, 01=cmd mode, 10=stale data, 11=diag * The low 14 bits are data. Zero is at 1638. Values above are positive,