Garmin Fleet Management Controller  2.19.0
PhysicalLayer Class Referenceabstract

Abstract base class for the physical layer. More...

#include <PhysicalLayer.h>

+ Inheritance diagram for PhysicalLayer:

Public Member Functions

virtual void setLinkLayer (LinkLayer *aLinkLayer)
 Change the link layer that receives bytes from this SerialPort. More...
 
virtual bool tx (uint8 *aData, uint16 aSize)=0
 Transmit data. More...
 

Protected Attributes

LinkLayermLinkLayer
 The link layer that is one level up from this serial port. More...
 

Detailed Description

Abstract base class for the physical layer.

The physical layer is the lowest layer in the OSI layered communication model. This layer is responsible for sending and receiving bytes; bytes received are sent to the link layer for assembly into frames.

Definition at line 25 of file PhysicalLayer.h.

Member Function Documentation

void PhysicalLayer::setLinkLayer ( LinkLayer aLinkLayer)
virtual

Change the link layer that receives bytes from this SerialPort.

Parameters
aLinkLayerThe LinkLayer object that receives bytes, or NULL if no LinkLayer should receive data from this port.

Definition at line 19 of file PhysicalLayer.cpp.

References mLinkLayer.

Referenced by GarminLinkLayer::GarminLinkLayer(), GarminLinkLayer::resetPhysicalLayer(), and LinkLayer::~LinkLayer().

virtual bool PhysicalLayer::tx ( uint8 aData,
uint16  aSize 
)
pure virtual

Transmit data.

Parameters
aDataThe bytes to transmit
aSizeThe number of bytes to transmit
Returns
true if the data was transmitted, false otherwise

Implemented in SerialPort, and TcpIpPort.

Referenced by GarminLinkLayer::tx().

Member Data Documentation

LinkLayer* PhysicalLayer::mLinkLayer
protected

The link layer that is one level up from this serial port.

Definition at line 47 of file PhysicalLayer.h.

Referenced by TcpIpPort::pumpRx(), SerialPort::pumpRx(), SerialPort::SerialPort(), setLinkLayer(), SerialPort::~SerialPort(), and TcpIpPort::~TcpIpPort().


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