X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/rpi-motor-control.git/blobdiff_plain/9650ac29cdffe74d39e64da32a34384dcd9db72f..526f31a42665da0c8d341f6532e579bd8bea2730:/pmsm-control/test_sw/rp_spi.h diff --git a/pmsm-control/test_sw/rp_spi.h b/pmsm-control/test_sw/rp_spi.h index 28de88d..4b1cfa6 100644 --- a/pmsm-control/test_sw/rp_spi.h +++ b/pmsm-control/test_sw/rp_spi.h @@ -9,7 +9,7 @@ * \brief Struktura pro prichozi data z fpga. */ struct rpi_in{ - uint32_t pozice; /*continue with normal size and test it..*/ + signed long int pozice; /*continue with normal size and test it..*/ uint32_t pozice_raw; /*with offset*/ uint32_t ch0, ch1, ch2; int8_t hal1,hal2,hal3; /* bool values */ @@ -20,6 +20,8 @@ struct rpi_in{ uint16_t index_position; /* raw position of irc_i */ }; +struct rpi_state; + /** * \brief Testovaci funkce. */ @@ -35,6 +37,6 @@ int spi_init(void); */ void spi_disable(void); -struct rpi_in spi_read(uint8_t *); +void spi_read(struct rpi_state*); #endif /*RP_SPI*/