Networking_NetworkInterface结构

标头: #include <applibs/networking.h>

网络接口的属性。

注意

这是版本控制结构的别名。 定义NETWORKING_STRUCTS_VERSION以使用此别名。

struct Networking_NetworkInterface {
    uint32_t z__magicAndVersion;
    bool isEnabled;
    char interfaceName[IF_NAMESIZE];
    uint32_t reserved;
    Networking_IpType_Type ipConfigurationType;
    Networking_InterfaceMedium_Type interfaceMediumType;
};

成员

uint32_t z__magicAndVersion

唯一标识结构版本的幻数。

bool isEnabled

指示是否启用网络接口。

char interfaceName[IF_NAMESIZE]

网络接口名称。

uint32_t interfaceNameLength

网络接口名称的长度。

Networking_IpType_Type ipConfigurationType

包含接口 IP 类型的 Networking_IpType 枚举。

Networking_InterfaceMedium_Type InterfaceMediumType

包含接口的网络类型的 Networking_InterfaceMedium 枚举。

概念和示例