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 --- .../MAC_PHY/MAC_HWI/include/machwiDataHandler.h | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h') diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h new file mode 100644 index 00000000..76b69564 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h @@ -0,0 +1,65 @@ +/****************************************************************************** + \file machwiDataHandler.h + + \brief machwiDataHandler header file. + + \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: + 15/06/07 ALuzhetsky - Created. +******************************************************************************/ + +#ifndef _MACHWIDATAHANDLER_H +#define _MACHWIDATAHANDLER_H + +/****************************************************************************** + Includes section. +******************************************************************************/ +#include +#include +#include +#include + + +/****************************************************************************** + Prototypes section +******************************************************************************/ +/****************************************************************************** + Checks data request parameters, fills frame descriptor and passes request + further. + Parameters: + none. + Returns: + current status of operation (success or "in progress"). +******************************************************************************/ +MachwiHandlerResult_t machwiDataReqHandler(void); + +/****************************************************************************** + Converts hwd data transmission status to IEEE802.15.4 status. + Parameters: + status - hwd data transmission status. + Returns: + IEEE802.15.4 data transmission status. +******************************************************************************/ +MAC_Status_t machwiConvertmachwdDataConfirmTypes(MACHWD_DataStatus_t hwdStatus); + +/****************************************************************************** + Fiils data frame fields. + Parameters: + frameDescr - pointer to frme descriptor to be filled. + dataReq - pointer to data request params. + Returns: + none. +******************************************************************************/ +void machwiPrepareDataFrame(MAC_FrameDescr_t *frameDescr, MAC_DataReq_t *dataReq); + + +#endif /* _MACHWIDATAHANDLER_H */ + +// eof machwiDataHandler.h -- cgit v1.2.3