#define PXMCC_CURADC_CHANNELS 16
#define PXMCC_MODE_IDLE 2
-#define PXMCC_MODE_MODE_BLDC 0
+#define PXMCC_MODE_BLDC 0
#define PXMCC_MODE_STEPPER_WITH_IRC 1
+#define PXMCC_MODE_STEPPER 3
typedef struct pxmcc_common_data_t {
uint32_t fwversion;
uint32_t act_idle;
uint32_t min_idle;
uint32_t rx_done_sqn;
+ uint32_t irc_base;
} pxmcc_common_data_t;
typedef struct pxmcc_axis_data_t {
uint32_t out_info; /* output index */
uint32_t pwmtx_info; /* offsets of pwm1 .. pwm4 from FPGA_LX_MASTER_TX */
uint32_t pwm_prew[4];
+ uint32_t steps_inc; /* increments for selfgenerated stepper motor */
+ uint32_t steps_pos; /* self generated position for stepper motor */
+ uint32_t steps_sqn_next; /* when to apply steps_inc_next */
+ uint32_t steps_inc_next; /* increment to apply at steps_sqn_next */
+ uint32_t steps_pos_next; /* base position to apply at steps_sqn_next */
} pxmcc_axis_data_t;
typedef struct pxmcc_curadc_data_t {