#include "pn_api_iod_settings.h"
#include "pn_api_iod_startup.h"
uint32_t status;
uint8_t ip1 = 192, ip2 = 168, ip3 = 1, ip4 = 10;
uint8_t mask1 = 255, mask2 = 255, mask3 = 0, mask4 = 0;
uint8_t gw1 = 192, gw2 = 168, gw3 = 1, gw4 = 1;
uint32_t ip = ((uint32_t)ip1 << 24) | ((uint32_t)ip2 << 16) | ((uint32_t)ip3 << 8) | ip4;
uint32_t mask = ((uint32_t)mask1 << 24) | ((uint32_t)mask2 << 16) | ((uint32_t)mask3 << 8) |
mask4; uint32_t gw = ((uint32_t)gw1 << 24) | ((uint32_t)gw2 << 16) | ((uint32_t)gw3 << 8) | gw4;
PN_API_IOD_Handle_t * PN_API_IOD_new(void)
Creates Profinet API handle.
uint32_t PN_API_IOD_changeIpSuite(PN_API_IOD_Handle_t *const pnHandle, uint32_t newIpAddr, uint32_t subnetMask, uint32_t defaultGw)
Momentarily modifies the IP suite within the Profinet stack.
struct PN_API_IOD_Handle PN_API_IOD_Handle_t
API handle instance which holds IO device's info.
Definition pn_api_iod_types.h:61