summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/APS/include/private/apsRejectDuplicate.h
blob: 97b51223004243ad1099ea207d07e1e894e8afc0 (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
/**************************************************************************//**
  \file apsRejectDuplicate.h

  \brief Private interface of the duplicate rejection table.

  \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:
    2011-07-03 Max Gekk - Created.
   Last change:
    $Id: apsRejectDuplicate.h 17801 2011-07-04 08:55:01Z mgekk $
 ******************************************************************************/
#if !defined _APS_REJECT_DUPLICATE_H
#define _APS_REJECT_DUPLICATE_H
/******************************************************************************
                                Includes section
 ******************************************************************************/
#include <apsCommon.h>

/******************************************************************************
                               Prototypes section
 ******************************************************************************/
/*****************************************************************************
  \brief Is incoming packet is dublicate or not? Checks in the rejection table.

  \param[in] srcAddr - short address of source node.
  \param[in] counter - APS counter of incoming packet.

  \return true - if incoming packet is duplicate otherwise return false.
*****************************************************************************/
APS_PRIVATE bool apsIsDuplicatePacket(const ShortAddr_t srcAddr,
  const uint8_t counter);

/******************************************************************************
  \brief Reset the duplicate rejection table ana reinit timeouts.
 ******************************************************************************/
APS_PRIVATE void apsResetDuplicateRejectionTable(void);

#endif /* _APS_REJECT_DUPLICATE_H */
/** eof apsRejectDuplicate.h */