diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-19 20:04:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-10-30 21:24:10 +0100 |
commit | 111614a9942195f6261be5cf8854d1f6fdbe1479 (patch) | |
tree | 627ebecacbedd290acaf7278a3b21eb139e07cfc /src/bts.h | |
parent | d6ef5345e570cf2a725e2d73bb0146b72a063f30 (diff) |
ta: Create TimingAdvance class and make it belong to the BTS
This allows us to easily flush the state in case a PCU/BTS
connection is lost.
Diffstat (limited to 'src/bts.h')
-rw-r--r-- | src/bts.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -28,6 +28,7 @@ extern "C" { } #include "poll_controller.h" +#include "ta.h" #endif #include <stdint.h> @@ -122,6 +123,7 @@ public: static BTS* main_bts(); struct gprs_rlcmac_bts *bts_data(); + TimingAdvance *timing_advance(); /** TODO: change the number to unsigned */ void set_current_frame_number(int frame_number); @@ -134,6 +136,7 @@ private: int m_cur_fn; struct gprs_rlcmac_bts m_bts; PollController m_pollController; + TimingAdvance m_ta; private: /* disable copying to avoid slicing */ @@ -145,6 +148,11 @@ inline int BTS::current_frame_number() const { return m_cur_fn; } + +inline TimingAdvance *BTS::timing_advance() +{ + return &m_ta; +} #endif #ifdef __cplusplus |