summaryrefslogtreecommitdiff
path: root/cesar/bsu/inc
diff options
context:
space:
mode:
authorNélio Laranjeiro2011-01-28 10:57:09 +0100
committerNélio Laranjeiro2011-02-07 16:19:00 +0100
commitb21bc67eb9f4df3f5a44fd04f2547f00096443ee (patch)
treed713eaffe117fe4125c424b42b61d3fabf96d4e2 /cesar/bsu/inc
parent2bd01b5e3f6a743c76c4538e5c41bab0d94dbb89 (diff)
cesar/bsu: add stats, closes #2213
- current ntb_tck_offset - current frequency error in q30.
Diffstat (limited to 'cesar/bsu/inc')
-rw-r--r--cesar/bsu/inc/context.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/cesar/bsu/inc/context.h b/cesar/bsu/inc/context.h
index 7a4fe11b0d..8fbf19552b 100644
--- a/cesar/bsu/inc/context.h
+++ b/cesar/bsu/inc/context.h
@@ -17,6 +17,7 @@
#include "bsu/ntb/ntb_sync.h"
#include "bsu/beacon/beacon.h"
#include "bsu/inc/trace.h"
+#include "lib/stats.h"
/** Number of foreign AVLNs handled. */
#define BSU_FOREIGN_AVLNS_NB (HPAV_AVLNS_NB_MAX - 1)
@@ -33,6 +34,18 @@ struct bsu_avln_schedules_process_t
};
typedef struct bsu_avln_schedules_process_t bsu_avln_schedules_process_t;
+#if CONFIG_STATS
+/** Statistics. */
+struct bsu_stats_t
+{
+ /** Current NTB offset tck. */
+ u32 ntb_offset_tck;
+ /** Current frequency error in q30. */
+ uint frequency_error_q30;
+};
+typedef struct bsu_stats_t bsu_stats_t;
+#endif
+
/** BSU AVLN data. */
struct bsu_avln_t
{
@@ -104,6 +117,10 @@ struct bsu_t
/** Trace system. */
trace_buffer_t trace;
#endif /* !CONFIG_TRACE */
+#if CONFIG_STATS
+ /** Statistics. */
+ bsu_stats_t stats;
+#endif
};
#endif /* bsu_inc_context_h */