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/private/nwkRx.h | 85 ++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRx.h (limited to 'digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRx.h') diff --git a/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRx.h b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRx.h new file mode 100644 index 00000000..5366119f --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/NWK/include/private/nwkRx.h @@ -0,0 +1,85 @@ +/**************************************************************************//** + \file nwkRx.h + + \brief Functions of processing of input data + + \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: + 2007-06-14 V. Panov - Created. + 2008-11-25 M. Gekk - Counters of buffers have been remote. + 2008-12-10 M. Gekk - Memory optimization. + 2009-07-08 M. Gekk - Redesign. + Last change: + $Id: nwkRx.h 18298 2011-08-19 12:42:09Z mgekk $ + ******************************************************************************/ +#if !defined _NWK_RX_H +#define _NWK_RX_H + +/****************************************************************************** + Includes section + ******************************************************************************/ +#include +#include +#include +#include +#include +#include +#if defined _SECURITY_ +#include +#endif /* _SECURITY_ */ + +/****************************************************************************** + Definition section + ******************************************************************************/ +#define NWK_UNICAST_COMMAND_TRANSIT_TX_PARAMETERS \ + {NWK_TX_DELAY_UNICAST_COMMAND, NULL, NULL, true} +#define NWK_UNICAST_DATA_TRANSIT_TX_PARAMETERS \ + {NWK_TX_DELAY_TRANSIT_DATA, NULL, NULL, true} +#define NWK_BROADCAST_TRANSIT_TX_PARAMETERS \ + {NWK_TX_DELAY_BROADCAST, NULL, NULL, true} +#define NWK_MULTICAST_MEMBER_TRANSIT_TX_PARAMETERS \ + {NWK_TX_DELAY_MULTICAST, NULL, NULL, true} + +/****************************************************************************** + Types section + ******************************************************************************/ +/** Input packet meta information. */ +typedef struct _NwkInputPacket_t +{ + bool retransmit : 1; + bool decryptRequired : 1; + bool indicate : 1; + NwkBitField_t txId : 5; + uint8_t *data; + NwkLength_t length; + NwkParseHeader_t parsedHeader; + union + { + NWK_DataInd_t dataInd; +#if defined _SECURITY_ + SSP_DecryptFrameReq_t decryptReq; +#endif /* _SECURITY_ */ + } primitive; +} NwkInputPacket_t; + +/****************************************************************************** + Prototypes section + ******************************************************************************/ +/**************************************************************************//** + \brief The upper layer has completed data processing. + + \param[in] resp - NLDE-DATA indication primitive's parameters structure. + \return None. + ******************************************************************************/ +void NWK_DataResp(NWK_DataResp_t *resp); + +#endif /* _NWK_RX_H */ +/** eof nwkRx.h */ + -- cgit v1.2.3