ETHERNET_SETTINGS Structure

This structure defines various settings for Ethernet networks.

C/C++ Declare

typedef struct __declspec (align(2))
{
    unsigned char duplex;
    unsigned char link_speed;
    unsigned char auto_neg;
    unsigned char led_mode;
    unsigned char rsvd0;
    unsigned char rsvd1;
    unsigned char rsvd2;
    unsigned char rsvd3;
}ETHERNET_SETTINGS;

Visual Basic .NET Declare

<StructLayout(LayoutKind.Sequential, Pack:=2)> Public Structure ETHERNET_SETTINGS
    Dim duplex As Byte
    Dim link_speed As Byte
    Dim auto_neg As Byte
    Dim led_mode As Byte
    Dim rsvd0 As Byte
    Dim rsvd1 As Byte
    Dim rsvd2 As Byte
    Dim rsvd3 As Byte
End Structure

C# .NET Declare

[StructLayout(LayoutKind.Sequential,Pack=2)]
public struct ETHERNET_SETTINGS
{
    public byte duplex;
    public byte link_speed;
    public byte auto_neg;
    public byte led_mode;
    public byte rsvd0;
    public byte rsvd1;
    public byte rsvd2;
    public byte rsvd3;
}

Remarks

Item

Description

duplex

Sets the Duplex mode.

0=Half 1=Full

link_speed

Sets the speed for the network

0=10Mbps 1=100Mbps

auto_neg

Enables Auto-Negotiate

0=Disabled 1=Enabled

led_mode

Sets the function of the Ethernet IDs

0=link 1=activity 2=link/activity

rsvd0

Reserved Set to 0

rsvd1

Reserved Set to 0

rsvd2

Reserved Set to 0

rsvd3

Reserved Set to 0