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/machwiPollHandler.h | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h') diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h new file mode 100644 index 00000000..10a04736 --- /dev/null +++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h @@ -0,0 +1,82 @@ +/****************************************************************************** + \file machwiPollHandler.h + + \brief MAC poll routine 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: + 09/07/07 ALuzhetsky - Created. +******************************************************************************/ + +#ifndef _MACHWIPOLLHANDLER_H +#define _MACHWIPOLLHANDLER_H + +/****************************************************************************** + Includes section. +******************************************************************************/ +#include +#include + +/****************************************************************************** + Typesa definition section +******************************************************************************/ +/****************************************************************************** + MAC Hardware Independent part POLL handler possible states. +******************************************************************************/ +typedef enum +{ + MACHWI_POLL_HANDLER_STATE_IDLE, + MACHWI_POLL_HANDLER_STATE_DATA_REQ_TRANSMISSION, + MACHWI_POLL_HANDLER_STATE_ANSWER_WAITING, + MACHWI_POLL_HANDLER_STATE_TRX_STATE_SETTING, +} MachwiPollHandlerState_t; + +/****************************************************************************** + Prototypes section +******************************************************************************/ +/****************************************************************************** + Resets poll handler. + Parameters: + none. + Returns: + none. +******************************************************************************/ +void machwiResetPollHandler(void); + +/****************************************************************************** + Indicates data reception to upper layer. + Parameters: + frameDescr - pointer to frame descriptor. + Returns: + none. +******************************************************************************/ +void machwiDataIndication(MAC_FrameDescr_t *frameDescr); + +/****************************************************************************** + Checks poll request parameters, sends data request commands. + Waits for the data. + Parameters: + none. + Returns: + current status of operation (success or "in progress"). +******************************************************************************/ +MachwiHandlerResult_t machwiPollReqHandler(void); + +/****************************************************************************** + Indicates, that data request frame was received. + Parameters: + pollDescr - Poll description. + Returns: + none. +******************************************************************************/ +void machwiPollInd(MAC_FrameDescr_t *frameDescr); + +#endif //_MACHWIPOLLHANDLER_H +// eof machwiPollHandler.h -- cgit v1.2.3