Ethernet::PhyFactory Class Referenceabstract

Virtual class used to construct a specific PHY instance. More...

#include <Ethernet.h>

Inheritance diagram for Ethernet::PhyFactory:

Public Types

using PhyInstance = Ethernet::PhyInstance
 

Public Member Functions

virtual PhyInstancecreate (const PhyConfig &config)=0
 Called by the Service to construct a PHY instance. More...
 
virtual void destroy (PhyInstance *inst)=0
 Called by the Service to destroy a PHY instance. More...
 

Detailed Description

Virtual class used to construct a specific PHY instance.

Applications provide an instance of this factory class so that the Service can create and configure it at the correct point in initialisation or teardown.

Member Typedef Documentation

◆ PhyInstance

using Ethernet::PhyFactory::PhyInstance = Ethernet::PhyInstance

Member Function Documentation

◆ create()

virtual PhyInstance* Ethernet::PhyFactory::create ( const PhyConfig config)
pure virtual

◆ destroy()

virtual void Ethernet::PhyFactory::destroy ( PhyInstance inst)
pure virtual

The documentation for this class was generated from the following file: