summaryrefslogtreecommitdiff
path: root/digital/beacon/src/Bitcloud_stack/Components/APS/include/private/apsRemoveDevice.h
blob: 7d9bf174ecdf35c526c8ddde55b7a8aa4db0e841 (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
/**************************************************************************//**
  \file apsRemoveDevice.h

  \brief Private interface of APS Remove Device.

  \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-03-18 A. Razinkov - Created.
   Last change:
    $Id: apsRemoveDevice.h 17470 2011-06-10 11:31:00Z mgekk $
 ******************************************************************************/
#ifndef _APS_REMOVE_DEVICE_H
#define _APS_REMOVE_DEVICE_H

#ifdef _SECURITY_
/******************************************************************************
                                Includes section
 ******************************************************************************/
#include <apsCommand.h>
#include <nwk.h>
#include <apsFrames.h>
#include <apsmeRemoveDevice.h>

/******************************************************************************
                                 Types section
 ******************************************************************************/
BEGIN_PACK
/** Type of APS remove device command frame. */
typedef struct PACK _ApsRemoveDeviceFrame_t
{
  /** An APS header, which comprises frame control and addressing information. */
  ApduCommandHeader_t header;
  /** the 64-bit extended address of the device that is requested to be removed
   *  from the network. */
  ExtAddr_t childAddress;
} ApsRemoveDeviceFrame_t;
END_PACK

/******************************************************************************
                               Prototypes section
 ******************************************************************************/
/**************************************************************************//**
  \brief Remove device indication handler.

  \param[in] commandInd - pointer to received command descriptor.

  \return 'true' if NWK buffer with the command frame must be freed
          otherwise return 'false'.
 ******************************************************************************/
APS_PRIVATE bool apsRemoveDeviceInd(const ApsCommandInd_t *const commandInd);

#endif /* _SECURITY_ */
#endif /* _APS_REMOVE_DEVICE_H */
/** eof apsRemoveDevice.h */