IPC@CHIP® RTOS-LNX – API Documentation

Header image

Main page


◆ pktGetPhysAddress()

int pktGetPhysAddress ( DevUserIfaceHandle  devHandle,
unsigned char *  physAddress 
)

Retrieve physical address of a device.

This API can be used to read out the internal Ethernet device's 6 byte MAC address. In this case, the handle for the internal Ethernet driver would be passed for the devHandle argument.

Parameters
[in]devHandleDevice handle to identify the interface.
[out]physAddressUser provided buffer to store the driver's physical address.
Returns
0 on success, storage at physAddress contains the device's address.
-1 on failure (invalid parameters)
Note
The caller has to take care that the buffer provides enough space for the address (e.g. 6 Bytes for an Ethernet MAC address).
Since
V0.84
See also
Dev_Find_Iface_By_Name()





Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Feb 9 2018 17:44:49 by Doxygen 1.8.13