/* * 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 setTimingDestination(MPSBeamDestination destination); MPSBeamDestination getTimingDestination(); int setOperatingMode(MPSOperatingMode mode); MPSOperatingMode getOperatingMode(); int clearAllBurstModes(); int setAllRatesToMostRestrictiveAndClearBurstModes(); int resetMachineCounts(); int incrementCounter(); int updateCurrentRate(MPSMitigationDevice device); int faultAllEpicsFaults(); int setBykikState_LP(int new_value); int getBykikState_LP(); int setBykikSState_LP(int new_value); int getBykikSState_LP(); epicsUInt8 getBykikUser(); epicsUInt8 setBykikUser(unsigned int input); epicsUInt8 getBykikSUser(); epicsUInt8 setBykikSUser(unsigned int input); epicsUInt8 setFacilityIsLCLS(); epicsUInt8 setFacilityIsFACET(); epicsUInt8 facilityIsLCLS(); int initializeMachineRatesBuffer(); #ifdef __cplusplus } #endif #endif