|
PROFINET Device
v1.04.00
|
|
◆ PN_API_ETH_applyConfiguration()
Apply configuration of ethernet interface.
Ethernet interface must be configured after initializing but before starting physical device.
- Parameters
-
[in] | pConfiguration_p | Configuration of ethernet interface. |
- Returns
- PN_API_ETH_EError_t as uint32_t
- Return values
-
- Example
#include <PN_API_ETH.h>
uint32_t result;
APPL_SPermanentData_t *pPermanentData = APPL_getPermStorage ();
permanentDcpData.
ipAddress = pPermanentData->ipAddress;
permanentDcpData.
subnetMask = pPermanentData->subNetMask;
permanentDcpData.
gateway = pPermanentData->gateWayAddress;
memcpy (permanentDcpData.
aStationName, pPermanentData->aStationName, pPermanentData->stationNameLength);
- See also
- PN_API_PDEV_start PN_API_PDEV_run
PN_API_ETH_SPermanentDcpData_t * pPermanentDcpData
Definition: PN_API_ETH.h:204
PN_API_ETH_signalLinkLedCallback cbSignalLinkLed
Definition: PN_API_ETH.h:192
Definition: PN_API_ETH.h:202
uint32_t PN_API_ETH_applyConfiguration(const PN_API_ETH_SConfiguration_t *pConfiguration_p)
Apply configuration of ethernet interface.
Definition: PN_API_main.c:506
Definition: PN_API_ETH.h:118
PN_API_ETH_SCallbacks_t callBacks
Definition: PN_API_ETH.h:206
PN_API_ETH_setIpAddressCallback cbSetIpAddress
Definition: PN_API_ETH.h:194
uint8_t aStationName[PN_API_ETH_MAX_STATION_NAME_LENGTH]
Definition: PN_API_ETH.h:123
PN_API_ETH_resetToFactoryCallback cbResetToFactory
Definition: PN_API_ETH.h:196
uint16_t stationNameLength
Definition: PN_API_ETH.h:122
uint32_t ipAddress
Definition: PN_API_ETH.h:119
PN_API_ETH_writePortDataAdjustCallback cbWritePortDataAdjust
Definition: PN_API_ETH.h:198
PN_API_ETH_writePortDataCheckCallback cbWritePortDataCheck
Definition: PN_API_ETH.h:197
PN_API_ETH_SPermanentPortData_t * pPermanentPortData
Definition: PN_API_ETH.h:205
uint32_t gateway
Definition: PN_API_ETH.h:121
PN_API_ETH_factoryResetCallback cbFactoryReset
Definition: PN_API_ETH.h:195
uint32_t subnetMask
Definition: PN_API_ETH.h:120
PN_API_ETH_setStationNameCallback cbSetStationName
Definition: PN_API_ETH.h:193