📄 elu_obj.h
字号:
/****************************************************************************
*****************************************************************************
**
** File Name
** ---------
**
** ELU_OBJ.H
**
*****************************************************************************
*****************************************************************************
**
** Description
** -----------
**
** User provided interfaces for the Ethernet Link Object.
**
*****************************************************************************
*****************************************************************************
**
** Source Change Indices
** ---------------------
**
** Porting: <none>----4<major> Customization: <none>----4<major>
**
*****************************************************************************
*****************************************************************************
**
** Services List
** -------------
**
** eiu_ClearInterfaceCounters() - Clear the Interface counters Base Structure
** eiu_ClearMediaCounters() - Clear the Media counters Base Structure
** eiu_GetEthernetLinkData() - Get the current Ethernet Link Data
**
*****************************************************************************
*****************************************************************************
** **
** ETHERNET/IP EXAMPLE CODE **
** COPYRIGHT (c) 2000-2005 ODVA (Open DeviceNet Vendor Association) **
** & ControlNet International Ltd. **
** **
** All rights reserved, except as specifically licensed in writing. **
** Use of the Ethernet/IP Example Protocol Software is subject to **
** ODVA's and ControlNet International's Terms of Use Agreement. **
** The following work constitutes example program code and is intended **
** merely to illustrate useful programming techniques. The user is **
** responsible for applying the code correctly. The code is provided **
** AS IS without warranty and is in no way guaranteed to be error-free. **
** **
*****************************************************************************
*****************************************************************************
*/
/****************************************************************************
*****************************************************************************
**
** Change Log
** ----------
**
**
*****************************************************************************
*****************************************************************************
*/
#ifndef ELU_OBJ_H
#define ELU_OBJ_H
/*
** See if this code is to be included.
*/
#ifdef ETHERNET_LINK_OBJECT
/****************************************************************************
**
** Constants
**
*****************************************************************************
*/
/*
** Set the defines which control whether optional attributes are included
** for GET single and GET all instance attribute requests.
**
** Note that the Interface counters attribute is required if the Media
** Counters attribute is implemented.
*/
/****************************************************************************
**
** Typedefs
**
*****************************************************************************
*/
/****************************************************************************
**
** Services
**
*****************************************************************************
*/
/*---------------------------------------------------------------------------
**
** eiu_ClearInterfaceCounters()
**
** User routine to "clear" the Interface counters.
**
**---------------------------------------------------------------------------
**
** Inputs:
** none
**
** Outputs:
** none
**
** Usage:
** eiu_ClearInterfaceCounters();
**
**---------------------------------------------------------------------------
*/
EXTFUNC void eiu_ClearInterfaceCounters( void );
/*---------------------------------------------------------------------------
**
** eiu_ClearMediaCounters()
**
** User routine to "clear" the Media counters.
**
**---------------------------------------------------------------------------
**
** Inputs:
** none
**
** Outputs:
** none
**
** Usage:
** eiu_ClearMediaCounters();
**
**---------------------------------------------------------------------------
*/
EXTFUNC void eiu_ClearMediaCounters( void );
/*---------------------------------------------------------------------------
**
** eiu_GetEthernetLinkData()
**
** User routine to obtain the current Ethernet Link data. This routine is called
** BEFORE any GET attribute processing is performed. Copy the current
** Ethernet Link data to the private Ethernet link object data
** "el_DataType el_s".
**
**---------------------------------------------------------------------------
**
** Inputs:
** none
**
** Outputs:
** el_DataType el_s - Updated with current Ethernet Link
**
** Return
** UINT16 iStatus - CI_GRC_SUCCESS, or CI_GRC_xxxxxxx
**
** Usage:
** iStatus = eiu_GetEthernetLinkData();
**
**---------------------------------------------------------------------------
*/
EXTFUNC UINT16 eiu_GetEthernetLinkData( void );
#endif /* #ifdef ETHERNET_LINK_OBJECT */
#endif /* inclusion lock */
/****************************************************************************
**
** End of ELU_OBJ.H
**
*****************************************************************************
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -