/* ************************************************************** */ /* * Module WIRPOSPARAM * This module contains functions to assist in parameter handling * for the WIRPOS module. * * Zachary Wolf * 6/3/05 */ /* ************************************************************** */ /* INCLUDES */ #include #include "wirpos.h" /* ************************************************************** */ /* PUBLIC FUNCTIONS */ /* ************************************************************** */ /* * wirposparam_fill_param_struct * This function fills the parameter structure using # defined * parameters. * * Zachary Wolf * 6/3/05 */ void wirposparam_fill_param_struct(struct wirpos_param_struct* wirpos_param) { /* Declare variables */ int i; /* Include parameter definitions */ #include "param.h" /* Set the WIRPOS parameters */ wirpos_param->board_addr = WIRPOS_BOARD_ADDR; wirpos_param->esp7000_addr = WIRPOS_ESP7000_ADDR; wirpos_param->hp34970_addr = WIRPOS_HP34970_ADDR; wirpos_param->device_type = WIRPOS_DEVICE_TYPE; wirpos_param->acc = WIRPOS_ACC; wirpos_param->vel = WIRPOS_VEL; wirpos_param->num_wire_det = WIRPOS_NUM_WIRE_DET; wirpos_param->show_ui = WIRPOS_TRUE; for (i = 0; i < WIRPOS_NUM_WIRE_DET; i++) wirpos_param->det_info[i] = WIRPOS_DET_INFO[i]; /* Done */ return; }