/************************************************************************ * * * MPS Communication routines * * * * * * Author Date Comment * *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~* * Michael Cecere 09/2006 ************************************************************************/ void MPS_Init(); /**************************************************************************** * * MPS_OverCharge * * Sets the MPS outputs for each toroid * if data>0 then output set (is overcharge) * if data<=0 the output un-set (is not overcharge condition) * * michael cecere 09/2006 * ****************************************************************************/ void MPS_OverCharge(unsigned data); /**************************************************************************** * * MPS_Comparator * * Sets the MPS outputs for each toroid based on data input * * if data<=0 the output un-set (is not overcharge condition) * * michael cecere 09/2006 * ****************************************************************************/ void MPS_Comparator(unsigned data); /**************************************************************************** * * MPS_Update * * calculates status of each MPS channel and drives the outputs * * * * * michael cecere 09/2006 * ****************************************************************************/ void MPS_Update(int MPS_prt); /**************************************************************************** * * Init_MPS_Parameters * * to be called once to initialize MPS parameter * such as which chans are comparators etc. * * ****************************************************************************/ void Init_MPS_Parameters(); /***************************************************************************** * Function: Get_Location() * * Overview: Read Voltage from MPS connector to get physical location. * * Input: none * * Output: Physiacl Location * * Author: David G. Brown * * Date: May 15, 2008 * ******************************************************************************/ void Get_Location(int PON); /***************************************************************************** * Function: Get_Board_ID() * * Overview: Read MUX Voltage to determine Board ID #. * * Input: none * * Output: Board ID * * Author: David G. Brown * * Date: May 19, 2008 * ******************************************************************************/ void Get_Board_ID(int print);