DRV_ETHPHY_INIT Structure
C
struct DRV_ETHPHY_INIT {
SYS_MODULE_INIT moduleInit;
uintptr_t ethphyId;
uint16_t phyAddress;
DRV_ETHPHY_CONFIG_FLAGS phyFlags;
const DRV_ETHPHY_OBJECT* pPhyObject;
DRV_ETHPHY_RESET_FUNCTION resetFunction;
const struct DRV_MIIM_OBJECT_BASE* pMiimObject;
const struct DRV_MIIM_INIT* pMiimInit; SYS_MODULE_INDEX miimIndex;
};
Members
Members | Description |
---|---|
SYS_MODULE_INIT moduleInit; | System module initialization |
uintptr_t ethphyId; | Identifies peripheral (PLIB-level) ID |
uint16_t phyAddress; | PHY address, as configured on the board. All PHYs respond to address 0 |
DRV_ETHPHY_CONFIG_FLAGS phyFlags; | PHY configuration |
const DRV_ETHPHY_OBJECT* pPhyObject; | Non-volatile pointer to the PHY object providing vendor functions for this PHY |
DRV_ETHPHY_RESET_FUNCTION resetFunction; | Function to be called when the PHY is reset/initialized. Could be NULL if no special reset functionality needed - default |
const struct DRV_MIIM_OBJECT_BASE* pMiimObject; | Non-volatile pointer to the DRV_MIIM object providing MIIM access for this PHY Could be NULL if the MIIM driver is not used |
const struct DRV_MIIM_INIT* pMiimInit; | Non-volatile pointer to the DRV_MIIM initialization data Could be NULL if the MIIM driver is not used |
SYS_MODULE_INDEX miimIndex; | MIIM module index to be used Not needed if the MIIM driver is not used |
Description
Ethernet PHY Device Driver Initialization Data This data structure contains all the data necessary to initialize the Ethernet PHY device.
Remarks
A pointer to a structure of this format containing the desired initialization data must be passed into the DRV_ETHPHY_Initialize routine.