/* * MachineRatesBuffer.h * MPSLinkProcessor * * Created by Stephen Norum. * Copyright 2007 Stanford Linear Accelerator Center. All rights reserved. * */ #ifndef MACHINERATESBUFFER_H #define MACHINERATESBUFFER_H #ifdef __cplusplus extern "C" { #endif #include void mpsMutexLockMachineRatesBuffer(); void mpsMutexUnlockMachineRatesBuffer(); void mpsShowMachineRates(); int setMaxRateAfterAllDevices(MPSBeamRate maxRate); int setRateAfterDevice_warning_allows_any_rate(MPSBeamRate rate, MPSMitigationDevice device); int setRateAfterAllDevices_warning_allows_any_rate(MPSBeamRate rate); int getBurstModeStatusForDevice(MPSBeamRate *status, MPSMitigationDevice device); int getRateAfterDevice(MPSBeamRate *rate, MPSMitigationDevice device); int getRatesAfterAllDevices(MPSBeamRate *rates); int setBeamDestination(MPSBeamDestination destination); MPSBeamDestination getBeamDestination(); int clearAllBurstModes(); int setAllRatesToMostRestrictiveAndClearBurstModes(); int initializeMachineRatesBuffer(); #ifdef __cplusplus } #endif #endif