/* ************************************************************** */ /* * Module VMAGPARAM * This module contains functions to assist in parameter handling * for the VMAG module. * * Zachary Wolf * 12/15/00 */ /* ************************************************************** */ /* INCLUDES */ #include #include "vmag.h" /* ************************************************************** */ /* PUBLIC FUNCTIONS */ /* ************************************************************** */ /* * vmagparam_fill_param_struct * This function fills the parameter structure using # defined * parameters. * * Zachary Wolf * 12/15/00 */ void vmagparam_fill_param_struct(struct vmag_param_struct* vmag_param) { /* Declare variables */ int i; /* Include parameter definitions */ #include "param.h" /* Set the VMAG parameters */ vmag_param->board_addr = VMAG_BOARD_ADDR; vmag_param->hp3457_addr = VMAG_HP3457_ADDR; vmag_param->k7011_addr = VMAG_K7011_ADDR; vmag_param->device_type = VMAG_DEVICE_TYPE; vmag_param->hp3457_chan = VMAG_HP3457_CHAN; vmag_param->k7011_card_num = VMAG_K7011_CARD_NUM; vmag_param->k7011_hp3457_chan = VMAG_K7011_HP3457_CHAN; vmag_param->k7011_chan = VMAG_K7011_CHAN; vmag_param->show_ui = VMAG_SHOW_UI; /* Done */ return; }