OLD | NEW |
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) 2009 CTTC | 3 * Copyright (c) 2009 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 |
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 void SetGenericPhyRxEndErrorCallback (GenericPhyRxEndErrorCallback c); | 165 void SetGenericPhyRxEndErrorCallback (GenericPhyRxEndErrorCallback c); |
166 | 166 |
167 /** | 167 /** |
168 * set the callback for the successful end of a RX, as part of the | 168 * set the callback for the successful end of a RX, as part of the |
169 * interconnections betweenthe PHY and the MAC | 169 * interconnections betweenthe PHY and the MAC |
170 * | 170 * |
171 * @param c the callback | 171 * @param c the callback |
172 */ | 172 */ |
173 void SetGenericPhyRxEndOkCallback (GenericPhyRxEndOkCallback c); | 173 void SetGenericPhyRxEndOkCallback (GenericPhyRxEndOkCallback c); |
174 | 174 |
175 | 175 void SetErrorModel (Ptr<SpectrumErrorModel> m); |
| 176 SpectrumInterference & GetInterference (); |
176 | 177 |
177 private: | 178 private: |
178 virtual void DoDispose (void); | 179 virtual void DoDispose (void); |
179 | 180 |
180 void ChangeState (State newState); | 181 void ChangeState (State newState); |
181 void EndTx (); | 182 void EndTx (); |
182 void AbortRx (); | 183 void AbortRx (); |
183 void EndRx (); | 184 void EndRx (); |
184 | 185 |
185 EventId m_endRxEventId; | 186 EventId m_endRxEventId; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 219 |
219 | 220 |
220 | 221 |
221 } | 222 } |
222 | 223 |
223 | 224 |
224 | 225 |
225 | 226 |
226 | 227 |
227 #endif /* HALF_DUPLEX_IDEAL_PHY_H */ | 228 #endif /* HALF_DUPLEX_IDEAL_PHY_H */ |
OLD | NEW |