X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/rpi-motor-control.git/blobdiff_plain/8945272802e6d9bdd317bced4aba96d7ca442e9b..c4cdcbe5bfaecb9024e4fe41be29a4541653b8ef:/pmsm-control/test_sw/rp_spi.h?ds=sidebyside diff --git a/pmsm-control/test_sw/rp_spi.h b/pmsm-control/test_sw/rp_spi.h index 7d2dd7f..d286fa2 100644 --- a/pmsm-control/test_sw/rp_spi.h +++ b/pmsm-control/test_sw/rp_spi.h @@ -8,7 +8,8 @@ * \brief Struktura pro prichozi data z fpga. */ struct rpi_in{ - uint64_t pozice; /*use twice the origin size to avoid underflow when sunstracting offset*/ + uint32_t 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 */ int8_t en1, en2, en3; /*(bool)last read pwm-enable values - !they are changed after reading ! */ @@ -16,6 +17,7 @@ struct rpi_in{ int8_t b54, b53, b52, b51, b50, b49, b48, b47, b46, b45, b44, b43, b42, b41, b40, b39, b38, b37, b36; /*bits for debug*/ uint16_t adc_m_count; /*current measurments count*/ uint8_t debug_rx[16]; + uint16_t index_position; /* raw position of irc_i */ }; /**