...
NetIF_AddrHW_Get()
Anchor
Files
Anchor
net_if.h/net_if.c
anchorPrototype
...
rowspan | 4 |
---|
...
Arguments
if_nbr
Network interface number to get the hardware address.
Anchor
paddr_hw
Pointer to variable that will receive the hardware address.
...
paddr_len
Pointer to a variable to pass the length of the address buffer pointed to by paddr_hw
and return the size of the returned hardware address, if no errors.
Anchor
perr
Pointer to variable that will receive the return error code from this function:
...
NET_IF_ERR_NONE
...
NET_IF_ERR_NULL_PTR
...
NET_IF_ERR_NULL_FNCT
...
NET_IF_ERR_INVALID_IF
...
NET_IF_ERR_INVALID_CFG
...
...
NET_IF_ERR_INVALID_ADDR_LEN
...
NET_OS_ERR_LOCK
...
Returned Value
...
Required Configuration
...
Notes / Warnings
...
The hardware address is returned in network-order; i.e., the pointer to the hardware address points to the highest-order byte. Additional error codes may be returned by the specific interface or device driver.