/* ************************************************************** */ /* * Module MOVEXYPARAM * This module contains functions to assist in parameter handling * for the MOVEXY module. * * Zachary Wolf * 12/19/00 */ /* ************************************************************** */ /* INCLUDES */ #include #include "movexy.h" /* ************************************************************** */ /* PUBLIC FUNCTIONS */ /* ************************************************************** */ /* * movexyparam_fill_param_struct * This function fills the parameter structure using # defined * parameters. * * Zachary Wolf * 12/19/00 */ void movexyparam_fill_param_struct(struct movexy_param_struct* movexy_param) { /* Include parameter definitions */ #include "param.h" /* Set the MOVEXY parameters */ movexy_param->board_addr = MOVEXY_BOARD_ADDR; movexy_param->mc4_addr = MOVEXY_MC4_ADDR; movexy_param->device_type = MOVEXY_DEVICE_TYPE; movexy_param->mc4_x_axis = MOVEXY_MC4_X_AXIS; movexy_param->mc4_y_axis = MOVEXY_MC4_Y_AXIS; movexy_param->acc = MOVEXY_ACC; movexy_param->vel = MOVEXY_VEL; /* Done */ return; }