/**
* Index Lost.
*/
-void setIndexLost(struct rpi_state* this){
+inline void setIndexLost(struct rpi_state* this){
this->index_ok=0;
this->main_commutator=simple_hall_commutator;
}
/**
* Index OK.
*/
-void setIndexOK(struct rpi_state* this){
+inline void setIndexOK(struct rpi_state* this){
this->index_ok=1;
this->main_commutator=inv_trans_comm_2;
}
/**
* Turn commutation on.
*/
-void setCommutationOn(struct rpi_state* this){
+inline void setCommutationOn(struct rpi_state* this){
this->commutate=1;
if (this->index_ok){
this->main_commutator=inv_trans_comm_2;
/**
* Turn commutation off.
*/
-void setCommutationOff(struct rpi_state* this){
+inline void setCommutationOff(struct rpi_state* this){
this->commutate=0;
this->main_commutator=zero_commutator;
}
/**
* 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*/