IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page


Ethernet API functions


Detailed Description

This API provides several functions for the connection of an Ethernet PHY tranceiver to the internal Ethernet MAC device of the SC2x3.

Further explanations and source code example.

Data Structures

struct  EthPhyCtrl
 Phy configuration and control structure. More...

Enumerations

enum  ETH_PHYSTATS {
  ETH_PHYSTAT_LINKUP = 0x0001,
  ETH_PHYSTAT_100MB = 0x0002,
  ETH_PHYSTAT_FDPLX = 0x0008,
  ETH_PHYSTAT_ERR = 0x0020,
  ETH_PHYSTAT_AUTONEG = 0x0040,
  ETH_PHYSTAT_DPLXCHG = 0x0080,
  ETH_PHYSTAT_LINKCHG = 0x0100,
  ETH_PHYSTAT_FAULT = 0x8000
}
 

Ethernet Phy Status bits.

More...

Functions

int ethPhyInstall (EthPhyCtrl *phyCtrl)
 Install Ethernet phy configuration/control function set.
int ethReStart (void)
 Open/start the Ethernet device.
int ethSetMode (unsigned char mode)
 Set operation mode of the internal Ethernet controller.
unsigned int ethGetMode (unsigned int *initError, unsigned int *phyState)
 Retrieve status of the Ethernet connection.
int ethMiiWrite (unsigned char phyAddr, unsigned char regAddr, unsigned short data)
 Write Ethernet PHY controller register by MII.
int ethMiiRead (unsigned char phyAddr, unsigned char regAddr, unsigned short *data)
 Read Ethernet PHY controller registerby MII.
void ethInstallPhyUserEventCb (void *phyUserEventCb)
 Install Ethernet PHY user event callback function.





Top of page | Main page

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