A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
dsss-ppdu.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Orange Labs
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Rediet <getachew.redieteab@orange.com>
18
* Muhammad Iqbal Rochman <muhiqbalcr@uchicago.edu>
19
* Sébastien Deronne <sebastien.deronne@gmail.com> (DsssSigHeader)
20
*/
21
22
#ifndef DSSS_PPDU_H
23
#define DSSS_PPDU_H
24
25
#include "ns3/header.h"
26
#include "ns3/wifi-ppdu.h"
27
34
namespace
ns3
35
{
36
37
class
WifiPsdu;
38
45
class
DsssPpdu
:
public
WifiPpdu
46
{
47
public
:
52
class
DsssSigHeader
:
public
Header
53
{
54
public
:
55
DsssSigHeader
();
56
61
static
TypeId
GetTypeId
();
62
63
TypeId
GetInstanceTypeId
()
const override
;
64
void
Print
(std::ostream& os)
const override
;
65
uint32_t
GetSerializedSize
()
const override
;
66
void
Serialize
(
Buffer::Iterator
start
)
const override
;
67
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
68
74
void
SetRate
(uint64_t rate);
80
uint64_t
GetRate
()
const
;
86
void
SetLength
(uint16_t length);
92
uint16_t
GetLength
()
const
;
93
94
private
:
95
uint8_t
m_rate
;
96
uint16_t
m_length
;
97
};
// class DsssSigHeader
98
108
DsssPpdu
(
Ptr<const WifiPsdu>
psdu,
109
const
WifiTxVector
& txVector,
110
uint16_t txCenterFreq,
111
Time
ppduDuration,
112
uint64_t uid);
113
114
Time
GetTxDuration
()
const override
;
115
Ptr<WifiPpdu>
Copy
()
const override
;
116
117
private
:
118
WifiTxVector
DoGetTxVector
()
const override
;
119
126
void
SetPhyHeaders
(
const
WifiTxVector
& txVector,
Time
ppduDuration);
127
135
void
SetDsssHeader
(
DsssSigHeader
& dsssSig,
136
const
WifiTxVector
& txVector,
137
Time
ppduDuration)
const
;
138
145
virtual
void
SetTxVectorFromDsssHeader
(
WifiTxVector
& txVector,
146
const
DsssSigHeader
& dsssSig)
const
;
147
148
#ifndef NS3_BUILD_PROFILE_DEBUG
149
DsssSigHeader
m_dsssSig;
150
#endif
151
};
// class DsssPpdu
152
153
}
// namespace ns3
154
155
#endif
/* DSSS_PPDU_H */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:100
ns3::DsssPpdu::DsssSigHeader
DSSS SIG PHY header.
Definition:
dsss-ppdu.h:53
ns3::DsssPpdu::DsssSigHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
dsss-ppdu.cc:150
ns3::DsssPpdu::DsssSigHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
dsss-ppdu.cc:138
ns3::DsssPpdu::DsssSigHeader::m_length
uint16_t m_length
LENGTH field.
Definition:
dsss-ppdu.h:96
ns3::DsssPpdu::DsssSigHeader::SetLength
void SetLength(uint16_t length)
Fill the LENGTH field of L-SIG (in bytes).
Definition:
dsss-ppdu.cc:210
ns3::DsssPpdu::DsssSigHeader::Print
void Print(std::ostream &os) const override
Definition:
dsss-ppdu.cc:144
ns3::DsssPpdu::DsssSigHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition:
dsss-ppdu.cc:222
ns3::DsssPpdu::DsssSigHeader::m_rate
uint8_t m_rate
RATE field.
Definition:
dsss-ppdu.h:95
ns3::DsssPpdu::DsssSigHeader::DsssSigHeader
DsssSigHeader()
Definition:
dsss-ppdu.cc:121
ns3::DsssPpdu::DsssSigHeader::GetRate
uint64_t GetRate() const
Return the RATE field of L-SIG (in bit/s).
Definition:
dsss-ppdu.cc:185
ns3::DsssPpdu::DsssSigHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
dsss-ppdu.cc:128
ns3::DsssPpdu::DsssSigHeader::SetRate
void SetRate(uint64_t rate)
Fill the RATE field of L-SIG (in bit/s).
Definition:
dsss-ppdu.cc:156
ns3::DsssPpdu::DsssSigHeader::GetLength
uint16_t GetLength() const
Return the LENGTH field of L-SIG (in bytes).
Definition:
dsss-ppdu.cc:216
ns3::DsssPpdu
DSSS (HR/DSSS) PPDU (11b)
Definition:
dsss-ppdu.h:46
ns3::DsssPpdu::GetTxDuration
Time GetTxDuration() const override
Get the total transmission duration of the PPDU.
Definition:
dsss-ppdu.cc:99
ns3::DsssPpdu::DoGetTxVector
WifiTxVector DoGetTxVector() const override
Get the TXVECTOR used to send the PPDU.
Definition:
dsss-ppdu.cc:71
ns3::DsssPpdu::Copy
Ptr< WifiPpdu > Copy() const override
Copy this instance.
Definition:
dsss-ppdu.cc:116
ns3::DsssPpdu::SetTxVectorFromDsssHeader
virtual void SetTxVectorFromDsssHeader(WifiTxVector &txVector, const DsssSigHeader &dsssSig) const
Fill in the TXVECTOR from DSSS header.
Definition:
dsss-ppdu.cc:93
ns3::DsssPpdu::DsssPpdu
DsssPpdu(Ptr< const WifiPsdu > psdu, const WifiTxVector &txVector, uint16_t txCenterFreq, Time ppduDuration, uint64_t uid)
Create a DSSS (HR/DSSS) PPDU.
Definition:
dsss-ppdu.cc:35
ns3::DsssPpdu::SetPhyHeaders
void SetPhyHeaders(const WifiTxVector &txVector, Time ppduDuration)
Fill in the PHY headers.
Definition:
dsss-ppdu.cc:47
ns3::DsssPpdu::SetDsssHeader
void SetDsssHeader(DsssSigHeader &dsssSig, const WifiTxVector &txVector, Time ppduDuration) const
Fill in the DSSS header.
Definition:
dsss-ppdu.cc:61
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:44
ns3::Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::Ptr< const WifiPsdu >
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:60
ns3::WifiPpdu
WifiPpdu stores a preamble, a modulation class, PHY headers and a PSDU.
Definition:
wifi-ppdu.h:56
ns3::WifiTxVector
This class mimics the TXVECTOR which is to be passed to the PHY in order to define the parameters whi...
Definition:
wifi-tx-vector.h:101
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.start
start
Definition:
two-ray-to-three-gpp-ch-calibration.py:474
src
wifi
model
non-ht
dsss-ppdu.h
Generated on Fri Mar 31 2023 13:30:53 for ns-3 by
1.9.1