EtherNet/IP™ Adapter  1.02.01
User Reference Manual

◆ EI_API_ADP_getQoS()

uint32_t EI_API_ADP_getQoS ( T *  pAdp_p,
EI_API_ADP_SQos_t pAdpQoS_p 
)

Get the current QoS settings (Instance Attribute IDs: 4 - 8).

Function that returns the Quality of Service (QoS) settings. The stack supports instance attributes 4 - 8.

Parameters
[in]pAdp_pPointer to the adapter.
[out]pAdpQoS_pPointer to a structure with the QoS settings.
Returns
EI_API_ADP_EError_t as uint32_t value.
Return values
EI_API_ADP_eERR_OKSuccess.
EI_API_ADP_eERR_GENERALGeneral error.
Example
#include <api/EI_API.h>
EI_API_ADP_T* pEI_API_ADP = NULL;
uint32_t errCode;
uint8_t numInterfaces = 1;
pEI_API_ADP = EI_API_ADP_new(numInterfaces);
errCode = EI_API_ADP_getQoS(pEI_API_ADP, &adpQoS);
printf("EI_API_ADP_getQoS - Error Code: %08x\n \
- Q_Tag_Enable: %d\n \
- DSCP_Urgent: %d\n \
- DSCP_Scheduled: %d\n \
- DSCP_High: %d\n \
- DSCP_Low: %d\n \
- DSCP_Explicit: %d\n\n",
errCode,
adpQoS.Q_Tag_Enable, adpQoS.DSCP_Urgent, adpQoS.DSCP_Scheduled,
adpQoS.DSCP_High, adpQoS.DSCP_Low, adpQoS.DSCP_Explicit);
ETHIP_API T * EI_API_ADP_new(uint8_t numInterfaces_p)
Create a new EtherNet/IP adapter.
Definition: EI_API_ADP_main.c:195
ETHIP_API uint32_t EI_API_ADP_getQoS(T *pAdp_p, EI_API_ADP_SQos_t *pQoS_p)
Get the current QoS settings (Instance Attribute IDs: 4 - 8).
Definition: EI_API_ADP_main.c:1717
uint8_t Q_Tag_Enable
Definition: EI_API_def.h:223
uint8_t DSCP_High
Definition: EI_API_def.h:228
uint8_t DSCP_Explicit
Definition: EI_API_def.h:230
uint8_t DSCP_Scheduled
Definition: EI_API_def.h:227
uint8_t DSCP_Urgent
Definition: EI_API_def.h:226
uint8_t DSCP_Low
Definition: EI_API_def.h:229
General QoS attribute parameter collection.
Definition: EI_API_def.h:222
See also
EI_API_ADP_setQoS EI_API_ADP_SQos_t EI_API_ADP_EError_t