Index: firmware/App/Services/FPGA.c =================================================================== diff -u -r315969d00060073e112c4619946c13a61f68bcbd -r5a515a3cdc780cab4657e9b5c013944126f9cc28 --- firmware/App/Services/FPGA.c (.../FPGA.c) (revision 315969d00060073e112c4619946c13a61f68bcbd) +++ firmware/App/Services/FPGA.c (.../FPGA.c) (revision 5a515a3cdc780cab4657e9b5c013944126f9cc28) @@ -194,6 +194,7 @@ U16 VDiCurrent; ///< Reg 410. VDi pinch valve current (Register VAUX11) U16 VSpareSpeed; ///< Reg 412. VSpare speed (Register VAUX5) U16 VSpareCurrent; ///< Reg 414. VSpare current (Register VAUX13) + U16 fpgaTimerCount; ///< Reg 416. Internal FPGA timer count. } FPGA_SENSORS_T; /// Record structure for FPGA continuous priority writes. @@ -1518,6 +1519,18 @@ /*********************************************************************//** * @brief + * The getFPGATimerCount function gets the latest FPGA timer count. + * @details Inputs: fpgaSensorReadings + * @details Outputs: none + * @return last FPGA timer count + *************************************************************************/ +U16 getFPGATimerCount( void ) +{ + return fpgaSensorReadings.fpgaTimerCount; +} + +/*********************************************************************//** + * @brief * The getFPGAAccelAxes function gets the accelerometer axis readings. * Axis readings are in ADC counts. 0.004 g per LSB. * @details Inputs: fpgaSensorReadings