From b24866225a6301d3a663f874725e83c012dc25d3 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 26 Dec 2012 17:36:00 +0100 Subject: digital/beacon: add bitcloud stack into common directory digital/zigbit --- .../Components/NWK/include/private/nwkManyToOne.h | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkManyToOne.h') 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 +#include +#include + +/****************************************************************************** + 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 */ + -- cgit v1.2.3