summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h
diff options
context:
space:
mode:
authorFlorent Duchon2012-12-26 17:36:00 +0100
committerFlorent Duchon2013-02-13 21:21:12 +0100
commitb24866225a6301d3a663f874725e83c012dc25d3 (patch)
treeca527a2aab9abcdfbaf244c53ca63f0c531892b0 /digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h
parent2ba279f4eb2f23fa08a7c13465d16ae6ba5d0f96 (diff)
digital/beacon: add bitcloud stack into common directory digital/zigbit
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/MAC_PHY/MAC_HWI/include/machwiPollHandler.h82
1 files changed, 82 insertions, 0 deletions
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 <macFrame.h>
+#include <machwiManager.h>
+
+/******************************************************************************
+ 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