ETHERNET_SETTINGS2 Structure

This structure defines various settings for Ethernet networks.

C/C++ Declare

typedef struct __declspec (align(2))
{
   uint8_t flags;
   uint8_t link_speed;
   uint32_t ip_addr;
   uint32_t netmask;
   uint32_t gateway;
   int16_t rsvd0;
}ETHERNET_SETTINGS2;

Visual Basic .NET Declare

<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure ETHERNET_SETTINGS2
   Dim flags As Byte
   Dim link_speed As Byte
   Dim ip_addr As UInt32
   Dim netmask As UInt32
   Dim gateway As UInt32
   Dim rsvd0 As Int16
End Structure

C# .NET Declare

[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct ETHERNET_SETTINGS2
{

   public byte flags;
   public byte link_speed;
   public UInt32 ip_addr;
   public UInt32 netmask;
   public UInt32 gateway;
   public Int16 rsvd0;
}
Remarks

ItemDescription
flags
BitFunction
Bit 00=half duplex, 1=full duplex
Bit 11=Enable Autonegotiation
Bit 21= Enable tcpip stack
Bit 31=Enable rtsp server
Bit 41=Enable ICS device hosting
Bit 51=Config not allowed
link_speed0 = 10B, 1 = 100B, 2=1000B
ip_addrNot Defined
netmaskNot Defined
gatewayNot Defined
rsvd0Not Defined

IntrepidCS API   Documentation - (C) Copyright 2000-2022 Intrepid Control Systems, Inc.

Last Updated : Wednesday, July 05, 2019