📄 ecuserdefined_obj.h
字号:
/****************************************************************************
*****************************************************************************
**
** File Name
** ---------
**
** USERDEFINED_OBJ.H
**
*****************************************************************************
*****************************************************************************
**
** Description
** -----------
**
** This module contains the private interfaces for the Identity Object.
**
*****************************************************************************
*****************************************************************************
**
** Source Change Indices
** ---------------------
**
** Porting: <none>0----<major> Customization: <none>0----<major>
**
*****************************************************************************
*****************************************************************************
**
** Services List
** -------------
**
** UserDefined_ContinueResetProcessing() - Continue process device reset service
** UserDfined_ObjectTask() - Tribble processing task for UserDefined Object.
** UserDefined_ProcessAppOpen() - Process an open request to the UserDefined object
** UserDefined_ProcessClassRequest() - Process a request to the object class
** UserDefined_ProcessInstanceRequest() - Process a request to object instance 1
**
*****************************************************************************
*****************************************************************************
** **
** 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 USERDEFINED_OBJ_H
#define USERDEFINED_OBJ_H
#include "ECUserDefined.h"
#ifdef CORE_OBJECTS
/****************************************************************************
*****************************************************************************
**
** Private internal object interface - Constants
**
*****************************************************************************
*****************************************************************************
*/
/****************************************************************************
*****************************************************************************
**
** Private internal object interface - Enums
**
*****************************************************************************
*****************************************************************************
*/
/* None defined */
/****************************************************************************
*****************************************************************************
**
** Private internal object interface - Structures
**
*****************************************************************************
*****************************************************************************
*/
/*---------------------------------------------------------------------------
**
** UserDefined_DataType
**
** Private object data.
**
**---------------------------------------------------------------------------
*/
/*---------------------------------------------------------------------------
**
** UserDefined_upsTrrblType
**
** Union of pointers to all tribble types used by the identity object.
** Helps to eliminate those unsightly type casts.
**
**---------------------------------------------------------------------------
*/
typedef union UserDefined_upsTrrblType
{
GS_TrrblType *Generic;
CD_PacketTrrblType *Packet;
CM_AppOpenCloseTrrblType *AppOpenClose;
MR_RegistrationTrrblType *Register;
}
UserDefined_upsTrrblType;
/****************************************************************************
*****************************************************************************
**
** Private internal object interface - Tribbles
**
*****************************************************************************
*****************************************************************************
*/
/* None defined */
/****************************************************************************
*****************************************************************************
**
** Private internal object interface - Globals
**
*****************************************************************************
*****************************************************************************
*/
/****************************************************************************
*****************************************************************************
**
** Private internal object interface - Services
**
*****************************************************************************
*****************************************************************************
*/
/*---------------------------------------------------------------------------
**
** USERDEFINED_OBJectTask()
**
** Object task.
**
**---------------------------------------------------------------------------
**
** Inputs:
** None
**
** Outputs:
** None
**
** Usage:
** USERDEFINED_ObjectTask()
**
**---------------------------------------------------------------------------
*/
EXTFUNC TASKRETURN UserDefined_ObjectTask( TASKPARAM );
StatusType UserDefined_Init( UINT16 iOptions );
/*---------------------------------------------------------------------------
**
** UserDefined_ProcessAppOpen()
**
** Connection being established.
** Process an app open message from the connection manager.
** Return our yes/no decision on accepting the offer.
**
**---------------------------------------------------------------------------
**
** Inputs:
** psTrrbl - Pointer to tribble/combuf with details
**
** Outputs:
** None
**
** Usage:
** UserDefined_ProcessAppOpen( psTrrbl );
**
**---------------------------------------------------------------------------
*/
EXTFUNC void UserDefined_ProcessAppOpen( CM_AppOpenCloseTrrblType *psTrrbl );
/*---------------------------------------------------------------------------
**
** UserDefined_ProcessClassRequest()
**
** Process a request packet to object class.
**
**---------------------------------------------------------------------------
**
** Inputs:
** pTrrbl - Pointer to request trrbl/combuf
**
** Outputs:
** None
**
** Usage:
** UserDefined_ProcessClassRequest( pTrrbl );
**
**---------------------------------------------------------------------------
*/
EXTFUNC void UserDefined_ProcessClassRequest( t_Class *theClass, CD_PacketTrrblType *pTrrbl );
/*---------------------------------------------------------------------------
**
** UserDefined_ProcessInstanceRequest()
**
** Process a request packet to instance 1 of the object.
**
**---------------------------------------------------------------------------
**
** Inputs:
** pTrrbl - Pointer to request trrbl/combuf
**
** Outputs:
** Return - TRUE if resetting
** FALSE if not resetting
**
** Usage:
** if( UserDefined_ProcessInstanceRequest( pTrrbl ) )...
**
**---------------------------------------------------------------------------
*/
EXTFUNC BOOL UserDefined_ProcessInstanceRequest( t_Instance *theInstance, CD_PacketTrrblType *pTrrbl );
#endif /* #ifdef CORE_OBJECTS */
#endif /* inclusion lock */
/****************************************************************************
*****************************************************************************
**
** End of USERDEFINED_OBJ.H
**
*****************************************************************************
*****************************************************************************
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -