/* ************************************************************** */ /* * Module MOVEXPARAM * This module contains functions to assist in parameter handling * for the MOVEX module. * * Zachary Wolf * 6/15/01 */ /* ************************************************************** */ /* INCLUDES */ #include #include "movex.h" /* ************************************************************** */ /* PUBLIC FUNCTIONS */ /* ************************************************************** */ /* * movexparam_fill_param_struct * This function fills the parameter structure using # defined * parameters. * * Zachary Wolf * 6/15/01 */ void movexparam_fill_param_struct(struct movex_param_struct* movex_param) { /* Include parameter definitions */ #include "param.h" /* Set the MOVEX parameters */ movex_param->board_addr = MOVEX_BOARD_ADDR; movex_param->mc4_addr = MOVEX_MC4_ADDR; movex_param->pm500_addr = MOVEX_PM500_ADDR; movex_param->device_type = MOVEX_DEVICE_TYPE; movex_param->mc4_x_axis = MOVEX_MC4_X_AXIS; movex_param->mc4_xs_axis = MOVEX_MC4_Xs_AXIS; movex_param->pm500_x_axis = MOVEX_PM500_X_AXIS; movex_param->pm500_xs_axis = MOVEX_PM500_Xs_AXIS; movex_param->acc = MOVEX_ACC; movex_param->vel = MOVEX_VEL; /* Done */ return; }