X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/rpi-motor-control.git/blobdiff_plain/34c6632a92d19c06bbdef9dcc4eb754b21ade81d..526f31a42665da0c8d341f6532e579bd8bea2730:/pmsm-control/test_sw/pmsm_state.h diff --git a/pmsm-control/test_sw/pmsm_state.h b/pmsm-control/test_sw/pmsm_state.h index 5d02be2..b1946a6 100644 --- a/pmsm-control/test_sw/pmsm_state.h +++ b/pmsm-control/test_sw/pmsm_state.h @@ -46,8 +46,29 @@ struct rpi_state{ int log_col_count; /* number of log columns */ int log_col; /* current colimn */ char doLogs; /* schall we make logs? */ + + void (*main_commutator)(struct rpi_state*); /* primarni komutator */ + void (*main_controller)(struct rpi_state*); /* primarni regulator */ }; -void freeLogs(); +/** + * Index OK. + */ +inline void setIndexOK(struct rpi_state*); + +/** + * Index Lost. + */ +inline void setIndexLost(struct rpi_state*); + +/** + * Turn commutation on. + */ +inline void setCommutationOn(struct rpi_state*); + +/** + * Turn commutation off. + */ +inline void setCommutationOff(struct rpi_state*); #endif /*PMSM_STATE*/