summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.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/NWK/include/private/nwkManyToOne.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h
new file mode 100644
index 00000000..7eaf3dbc
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h
@@ -0,0 +1,69 @@
+/**************************************************************************//**
+ \file nwkManyToOne.h
+
+ \brief Internal interface of the many-to-one component.
+
+ \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-05-13 M. Gekk - Created.
+ Last change:
+ $Id: nwkManyToOne.h 17448 2011-06-09 13:53:59Z ataradov $
+ ******************************************************************************/
+#if !defined _NWK_MANY_TO_ONE_H
+#define _NWK_MANY_TO_ONE_H
+
+/******************************************************************************
+ Includes section
+ ******************************************************************************/
+#include <nwkConfig.h>
+#include <nwkRoutingTable.h>
+#include <queue.h>
+
+/******************************************************************************
+ Types section
+ ******************************************************************************/
+/* Internal variables of the many-to-one component. */
+typedef struct _NwkManyToOne_t
+{
+ QueueDescriptor_t queue; /**< Queue of requests from upper layer. */
+} NwkManyToOne_t;
+
+/******************************************************************************
+ Prototypes section
+ ******************************************************************************/
+#if defined NWK_ROUTING_CAPACITY && defined _NWK_MANY_TO_ONE_ROUTING_
+/**************************************************************************//**
+ \brief Main task handler of the many-to-one component.
+ ******************************************************************************/
+NWK_PRIVATE void nwkManyToOneTaskHandler(void);
+
+/**************************************************************************//**
+ \brief Reset the many-to-one component.
+ ******************************************************************************/
+NWK_PRIVATE void nwkResetManyToOne(void);
+
+/**************************************************************************//**
+ \brief Many-to-one route request from concentrator has been received.
+
+ \param[in] entry - pointer to concentrator entry in the routing table.
+ \return None.
+ ******************************************************************************/
+NWK_PRIVATE void nwkNewConcentratorFound(NwkRoutingTableEntry_t *const entry);
+
+#else
+
+#define nwkManyToOneTaskHandler NULL
+#define nwkResetManyToOne() (void)0
+#define nwkNewConcentratorFound(entry) (void)0
+
+#endif /* NWK_ROUTING_CAPACITY and _NWK_MANY_TO_ONE_ROUTING_ */
+#endif /* _NWK_MANY_TO_ONE_H */
+/** eof nwkManyToOne.h */
+