summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h
new file mode 100644
index 00000000..a4dfa05b
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macOrphan.h
@@ -0,0 +1,81 @@
+/**************************************************************************//**
+ \file macOrphan.h
+
+ \brief Types', constants' and functions' declarations for IEEE 802.15.4-2006
+ orphan 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 _MACORPHAN_H
+#define _MACORPHAN_H
+
+/******************************************************************************
+ Includes section.
+******************************************************************************/
+#include <macAddr.h>
+#include <macCommon.h>
+#include <macCommStatus.h>
+
+/******************************************************************************
+ Definitions section.
+******************************************************************************/
+
+/******************************************************************************
+ Types section.
+******************************************************************************/
+//! MLME-ORPHAN indication primitive's parameters. IEEE 802.15.4-2006 7.1.8.1
+typedef struct
+{
+ //! The address of the orphaned device.
+ ExtAddr_t extAddr;
+} MAC_OrphanInd_t;
+
+//! MLME-ORPHAN response pritive's parameters. IEEE 802.15.4-2006 7.1.8.2
+typedef struct
+{
+ //! Service field - for internal needs.
+ MAC_Service_t service;
+ //! The address of the orphaned device.
+ ExtAddr_t extAddr;
+ //! The 16-bit short address allocated to the orphaned device if it is
+ //! associated with this coordinator.
+ ShortAddr_t shortAddr;
+ //! TRUE if the orphaned device is associated with this coordinator or FALSE otherwise.
+ bool associate;
+ //! MLME-ORPHAN response callback function pointer.
+ void (*MAC_CommStatusInd)(MAC_CommStatusInd_t *commStat);
+ // MLME-COMM_STATUS parameters' structure.
+ MAC_CommStatusInd_t commStatus;
+} MAC_OrphanResp_t;
+
+
+/******************************************************************************
+ Prototypes section
+******************************************************************************/
+/**************************************************************************//**
+ \brief MLME-ORPHAN indication primitive's prototype.
+ \param indParams - MLME-ORPHAN indication parameters' structure pointer.
+ \return none.
+******************************************************************************/
+extern void MAC_OrphanInd(MAC_OrphanInd_t *indParams);
+
+/**************************************************************************//**
+ \brief MLME-ORPHAN response primitive's prototype.
+ \param respParams - MLME-ORPHAN response parameters' structure pointer.
+ \return none.
+******************************************************************************/
+void MAC_OrphanResp(MAC_OrphanResp_t *respParams);
+
+#endif // _MACORPHAN_H
+
+// eof macOrphan.h