NULL
This commit is contained in:
46
user/Interface/CurrentLoop.h
Executable file
46
user/Interface/CurrentLoop.h
Executable file
@@ -0,0 +1,46 @@
|
||||
#ifndef __CurrentLoop_h__
|
||||
#define __CurrentLoop_h__
|
||||
|
||||
//##############################################################################
|
||||
#if(ENABLE_4_20MA_OUTPUT)
|
||||
//##############################################################################
|
||||
|
||||
#define FR_20MA 0
|
||||
#define PRESS_20MA 1
|
||||
//******************************************************************************
|
||||
#if(ENABLE_USE_SPI2)
|
||||
#define EnableDACSPI EnableSPI2
|
||||
#define DisableDACSPI DisableSPI2
|
||||
#define DACWriteData SPI2WriteData
|
||||
|
||||
#define DISABLE_DACSIMO DISABLE_SPI2SIMO
|
||||
#define ENABLE_DACSIMO_OUTPUT ENABLE_SPI2SIMO_OUTPUT
|
||||
#define CLR_DACSIMO CLR_SPI2SIMO
|
||||
|
||||
#define DISABLE_DACCLK DISABLE_SPI2CLK
|
||||
#define ENABLE_DACCLK_OUTPUT ENABLE_SPI2CLK_OUTPUT
|
||||
#define CLR_DACCLK CLR_SPI2CLK
|
||||
|
||||
#else
|
||||
#define EnableDACSPI EnableSPI
|
||||
#define DisableDACSPI DisableSPI
|
||||
#define DACWriteData SPIWriteData
|
||||
|
||||
#define DISABLE_DACSIMO DISABLE_SPISIMO
|
||||
#define ENABLE_DACSIMO_OUTPUT ENABLE_SPISIMO_OUTPUT
|
||||
#define CLR_DACSIMO CLR_SPISIMO
|
||||
|
||||
#define DISABLE_DACCLK DISABLE_SPICLK
|
||||
#define ENABLE_DACCLK_OUTPUT ENABLE_SPICLK_OUTPUT
|
||||
#define CLR_DACCLK CLR_SPICLK
|
||||
|
||||
#endif
|
||||
|
||||
void CurrentLoopInit(void);
|
||||
void CurrentLoopLopwerMode(void);
|
||||
void ComputCurrentLoopAndOutput(void);
|
||||
|
||||
//##############################################################################
|
||||
#endif
|
||||
//##############################################################################
|
||||
#endif
|
||||
Reference in New Issue
Block a user