NetBurner 3.5.0
PDF Version |
|
Topics | |
Ethernet I/O Counters | |
Classes | |
struct | _EthernetFrameHeader |
Ethernet Type II Frame Header. More... | |
Macros | |
#define | NO_AUTOMATIC_2ND_ETHERNET extern const bool bAutomatic2ndEther = false; |
Disable automatic initialization of second Ethernet interface. | |
Typedefs | |
typedef struct _EthernetFrameHeader | EthernetFrameHeader |
Ethernet Type II Frame Header. | |
Functions | |
void | AddEthernetInterfaces () |
Add an Ethernet interface. | |
void | ManualEthernetConfig (int interface, BOOL speed100Mbit, BOOL fullDuplex, BOOL autoNegotiate) |
Manually configure Ethernet speed and duplex settings. | |
void | DisablePHY (int ifn) |
Disable the specified Ethernet PHY. | |
void | EnablePHY (int ifn) |
Disable the specified Ethernet PHY. | |
#include< ethernet.h >
Functions to add, configure and disable Ethernet interfaces
#define NO_AUTOMATIC_2ND_ETHERNET extern const bool bAutomatic2ndEther = false; |
#include <ethernet.h>
Disable automatic initialization of second Ethernet interface.
Include this macro in UserMain to prevent automatic system addition and initialization of the second Ethernet interface on dual Ethenet devices.
void AddEthernetInterfaces | ( | ) |
#include <ethernet.h>
Add an Ethernet interface.
The default system behavior is all Ethernet interfaces will automatically be added and initialized. Interface numbers range from 1 to ( MAX_INTERFACES - 1 )
void DisablePHY | ( | int | ifn | ) |
#include <ethernet.h>
Disable the specified Ethernet PHY.
Typically used for low power mode.
ifn | Interface number to disable |
void EnablePHY | ( | int | ifn | ) |
#include <ethernet.h>
Disable the specified Ethernet PHY.
Enable an Ethernet PHY previously disabled by DisablePHY()
ifn | Interface number to ensable |
void ManualEthernetConfig | ( | int | interface, |
BOOL | speed100Mbit, | ||
BOOL | fullDuplex, | ||
BOOL | autoNegotiate ) |
#include <ethernet.h>
Manually configure Ethernet speed and duplex settings.
The default setting to establish an Ethernet link is autonegotiate. This function can be used to disable autonegotiate and set the Ethernet link speed and duplex.
interface | The network interface to modify. The first interface number is 1 |
speed100Mbit | True = 100Mbps, False = 10Mbps |
fullDuplex | True = full duplex, False = half duplex |
autoNegotiate | True = enabled, False = disabled. If enabled, will override manual settings. |