summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h')
-rw-r--r--digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h b/digital/beacon/src/Bitcloud_stack/Components/MAC_PHY/MAC_HWI/include/machwiDataHandler.h
new file mode 100644
index 00000000..76b69564
--- /dev/null
+++ b/digital/beacon/src/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 <machwd.h>
+#include <machwiManager.h>
+#include <macCommon.h>
+#include <macData.h>
+
+
+/******************************************************************************
+ 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