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.

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

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Fri Jun 8 2018 12:48:20 by Doxygen 1.8.13