summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h
new file mode 100644
index 00000000..b1e40a96
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h
@@ -0,0 +1,68 @@
+/**************************************************************************//**
+ \file nwkProfiler.h
+
+ \brief Interface of NWK Profiler.
+
+ \author
+ Atmel Corporation: http://www.atmel.com \n
+ Support email: avr@atmel.com
+
+ Copyright (c) 2008-2011, Atmel Corporation. All rights reserved.
+ Licensed under Atmel's Limited License Agreement (BitCloudTM).
+
+ \internal
+ History:
+ 2010-10-29 Max Gekk - Created
+ Last change:
+ $Id: nwkProfiler.h 18049 2011-07-20 13:08:36Z mgekk $
+ ******************************************************************************/
+#if !defined _NWK_PROFILER_H
+#define _NWK_PROFILER_H
+
+/******************************************************************************
+ Includes section
+ ******************************************************************************/
+#include <types.h>
+
+#if defined _PROFILER_
+/******************************************************************************
+ Types section
+ ******************************************************************************/
+/* NWK Profiling information. */
+BEGIN_PACK
+typedef struct PACK _NWK_ProfilingInfo_t
+{
+ /** Maximum number of simultaneous join transaction. */
+ uint8_t maxJoinTrans;
+ /** Current number of processing join requests. */
+ uint8_t incomingJoinReq;
+ /** Current number of pending buffer for join response command. */
+ uint8_t pendingJoinRespBuffers;
+ /** Total NWK buffers. */
+ uint8_t nwkBuffersAmount;
+ /** Current number of busy output command buffers. */
+ uint8_t outCmdBuffers;
+ /** Total number of passive acks. */
+ uint8_t passiveAckAmount;
+ /** Used passive acks amount. */
+ uint8_t usedPassiveAcks;
+} NWK_ProfilingInfo_t;
+END_PACK
+
+/******************************************************************************
+ Global variables section
+ ******************************************************************************/
+extern NWK_ProfilingInfo_t nwkProfilingInfo;
+
+/******************************************************************************
+ Prototypes section
+ ******************************************************************************/
+/**************************************************************************//**
+ \brief Collect profiling information and update nwkProfInfo.
+ ******************************************************************************/
+void NWK_CollectProfilingInfo(void);
+
+#endif /* _PROFILER_ */
+#endif /* _NWK_PROFILER_H */
+/** eof nwkProfiler.h */
+