/****************************************************************************** * Module: Llrf pad Temperature Monitoring driver definitions * Filename: drvPadQspi.h * Author: Shantha Condamoor * Created: 8-Aug-2014 * Description: * LLRF PAD Temperature monitoring related LLRF processing via coldFire QSPI * LLRF PAD's use The slow-speed 24-bit ADC in the ADS1218 chipset * interfaces to coldFire module's slow, queued serial port interface perifpheral. * ****************************************************************************** * Modification history * Mod: Shantha Condamoor 08-Aug-2014 * Initial Release. * Defines record for storing the temp readbacks from 8 channels * which are read by the following device support function: * llrfGetPadTemperatureValue(int channel) * *****************************************************************************/ #ifndef DRV_PAD_QSPI_H #define DRV_PAD_QSPI_H #include #if 0 #include "copyright_SLAC.h" /* SLAC copyright comments */ #endif /* Public Interface to ADS1218 control via QSPI driver */ #ifdef __cplusplus extern "C" { #endif #define PAD_QSPI_CHANNELS_ON_BOARD 8 typedef struct QspiPadRec_ { double temps[PAD_QSPI_CHANNELS_ON_BOARD]; epicsMutexId mutex; } QspiPadRec, *QspiPad; long llrfGetPadTemperatureValue(int channel); #ifdef __cplusplus } #endif #endif