IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


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 (named "FEC") would be passed for the devHandle argument.

Parameters:
[in] devHandle Device handle to identify the interface.
[out] physAddress User 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:
SC2x3 V1.00 - CLIB V1.00
See also:
Dev_Find_Iface_By_Name()





Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Thu Jan 26 16:21:36 2017 by Doxygen 1.6.1