summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/nwkProfiler.h
blob: b1e40a968d0b9f4be1cbf6686225d83a6d2e7e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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 */