]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/pmsm_state.h
Regulation function now implemented with use of polymorphism.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / pmsm_state.h
index 583eb73cdc253a1ded565a4ba9a7667d19e83380..6fc77f475f47e20db4ca339ea3dc06bfe0ec5038 100644 (file)
@@ -73,4 +73,19 @@ inline void setCommutationOn(struct rpi_state*);
  */
 inline void setCommutationOff(struct rpi_state*);
 
+/**
+ * Turn on speed regulation.
+ */
+inline void setRegulationSpeed(struct rpi_state*);
+
+/**
+ * \brief Turn on position regulation
+ */
+inline void setRegulationPos(struct rpi_state*);
+
+/**
+ * \brief Turn off regulation.
+ */
+inline void setRegulationOff(struct rpi_state*);
+
 #endif /*PMSM_STATE*/