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 * This program is free software; you can redistribute it and/or modify | 3 * This program is free software; you can redistribute it and/or modify |
4 * it under the terms of the GNU General Public License version 2 as | 4 * it under the terms of the GNU General Public License version 2 as |
5 * published by the Free Software Foundation; | 5 * published by the Free Software Foundation; |
6 * | 6 * |
7 * This program is distributed in the hope that it will be useful, | 7 * This program is distributed in the hope that it will be useful, |
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 * GNU General Public License for more details. | 10 * GNU General Public License for more details. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 /** | 80 /** |
81 * Initializer | 81 * Initializer |
82 * \param channel the channel number | 82 * \param channel the channel number |
83 * \param immediate true if immediate access | 83 * \param immediate true if immediate access |
84 * \param channelAccess | 84 * \param channelAccess |
85 */ | 85 */ |
86 SchInfo (uint32_t channel, bool immediate, uint32_t channelAccess) | 86 SchInfo (uint32_t channel, bool immediate, uint32_t channelAccess) |
87 : channelNumber (channel), | 87 : channelNumber (channel), |
88 immediateAccess (immediate), | 88 immediateAccess (immediate), |
89 extendedAccess (channelAccess) | 89 extendedAccess (static_cast<uint8_t>(channelAccess)) |
90 { | 90 { |
91 | 91 |
92 } | 92 } |
93 /** | 93 /** |
94 * Initializer | 94 * Initializer |
95 * \param channel the channel number | 95 * \param channel the channel number |
96 * \param immediate true if immediate access | 96 * \param immediate true if immediate access |
97 * \param channelAccess | 97 * \param channelAccess |
98 * \param edca the EDCA parameters | 98 * \param edca the EDCA parameters |
99 */ | 99 */ |
100 SchInfo (uint32_t channel, bool immediate, uint32_t channelAccess, EdcaParamet
ers edca) | 100 SchInfo (uint32_t channel, bool immediate, uint32_t channelAccess, EdcaParamet
ers edca) |
101 : channelNumber (channel), | 101 : channelNumber (channel), |
102 immediateAccess (immediate), | 102 immediateAccess (immediate), |
103 extendedAccess (channelAccess), | 103 extendedAccess (static_cast<uint8_t>(channelAccess)), |
104 edcaParameters (edca) | 104 edcaParameters (edca) |
105 { | 105 { |
106 | 106 |
107 } | 107 } |
108 }; | 108 }; |
109 | 109 |
110 /// ChannelAccess enumeration | 110 /// ChannelAccess enumeration |
111 enum ChannelAccess | 111 enum ChannelAccess |
112 { | 112 { |
113 ContinuousAccess, // continuous access for SCHs | 113 ContinuousAccess, // continuous access for SCHs |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 * the assigned channel access resource. | 230 * the assigned channel access resource. |
231 * \return whether the channel access is released successfully | 231 * \return whether the channel access is released successfully |
232 */ | 232 */ |
233 virtual bool ReleaseAccess (uint32_t channelNumber) = 0; | 233 virtual bool ReleaseAccess (uint32_t channelNumber) = 0; |
234 | 234 |
235 Ptr<WaveNetDevice> m_device; ///< the device | 235 Ptr<WaveNetDevice> m_device; ///< the device |
236 }; | 236 }; |
237 | 237 |
238 } | 238 } |
239 #endif /* CHANNEL_SCHEDULER_H */ | 239 #endif /* CHANNEL_SCHEDULER_H */ |
LEFT | RIGHT |