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/nlmeDirectJoin.h | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeDirectJoin.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeDirectJoin.h') diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeDirectJoin.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeDirectJoin.h new file mode 100644 index 00000000..1e2141a7 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/nlmeDirectJoin.h @@ -0,0 +1,76 @@ +/**************************************************************************//** + \file nlmeDirectJoin.h + + \brief NLME-DIRECT-JOIN 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-12 Max Gekk - Created. + Last change: + $Id: nlmeDirectJoin.h 17448 2011-06-09 13:53:59Z ataradov $ + ******************************************************************************/ +#if !defined _NLME_DIRECT_JOIN_H +#define _NLME_DIRECT_JOIN_H + +/****************************************************************************** + Includes section + ******************************************************************************/ +#include +#include + +/****************************************************************************** + Types section + ******************************************************************************/ +/**//** + * \brief NLME-DIRECT-JOIN confirm primitive's parameters structure declaration. + * ZigBee Specification r17, 3.2.2.15 NLME-DIRECT-JOIN.confirm, page 287. + */ +typedef struct _NWK_DirectJoinConf_t +{ + /** The status of the corresponding request. */ + NWK_Status_t status; +} NWK_DirectJoinConf_t; + +/**//** + * \brief NLME-DIRECT-JOIN request primitive's parameters structure declaration. + * Zigbee Specification r17, 3.2.2.14 NLME-DIRECT-JOIN.request, page 286. + */ +typedef struct _NWK_DirectJoinReq_t +{ + /** Service fields - for internal needs. */ + struct + { + QueueElement_t qelem; /**< link used for queuing */ + } service; + /** The IEEE address of the device to be directly joined.*/ + ExtAddr_t deviceAddress; + /** Recommended network address. */ + ShortAddr_t networkAddress; + /** The operating capabilities of the device being directly joined. */ + MAC_CapabilityInf_t capabilityInformation; + /** NLME-DIRECT-JOIN confirm callback function's pointer. */ + void (*NWK_DirectJoinConf)(NWK_DirectJoinConf_t *conf); + NWK_DirectJoinConf_t confirm; +} NWK_DirectJoinReq_t; + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief NLME-DIRECT-JOIN request primitive's prototype. + + \param[in] req - NLME-DIRECT-JOIN request parameters' structure pointer. + \return None. + ******************************************************************************/ +void NWK_DirectJoinReq(NWK_DirectJoinReq_t *const req); + +#endif /* _NLME_DIRECT_JOIN_H */ +/** eof nlmeDirectJoin.h */ + -- cgit v1.2.3