]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/pmsm_state.h
Function Init_logs moved to right place.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / pmsm_state.h
index 376e2f8482e779a75f22960a6583a81dd5556952..583eb73cdc253a1ded565a4ba9a7667d19e83380 100644 (file)
@@ -49,26 +49,28 @@ struct rpi_state{
 
        void (*main_commutator)(struct rpi_state*);     /* primarni komutator */
        void (*main_controller)(struct rpi_state*);     /* primarni regulator */
+
+       char error;                     /* detekce chyboveho stavu */
 };
 
 /**
  * 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*);
 
 #endif /*PMSM_STATE*/