summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macCommStatus.h
blob: 770ab1484e11614b806ad27bd61c1c90c035bf86 (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
/**************************************************************************//**
  \file macCommStatus.h
  
  \brief Types', constants' and functions' declarations for IEEE 802.15.4-2006 
    comm status primitives.
    
  \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:     
      18/06/07 ALuzhetsky - Created.
******************************************************************************/

#ifndef _MACCOMMSTATUS_H
#define _MACCOMMSTATUS_H

/******************************************************************************
                        Includes section.
******************************************************************************/
#include <macAddr.h>
#include <macCommon.h>

/******************************************************************************
                        Definitions section.
******************************************************************************/

/******************************************************************************
                        Types section.
******************************************************************************/

/**
 * \brief MLME-COMM_STATUS indication primitive's parameters.
 * IEEE 802.15.4-2006 7.1.12.1 MLME-COMM-STATUS.indication.
*/
typedef struct
{
  //! The 16-bit PAN identifier of the device from which the frame was received
  //! or to which the frame was being sent.
  PanId_t        panId;
  //! The source addressing mode for this primitive.
  MAC_AddrMode_t srcAddrMode;
  //! The individual device address of the entity from which the frame causing
  //! the error originated.
  MAC_Addr_t     srcAddr;
  //! The destination addressing mode for this primitive.
  MAC_AddrMode_t dstAddrMode;
  //! The individual device address of the device for which the frame was intended.
  MAC_Addr_t     dstAddr;
  //! The communications status.
  MAC_Status_t   status;
}  MAC_CommStatusInd_t;


/******************************************************************************
                        Prototypes section
******************************************************************************/
#endif //_MACCOMMSTATUS_H

// eof macCommStatus.h