libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::MACAddressStr Struct Reference

字符串形式 MAC 地址 / MAC address as string More...

#include <net.hpp>

Public Member Functions

MACAddressRaw ToRaw () const
 

Static Public Member Functions

static MACAddressStr FromRaw (const MACAddressRaw &raw)
 

Data Fields

char str [MACADDR_STRLEN] {}
 

Detailed Description

字符串形式 MAC 地址 / MAC address as string

Definition at line 103 of file net.hpp.

Member Function Documentation

◆ FromRaw()

static MACAddressStr LibXR::MACAddressStr::FromRaw ( const MACAddressRaw & raw)
inlinestatic

Definition at line 107 of file net.hpp.

108 {
109 MACAddressStr s{};
110 raw.ToString(s.str);
111 return s;
112 }

◆ ToRaw()

MACAddressRaw LibXR::MACAddressStr::ToRaw ( ) const
inline

Definition at line 114 of file net.hpp.

115 {
116 return MACAddressRaw::FromString(str);
117 }

Field Documentation

◆ str

char LibXR::MACAddressStr::str[MACADDR_STRLEN] {}

Definition at line 105 of file net.hpp.

105{};

The documentation for this struct was generated from the following file: