Skip to main content

INetworkControllerProvider Interface

Namespace: GHIElectronics.TinyCLR.Devices.Network.Provider · Assembly: GHIElectronics.TinyCLR.Devices.Network

Provider contract for a network controller.

public interface INetworkControllerProvider : IDisposable, INetworkProvider

Properties

InterfaceType

NetworkInterfaceType InterfaceType { get; }

Interface type — Ethernet, WiFi, or PPP. (inherited)

CommunicationInterface

NetworkCommunicationInterface CommunicationInterface { get; }

Physical bus carrying the interface — built-in MAC, SPI, or UART. (inherited)

Methods

Enable()

void Enable()

Re-enables interrupts after a matching Disable. (inherited)

Disable()

void Disable()

Disables interrupts on the current core. Always pair with Enable. (inherited)

Suspend()

void Suspend()

Suspends the interface (low-power state with state preserved). (inherited)

Resume()

void Resume()

Resumes a previously Suspended interface. (inherited)

GetLinkConnected()

bool GetLinkConnected()

True when the physical link is currently up. (inherited)

Returns bool

GetAccessPointClientLinkConnect(WiFiNetworkInterfaceSettings settings)

bool GetAccessPointClientLinkConnect(WiFiNetworkInterfaceSettings settings)

No description available.

ParameterTypeDescription
settingsWiFiNetworkInterfaceSettings

Returns bool

GetIPProperties()

NetworkIPProperties GetIPProperties()

Returns the current IP address, subnet, gateway, and DNS servers. (inherited)

Returns NetworkIPProperties

GetInterfaceProperties()

NetworkInterfaceProperties GetInterfaceProperties()

Returns interface-specific properties (MAC address and friends). (inherited)

Returns NetworkInterfaceProperties

SetInterfaceSettings(NetworkInterfaceSettings settings)

void SetInterfaceSettings(NetworkInterfaceSettings settings)

Applies NetworkInterfaceSettings (IP address, DHCP, DNS). (inherited)

ParameterTypeDescription
settingsNetworkInterfaceSettings

SetCommunicationInterfaceSettings(NetworkCommunicationInterfaceSettings settings)

void SetCommunicationInterfaceSettings(NetworkCommunicationInterfaceSettings settings)

Applies the underlying physical-bus settings (built-in MAC, SPI, or UART). (inherited)

ParameterTypeDescription
settingsNetworkCommunicationInterfaceSettings

Events

NetworkLinkConnectedChanged

event NetworkLinkConnectedChangedEventHandler NetworkLinkConnectedChanged

Raised when the physical link goes up or down. (inherited)

NetworkAddressChanged

event NetworkAddressChangedEventHandler NetworkAddressChanged

Raised when the IP address, gateway, or DNS servers change (e.g. on DHCP lease assignment). (inherited)