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 --- .../stack/Components/NWK/include/nlmeStartRouter.h | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeStartRouter.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeStartRouter.h') diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeStartRouter.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeStartRouter.h new file mode 100644 index 00000000..d4de3afe --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeStartRouter.h @@ -0,0 +1,81 @@ +/**************************************************************************//** + \file nlmeStartRouter.h + + \brief NLME-START-ROUTER interface + + \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: + 2009-04-11 Max Gekk - Created. + Last change: + $Id: nlmeStartRouter.h 17448 2011-06-09 13:53:59Z ataradov $ + ******************************************************************************/ +#if !defined _NLME_START_ROUTER_H +#define _NLME_START_ROUTER_H + +/****************************************************************************** + Includes section + ******************************************************************************/ +#include +#include + +/****************************************************************************** + Types section + ******************************************************************************/ +/**//** + * \brief NLME-START-ROUTER confirm primitive's parameters structure declaration. + * ZigBee Specification r17, 3.2.2.7 NLME-START-ROUTER.confirm + */ +typedef struct _NWK_StartRouterConf_t +{ + /** The result of the attempt to initialize a ZigBee router. + * Valid range: NWK_INVALID_REQUEST_STATUS or any status value returned from + * the MAC_StartConf callback.*/ + NWK_Status_t status; +} NWK_StartRouterConf_t; + +/**//** + * \brief NLME-START-ROUTER request primitive's parameters structure declaration. + * Zigbee Specification r17, 3.2.2.8 NLME-START-ROUTER.request. + */ +typedef struct _NWK_StartRouterReq_t +{ + /** Service fields - for internal needs. */ + struct + { + QueueElement_t qelem; /**< link used for queuing */ + MAC_StartReq_t macStart; + } service; + /** The beacon order of the network that the higher layers wish to form. */ + /* NwkBeaconOrder_t beaconOrder; */ + /* The superframe order of the network that the higher layers wish to form. */ + /* NwkBeaconOrder_t superFrameOrder; */ + /* Supporting battery life extension mode. This parameter is ignored if the + * BeaconOrder parameter has a value of 15. */ + /* bool batteryLifeExtention; */ + /* NLME-START-ROUTER confirm callback function's pointer. */ + void (*NWK_StartRouterConf)(NWK_StartRouterConf_t *conf); + /** NLME-START-ROUTER confirm primitive's parameters */ + NWK_StartRouterConf_t confirm; +} NWK_StartRouterReq_t; + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief NLME-START-ROUTER request primitive's prototype. + + \param[in] req - NLME-START-ROUTER request parameters' structure pointer. + \return None. + ******************************************************************************/ +void NWK_StartRouterReq(NWK_StartRouterReq_t *const req); + +#endif /* _NLME_START_ROUTER_H */ +/** eof nlmeStartRouter.h */ + -- cgit v1.2.3