microwire mii_management
API Reference Manual  /  4 Model-to-Model Interfaces  / 

mii

Description
SIM_INTERFACE(mii) {
        int    (*serial_access)(conf_object_t *obj, int data_in, int clock);
        uint16 (*read_register)(conf_object_t *obj, int index);
        void   (*write_register)(conf_object_t *obj, int index, uint16 value);
};
#define MII_INTERFACE "mii"

Obsolete interface that is implemented by some PHY's that support the MII management interface.

It has the same methods as the mii_management interface, but does not pass along the PHY number.

To support low-level bitwise accesses via MDIO and MDC pins, the function serial_access can be used. It is recommended to leave this function unimplemented and let an instance of mii-management-bus convert the low-level bit operations to higher level read/write register calls.

Execution Context
Cell Context for all methods.

microwire mii_management