/*------------------------------------------------------ File: mpsSupport.c Author: Sonya Hoobler Date: 16 March 09 Rem: Contains mpsToggleOut, which toggles MPS digital output channel from high to low -------------------------------------------------------*/ #include #include #define MPS_PORT 2 #define MPS_BIT 7 int mpsCycle = 0; void mpsToggleOut() { if (mpsCycle == 0) { avme470Write( "cavBpmDigI_MPS", MPS_PORT, MPS_BIT, BIT, 0, 1, 0); mpsCycle = 1; } else { avme470Write( "cavBpmDigI_MPS", MPS_PORT, MPS_BIT, BIT, 1, 1, 0); mpsCycle = 0; } }