]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control-pxmc.git/blobdiff - src/app/rpi-pmsm-test1/pxmc_spimc.h
RPi PXMC Test: add evaluation and extension of index position to 32 bits.
[fpga/rpi-motor-control-pxmc.git] / src / app / rpi-pmsm-test1 / pxmc_spimc.h
index 1bc4e40524c4ce464d06f4de4d11ba8c09afca93..b26f71f8705c70c90521df982fc47005b1629d3d 100644 (file)
@@ -16,6 +16,7 @@ typedef struct spimc_state_t {
   uint32_t pwm[SPIMC_CHAN_COUNT];
   uint32_t act_pos;
   uint32_t index_pos;
+  uint32_t index_occur;
   uint32_t pos_offset;
   int32_t  curadc_val[SPIMC_CHAN_COUNT];
   int32_t  curadc_offs[SPIMC_CHAN_COUNT];