LEFT | RIGHT |
(no file at all) | |
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) 2005,2006 INRIA | 3 * Copyright (c) 2005,2006 INRIA |
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 |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 */ | 489 */ |
490 bool DefineChannelNumber (uint8_t channelNumber, WifiPhyStandard standard, uin
t16_t frequency, uint16_t channelWidth); | 490 bool DefineChannelNumber (uint8_t channelNumber, WifiPhyStandard standard, uin
t16_t frequency, uint16_t channelWidth); |
491 | 491 |
492 /** | 492 /** |
493 * A pair of a ChannelNumber and WifiPhyStandard | 493 * A pair of a ChannelNumber and WifiPhyStandard |
494 */ | 494 */ |
495 typedef std::pair<uint8_t, WifiPhyStandard> ChannelNumberStandardPair; | 495 typedef std::pair<uint8_t, WifiPhyStandard> ChannelNumberStandardPair; |
496 /** | 496 /** |
497 * A pair of a center Frequency and a ChannelWidth | 497 * A pair of a center Frequency and a ChannelWidth |
498 */ | 498 */ |
499 typedef std::pair<uint16_t, uint8_t> FrequencyWidthPair; | 499 typedef std::pair<uint16_t, uint16_t> FrequencyWidthPair; |
500 | 500 |
501 /** | 501 /** |
502 * Return the Channel this WifiPhy is connected to. | 502 * Return the Channel this WifiPhy is connected to. |
503 * | 503 * |
504 * \return the Channel this WifiPhy is connected to | 504 * \return the Channel this WifiPhy is connected to |
505 */ | 505 */ |
506 virtual Ptr<Channel> GetChannel (void) const = 0; | 506 virtual Ptr<Channel> GetChannel (void) const = 0; |
507 | 507 |
508 /** | 508 /** |
509 * Return a WifiMode for DSSS at 1Mbps. | 509 * Return a WifiMode for DSSS at 1Mbps. |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1586 * \param standard the Wi-Fi standard | 1586 * \param standard the Wi-Fi standard |
1587 */ | 1587 */ |
1588 void ConfigureChannelForStandard (WifiPhyStandard standard); | 1588 void ConfigureChannelForStandard (WifiPhyStandard standard); |
1589 | 1589 |
1590 /** | 1590 /** |
1591 * Look for channel number matching the frequency and width | 1591 * Look for channel number matching the frequency and width |
1592 * \param frequency The center frequency to use | 1592 * \param frequency The center frequency to use |
1593 * \param width The channel width to use | 1593 * \param width The channel width to use |
1594 * \return the channel number if found, zero if not | 1594 * \return the channel number if found, zero if not |
1595 */ | 1595 */ |
1596 uint8_t FindChannelNumberForFrequencyWidth (uint16_t frequency, uint8_t width)
const; | 1596 uint8_t FindChannelNumberForFrequencyWidth (uint16_t frequency, uint16_t width
) const; |
1597 /** | 1597 /** |
1598 * Lookup frequency/width pair for channelNumber/standard pair | 1598 * Lookup frequency/width pair for channelNumber/standard pair |
1599 * \param channelNumber The channel number to check | 1599 * \param channelNumber The channel number to check |
1600 * \param standard The WifiPhyStandard to check | 1600 * \param standard The WifiPhyStandard to check |
1601 * \return the FrequencyWidthPair found | 1601 * \return the FrequencyWidthPair found |
1602 */ | 1602 */ |
1603 FrequencyWidthPair GetFrequencyWidthForChannelNumberStandard (uint8_t channelN
umber, WifiPhyStandard standard) const; | 1603 FrequencyWidthPair GetFrequencyWidthForChannelNumberStandard (uint8_t channelN
umber, WifiPhyStandard standard) const; |
1604 | 1604 |
1605 /** | 1605 /** |
1606 * Due to newly arrived signal, the current reception cannot be continued and
has to be aborted | 1606 * Due to newly arrived signal, the current reception cannot be continued and
has to be aborted |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 /** | 1797 /** |
1798 * \param os output stream | 1798 * \param os output stream |
1799 * \param state wifi state to stringify | 1799 * \param state wifi state to stringify |
1800 * \return output stream | 1800 * \return output stream |
1801 */ | 1801 */ |
1802 std::ostream& operator<< (std::ostream& os, WifiPhyState state); | 1802 std::ostream& operator<< (std::ostream& os, WifiPhyState state); |
1803 | 1803 |
1804 } //namespace ns3 | 1804 } //namespace ns3 |
1805 | 1805 |
1806 #endif /* WIFI_PHY_H */ | 1806 #endif /* WIFI_PHY_H */ |
LEFT | RIGHT |