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];
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);