Garmin Fleet Management Controller
2.19.0
|
Abstract base class for the physical layer. More...
#include <PhysicalLayer.h>
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 | |
LinkLayer * | mLinkLayer |
The link layer that is one level up from this serial port. More... | |
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.
|
virtual |
Change the link layer that receives bytes from this SerialPort.
aLinkLayer | The 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().
Transmit data.
aData | The bytes to transmit |
aSize | The number of bytes to transmit |
Implemented in SerialPort, and TcpIpPort.
Referenced by GarminLinkLayer::tx().
|
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().