Embedded TCP/IP stack
4.7.0
|
fnet_return_t fnet_str_to_mac | ( | const fnet_char_t * | str_mac, |
fnet_mac_addr_t | addr | ||
) |
Converts a null terminated string to a 6 byte MAC address.
[in] | str_mac | Null-terminated MAC address string as pairs of hexadecimal numbers separated by colons. |
[out] | addr | Buffer will contain a suitable binary representation of the str_mac MAC address . |
This function interprets the character string specified by the str_mac
parameter. This string represents a numeric MAC address expressed in six groups of two hexadecimal digits, separated by colons (:), in transmission order. The value returned, pointed to by the addr
, is a number suitable for use as an MAC address.