void (*main_commutator)(struct rpi_state*); /* primarni komutator */
void (*main_controller)(struct rpi_state*); /* primarni regulator */
+
+ char error; /* detekce chyboveho stavu */
+
+ int8_t h1_old,h2_old,h3_old; /* stare hodnoty hallu */
};
/**
* Index OK.
*/
-void setIndexOK(struct rpi_state*);
+inline void setIndexOK(struct rpi_state*);
/**
* Index Lost.
*/
-void setIndexLost(struct rpi_state*);
+inline void setIndexLost(struct rpi_state*);
/**
* Turn commutation on.
*/
-void setCommutationOn(struct rpi_state*);
+inline void setCommutationOn(struct rpi_state*);
/**
* Turn commutation off.
*/
-void setCommutationOff(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*/