Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

net_ascii.h/net_ascii.c

Prototype

Arguments

paddrp_addr_mac_ascii

Pointer to an ASCII string that contains hexadecimal bytes separated by colons or dashes that represents the MAC address. Each hexadecimal byte of the MAC address string must be separated by either the colon (‘:’) or dash (‘-’) characters. Note that the first ASCII character in the string is the most significant nibble of the MAC address’s most significant byte and that the last character in the string is the least significant nibble of the MAC address’s least significant address byte.

Example: “00:1A:07:AC:22:09” = 0x001A07AC2209

paddrp_addr_mac

Pointer to a memory buffer of size greater than or equal to NET_ASCII_NBR_OCTET_ADDR_MAC bytes to receive the MAC address.

perrp_err

Pointer to variable that will receive the return error code from this function:

...