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 Index: firmware/App/Services/FPGA.h =================================================================== diff -u -r04f033af4174bf41a7aa0ff9ccaae45b77472e01 -r5a515a3cdc780cab4657e9b5c013944126f9cc28 --- firmware/App/Services/FPGA.h (.../FPGA.h) (revision 04f033af4174bf41a7aa0ff9ccaae45b77472e01) +++ firmware/App/Services/FPGA.h (.../FPGA.h) (revision 5a515a3cdc780cab4657e9b5c013944126f9cc28) @@ -90,6 +90,8 @@ U16 getFPGASyringePumpADCChannel2( void ); U16 getFPGASyringePumpADCChannel3( void ); +U16 getFPGATimerCount( void ); + void getFPGAAccelAxes( S16 *x, S16 *y, S16 *z ); void getFPGAAccelMaxes( S16 *xm, S16*ym, S16*zm ); void getFPGAAccelStatus( U16 *cnt, U16 *accelFPGAFaultReg );