]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/rp_spi.h
Current measurment bits transferring via SPI from FPGA to RPi extended from 12 to...
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / rp_spi.h
index a5cc7192b06280e82b49576592abc00d0f2ae313..999d7b344a74a42933dcacf10c1595f3c74b0408 100644 (file)
@@ -9,7 +9,7 @@
  */
 struct rpi_in{
        uint64_t pozice;                /*use twice the origin size to avoid underflow when sunstracting offset*/
-       uint16_t ch0, ch1, ch2;
+       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 ! */
        int8_t shdn1,shdn2,shdn3;       /*(bool)last read shutdown values - !they are changed after reading ! */