Index: firmware/App/Services/FpgaTD.h =================================================================== diff -u -r50f4b79164155c1bc375dd3ff0e8588f934dc729 -r51f42cd88bd9c50ed9096a2d1d8ff859a95aff95 --- firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision 50f4b79164155c1bc375dd3ff0e8588f934dc729) +++ firmware/App/Services/FpgaTD.h (.../FpgaTD.h) (revision 51f42cd88bd9c50ed9096a2d1d8ff859a95aff95) @@ -32,8 +32,8 @@ // ********** public definitions ********** // Bit definitions for pinch valve control register -#define FPGA_PINCH_VALVES_1_32_STEP 0x03 ///< Bit mask for configuring pinch valve for 1/32 step. -#define FPGA_PINCH_VALVES_REVERSE 0x08 ///< Bit mask for configuring pinch valve for reverse direction. +#define FPGA_PINCH_VALVES_1_8_STEP 0x07 ///< Bit mask for configuring pinch valve for 1/8 step microstepping. +#define FPGA_PINCH_VALVES_RESET_ENCODER 0x08 ///< Bit mask for configuring pinch valve to reset the encoder. #define FPGA_PINCH_VALVES_DISABLE 0x10 ///< Bit mask for configuring pinch valve to be disabled. #define FPGA_PINCH_VALVES_NOT_RESET 0x20 ///< Bit mask for configuring pinch valve to not be in reset. #define FPGA_PINCH_VALVES_NOT_SLEEP 0x40 ///< Bit mask for configuring pinch valve to not be in sleep mode. @@ -104,14 +104,14 @@ void setH19Control( U08 controlBits ); U08 getH19Control( void ); -void setH19Position( U16 setPoint ); +void setH19Position( S16 setPoint ); S16 getH19EncoderPosition( void ); S16 getH19CmdPosition( void ); U16 getH19Status( void ); void setH1Control( U08 controlBits ); U08 getH1Control( void ); -void setH1Position( U16 setPoint ); +void setH1Position( S16 setPoint ); S16 getH1EncoderPosition( void ); S16 getH1CmdPosition( void ); U16 getH1Status( void );