mirror of https://github.com/PentHertz/srsLTE.git
lib,rlc_am_nr: added debug_window function
This commit is contained in:
parent
d2d3c4140a
commit
6ff18272e0
|
@ -181,9 +181,10 @@ public:
|
|||
rlc_am_nr_tx_state_t get_tx_state() { return st; } // This should only be used for testing.
|
||||
uint32_t get_tx_window_utilization() { return tx_window->size(); } // This should only be used for testing.
|
||||
|
||||
// Debug Helper
|
||||
// Debug Helpers
|
||||
void debug_state() const;
|
||||
void info_state() const;
|
||||
void debug_window() const;
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
@ -1220,6 +1220,7 @@ void rlc_am_nr_tx::debug_state() const
|
|||
st.pdu_without_poll,
|
||||
st.byte_without_poll);
|
||||
}
|
||||
|
||||
void rlc_am_nr_tx::info_state() const
|
||||
{
|
||||
RlcInfo("TX window state: SDUs %d", tx_window->size());
|
||||
|
@ -1230,6 +1231,11 @@ void rlc_am_nr_tx::info_state() const
|
|||
st.pdu_without_poll,
|
||||
st.byte_without_poll);
|
||||
}
|
||||
|
||||
void rlc_am_nr_tx::debug_window() const
|
||||
{
|
||||
RlcDebug("TX window state: Tx_Next_Ack=%d, Tx_Next=%d, SDUs=%d", st.tx_next_ack, st.tx_next, tx_window->size());
|
||||
}
|
||||
/****************************************************************************
|
||||
* Rx subclass implementation
|
||||
***************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue