]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control-pxmc.git/blobdiff - src/app/rpi-pmsm-test1/pxmc_spimc.h
RPi PXMC Test: switch current calibration to work for cumulative ADC FPGA design.
[fpga/rpi-motor-control-pxmc.git] / src / app / rpi-pmsm-test1 / pxmc_spimc.h
index b26f71f8705c70c90521df982fc47005b1629d3d..f9768cf9b40cb7a9296e5a05dfccc657051547b8 100644 (file)
@@ -25,8 +25,9 @@ typedef struct spimc_state_t {
   uint16_t curadc_sqn_last;
   uint32_t curadc_cumsum[SPIMC_CHAN_COUNT];
   uint32_t curadc_cumsum_last[SPIMC_CHAN_COUNT];
-  uint8_t tx_buf[SPIMC_TRANSFER_SIZE];
-  uint8_t rx_buf[SPIMC_TRANSFER_SIZE];
+  uint8_t  tx_buf[SPIMC_TRANSFER_SIZE];
+  uint8_t  rx_buf[SPIMC_TRANSFER_SIZE];
+  int      curadc_use_diff_to_last_fl;
 } spimc_state_t;
 
 int spimc_init(spimc_state_t *spimcst);