EtherCAT-IOLink Gateway

◆ GW_API_setIOLPortConfig()

GW_API_EErrorcode_t GW_API_setIOLPortConfig ( const uint8_t  portcount_p,
const uint8_t *  pPortclass_p 
)

Set IOL Number of ports and port classes.

Parameters
[in]portcount_pNumber of ports
[in]pPortclass_pIOLM_SMI_ePortTypes_ClassA = 0, IOLM_SMI_ePortTypes_ClassAWithPowerOffOn = 1, IOLM_SMI_ePortTypes_ClassB = 2, IOLM_SMI_ePortTypes_FSPortAWithoutOSSDe = 3, IOLM_SMI_ePortTypes_FSPortAwithOSSDe = 4, IOLM_SMI_ePortTypes_FSPortB = 5, IOLM_SMI_ePortTypes_WMaster = 6,
Returns
GW_API_EErrorcode_t errorcode
Example
#include <gw_api_interface.h>
GW_API_EErrorcode_t retVal = GW_API_eSUCCESS;
uint8_t portcount = 4;
uint8_t pPortClass[4];
retVal = GW_API_setIOLPortConfig(portcount, pPortClass);
GW_API_EErrorcode_t GW_API_setIOLPortConfig(const uint8_t portcount_p, const uint8_t *pPortclass_p)
Set IOL Number of ports and port classes.
Definition: gw_api_interface.c:726