map_demap mdio45_phy
API Reference Manual  /  4 Model-to-Model Interfaces  / 

mdio45_bus

Description
SIM_INTERFACE(mdio45_bus) {
        uint16 (*read_register)(conf_object_t *obj, int phy, int mmd, int reg);
        void   (*write_register)(conf_object_t *obj, int phy, int mdd, int reg,
                                 uint16 value);

};
#define MDIO45_BUS_INTERFACE "mdio45_bus"

Interface that should be implemented by classes that either represent an MDIO bus, or multi PHY devices implementing the IEEE 802.3 clause 45 MDIO management interface.

The read_register function should return the 16-bit value of the specified register. phy specifies the PHY address (0-31), mmd specifies the MMD (MDIO manageable device) within the PHY (0-31) and reg specifies the register number within the MMD (0-65535).

Devices modeling a single PHY should implement the mdio45_phy interface instead.

Execution Context
Cell Context for all methods.

map_demap mdio45_phy