54 uint8 const *
const aData,
Abstract base class for the physical layer.
Abstract base class for link Layers in the OSI model.
virtual bool tx(Packet *aPacket)=0
Transmit data to the physical layer.
LinkLayer()
Construct a LinkLayer.
PhysicalLayer * mPhysicalLayer
The serial port that this link layer communicates with.
void setTransportLayer(TransportLayer *aTransport)
Set the transport layer.
Abstract base class for transport layer in the OSI model.
Abstract base class for a packet of data.
virtual void rx(uint8 const *const aData, uint32 const aSize)=0
Receive data from the physical layer.
TransportLayer * mTransportLayer
The transport layer that this link layer communicates with.
unsigned char uint8
8-bit unsigned integer
void setPhysicalLayer(PhysicalLayer *aPort)
Set the physical layer.
virtual ~LinkLayer()
Destructor.
unsigned long int uint32
32-bit unsigned integer