|
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
1 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 |
/* |
2 |
/* |
3 |
* Copyright (c) 2010 CTTC |
3 |
* Copyright (c) 2010,2011 CTTC |
4 |
* |
4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License version 2 as |
6 |
* it under the terms of the GNU General Public License version 2 as |
|
22 |
#define GENERIC_PHY_H |
22 |
#define GENERIC_PHY_H |
23 |
|
23 |
|
24 |
#include <ns3/callback.h> |
24 |
#include <ns3/callback.h> |
|
|
25 |
#include <ns3/object.h> |
25 |
|
26 |
|
26 |
namespace ns3 { |
27 |
namespace ns3 { |
27 |
|
28 |
|
|
|
29 |
class Packet; |
28 |
|
30 |
|
29 |
/** |
31 |
/** |
30 |
* This method allows the MAC to instruct the PHY to start a |
32 |
* This method allows the MAC to instruct the PHY to start a |
|
67 |
*/ |
69 |
*/ |
68 |
typedef Callback< void, Ptr<Packet> > GenericPhyRxEndOkCallback; |
70 |
typedef Callback< void, Ptr<Packet> > GenericPhyRxEndOkCallback; |
69 |
|
71 |
|
|
|
72 |
|
73 |
/** |
74 |
* The GenericPhy Object is provided as a base class for all objects |
75 |
* that use the GenericPhy interface. The purpose of having such an |
76 |
* object is to allow making any PHY object that uses the GenericPhy |
77 |
* interface reachable through the attribute system via an upper |
78 |
* layer object (such as NetDevice), but without resorting to an |
79 |
* opaque Ptr<Object> which would give some problems. |
80 |
* See https://www.nsnam.org/bugzilla/show_bug.cgi?id=962 for the |
81 |
* related discussion. |
82 |
* |
83 |
*/ |
84 |
class GenericPhy : public Object |
85 |
{ |
86 |
public: |
87 |
GenericPhy (); |
88 |
virtual ~GenericPhy (); |
89 |
|
90 |
// inherited from Object |
91 |
static TypeId GetTypeId (void); |
92 |
}; |
93 |
|
94 |
|
95 |
|
70 |
} // namespace ns3 |
96 |
} // namespace ns3 |
71 |
|
97 |
|
72 |
|
98 |
|