|
UINT32 EIP_SetConfigurationDefaultParameteV1()
|
{
|
....
|
|
|
/* O->T assembly instance (originator to target)
|
*
|
* Instance ID: 100 (default)
|
* Size: 32 (default)
|
* Real time format: 32 bit run/idle header (this is the most common format for O->T assemblies)
|
* */
|
|
ptPck->tData.unConfig.tV1.ulInputAssInstance = /* from Tool GUI */; /* Instance number of input assembly (100 is default) */
|
ptPck->tData.unConfig.tV1.ulInputLen = /* from Tool GUI */; /* Length of input data (32 is default) */
|
ptPck->tData.unConfig.tV1.ulInputAssFlags = EIP_AS_FLAG_READONLY | /* instance is an output assembly instance */
|
EIP_AS_FLAG_FIX_SIZE; /* the connection size in a ForwardOpen must directly correspond to ulSize */
|
|
/* T->O assembly instance (target to originator)
|
*
|
* Instance ID: 101 (default)
|
* Size: 32 (default)
|
* Real time format: - modeless (this is the most common format for T->O assemblies)
|
* - 32 bit run/idle header (only for netIC )
|
* */
|
|
ptPck->tData.unConfig.tV1.ulOutputAssInstance = /* from Tool */; /* Instance number of output assembly */
|
ptPck->tData.unConfig.tV1.ulOutputLen = /* from Tool */; /* Length of Output data (32 is default) */
|
ptPck->tData.unConfig.tV1.ulOutputAssFlags = EIP_AS_FLAG_FIX_SIZE | /* the connection size in a ForwardOpen must directly correspond to ulSize */
|
EIP_AS_FLAG_RUNIDLE; /* !!! Note: !!!! */
|
- this flag shell NOT be set if the configuration apply for netIC
|
- this flag shell be set if the configuration apply for other targets like cifX */
|
|
/**********************************************************/
|
/* QUALITY OF SERVCE CONFIGURATION (default's) */
|
/**********************************************************/
|
|
ptPck->tData.unConfig.tV1.tQoS_Config.ulQoSFlags = EIP_OBJECT_QOS_FLAGS_ENABLE;
|
ptPck->tData.unConfig.tV1.tQoS_Config.bTag802Enable = 0; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_PTP_Event = 0; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_PTP_General = 0; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_Urgent = 55; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_Scheduled = 47; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_High = 43; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_Low = 31; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
ptPck->tData.unConfig.tV1.tQoS_Config.bDSCP_Explicit = 27; /* refer to EtherNetIP Adapter Protocol API 15 EN.pdf /
|
|
/**********************************************************/
|
/* TCP/IP INTERFACE AND ETHERNET LINK CONFIGURATION */
|
/**********************************************************/
|
|
/* ACD is enable per default*/
|
ptPck->tData.unConfig.tV1.bSelectAcd = 1;
|
|
/* Quick Connect is disabled per default */
|
tSetConfigReq.unConfig.tV1.tData.bQuickConnectFlags = 0;
|
}
|