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.

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

Top of page | Main page

Copyright © 2018 Beck IPC GmbH
Generated on Thu Nov 1 13:20:15 2018 by Doxygen 1.6.1