⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abu_init.h

📁 基于EthernetIP协议的应用程序,可以读取AB公司Controllogix系列Ethernetip协议PLC数据. 此软件代码可用于工业控制.
💻 H
📖 第 1 页 / 共 2 页
字号:
extern ABU_DataType  ABU_s;



/*---------------------------------------------------------------------------
**
** AB_AppendVersionBuild()
**
** The device version information, major, minor revision and firmware build
** number, are extracted from the ab_abVersion array and appended to the
** argument provided in the function call.  The argument is typically the
** device identity description string.  Maximum allowable string length is
** tested for and the operation is aborted if a resulting string were to
** exceed this length.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    pString           - Character string to append to.
**
** Outputs:
**    pString           - Appended string.
**
** Usage:
**    AB_AppendVersionBuild( pString );
**
**---------------------------------------------------------------------------
*/

extern void AB_AppendVersionBuild(INT8 *);

/*---------------------------------------------------------------------------
**
** AB_DmaInit()
**
** Initialization of host dma controller.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    AB_DmaInit();
**
**---------------------------------------------------------------------------
*/

EXTFUNC	void AB_DmaInit( void );

/*---------------------------------------------------------------------------
**
** AB_GetDeviceConfig()
**
** Fill in the referenced data structure with the card identity info.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    Pointer to a NLDP_ID data type
**
** Outputs:
**    Definition of NLDP_ID data
**
** Usage:
**
**    eStatus = AB_GetDeviceConfig();
**
**---------------------------------------------------------------------------
*/

EXTFUNC void AB_GetDeviceConfig( AB_DeviceConfigType * );



/*#ifndef SET_MAC_ID_FROM_HOST	*/
/*---------------------------------------------------------------------------
**
** AB_GetMacId()
**
** This function acquires the mac id by reading the port lines defined to
**	input the push-wheel mac id select switches.
** The mac id switches are read as BCD inverted.  Convert the BCD value
** to decimal.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    AB_GetMacId();
**
**---------------------------------------------------------------------------
*/

/*EXTFUNC UINT8 AB_GetMacId( void );

#endif	*/


/*---------------------------------------------------------------------------
**
** AB_MainTimerISR()
**
** System timer Interrupt service routine.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    AB_MainTimerISR();
**
**---------------------------------------------------------------------------
*/

EXTFUNC void interrupt AB_MainTimerISR( void );


/*---------------------------------------------------------------------------
**
** AB_TrapISR()
**
** Trap Interrupt service routine.  This routine is the
** catch-all for unwanted interrupts.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    AB_TrapISR();
**
**---------------------------------------------------------------------------
*/

EXTFUNC void AB_TrapISR( UINT8 bType, void *pCSIP );

/*---------------------------------------------------------------------------
**
** abu_ClearDualPort()
**
** Write zero data to all dualport memory.
**
**---------------------------------------------------------------------------
**
** Inputs:
**   TRUE  - clear all dual port
**   FALSE - don't clear the interrupt locations
**
** Outputs:
**    None
**
** Usage:
**    abu_ClearDualPort();
**
**---------------------------------------------------------------------------
*/

EXTFUNC	void abu_ClearDualPort( BOOL );

/*---------------------------------------------------------------------------
**
** abu_CndNmiISR()
**
** Host non-maskable interrupt service routine.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    abu_CndNmiISR();
**
**---------------------------------------------------------------------------
*/
EXTFUNC	void interrupt abu_CndNmiISR( void );


/*---------------------------------------------------------------------------
**
** abu_HwInit()
**
** Initialize the hardware platform.
**   1. Wipe all interrupt vector locations with a pointer to a
**      do nothing but ack interrupt routine.
**   2. Set interrupt vectors.
**   3. Initalize ports.
**   4. Initialize dualport memory.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    abu_HwInit();
**
**---------------------------------------------------------------------------
*/

EXTFUNC	void abu_HwInit( void );

/*---------------------------------------------------------------------------
**
** abu_RamTest()
**
** Procedure to determine SRAM size configuration.  This was added to
** distinguish between E2 and E3 hardware.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    UINT16  iRetStatus
**
** Usage:
**    abu_RamTest();
**
**---------------------------------------------------------------------------
*/

EXTFUNC  UINT16 abu_RamTest( void );

/*---------------------------------------------------------------------------
**
** abu_TestDualPort()
**
** Dualport read/write test procedure.
**
**---------------------------------------------------------------------------
**
** Inputs:
**    None
**
** Outputs:
**    None
**
** Usage:
**    abu_TestDualPort();
**
**---------------------------------------------------------------------------
*/

EXTFUNC  UINT16 abu_TestDualPort( void );


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -