Garmin Fleet Management Controller  2.19.0
PhysicalLayer.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * PhysicalLayer.h
5 *
6 * Copyright 2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef PhysicalLayer_H
11 #define PhysicalLayer_H
12 
13 class PhysicalLayer;
14 
15 #include "garmin_types.h"
16 #include "LinkLayer.h"
17 
18 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
26 {
27 public:
28  //----------------------------------------------------------------------
33  //----------------------------------------------------------------------
34  virtual bool tx
35  (
36  uint8 * aData,
37  uint16 aSize
38  ) = 0;
39 
40  virtual void setLinkLayer
41  (
42  LinkLayer* aLinkLayer
43  );
44 
45 protected:
48 };
49 
50 #endif /* _PHYSICALLAYER_H */
Abstract base class for the physical layer.
Definition: PhysicalLayer.h:25
virtual bool tx(uint8 *aData, uint16 aSize)=0
Transmit data.
Abstract base class for link Layers in the OSI model.
Definition: LinkLayer.h:26
LinkLayer * mLinkLayer
The link layer that is one level up from this serial port.
Definition: PhysicalLayer.h:47
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
virtual void setLinkLayer(LinkLayer *aLinkLayer)
Change the link layer that receives bytes from this SerialPort.
unsigned char uint8
8-bit unsigned integer
Definition: garmin_types.h:62