From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../stack/Components/NWK/include/nwkProfiler.h | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h') 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 + +#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 */ + -- cgit v1.2.3