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/ZCL/include/zclZllInterPan.h | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/ZCL/include/zclZllInterPan.h (limited to 'digital/zigbit/bitcloud/stack/Components/ZCL/include/zclZllInterPan.h') diff --git a/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclZllInterPan.h b/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclZllInterPan.h new file mode 100644 index 00000000..471f8a48 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/ZCL/include/zclZllInterPan.h @@ -0,0 +1,71 @@ +/**************************************************************************//** + \file zclZllInterPan.h + + \brief + ZLL Inter-PAN operation 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: + 17.03.10 A. Taradov - Created. +******************************************************************************/ +#ifndef _ZCLZLLINTERPAN_H +#define _ZCLZLLINTERPAN_H + +/****************************************************************************** + Includes section +******************************************************************************/ +#include + +/****************************************************************************** + Definitions section +******************************************************************************/ + +/****************************************************************************** + Types section +******************************************************************************/ +typedef struct _ZCL_ZllInterPanStartConf_t +{ + ZCL_ZllStatus_t status; +} ZCL_ZllInterPanStartConf_t; + +typedef struct _ZCL_ZllInterPanStartReq_t +{ + ZCL_ZllInterPanStartConf_t confirm; + void (*ZCL_ZllInterPanStartConf)(ZCL_ZllInterPanStartConf_t *conf); +} ZCL_ZllInterPanStartReq_t; + +/****************************************************************************** + Prototypes section +******************************************************************************/ + +/**************************************************************************//** +\brief Reset ZLL Inter-PAN module +******************************************************************************/ +void ZCL_ZllInterPanReset(void); + +/**************************************************************************//** +\brief Prepare stack for Inter-PAN operation + +The function prepares the device for Inter-PAN communication. It is required +for starting network scan (invoked by the ZCL_ZllScanReq() function). + +The function is executed asynchronously. Invocation of the callback function +provided in the \c req->ZCL_ZllInterPanStartConf field indicates request +completion. If the request has been successful (the reported status equals +::ZCL_ZLL_SUCCESS_STATUS) ZigBee network features become unavailable. + +To restore normal stack operation, when Inter-PAN data exchange has finished, +call the ZDO_ResetNetworkReq() function. +******************************************************************************/ +void ZCL_ZllInterPanStartReq(ZCL_ZllInterPanStartReq_t *req); + +#endif // _ZCLZLLINTERPAN_H + +// eof zclZllInterPan.h -- cgit v1.2.3