summaryrefslogtreecommitdiff
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h
diff options
context:
space:
mode:
Diffstat (limited to 'digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h')
-rw-r--r--digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h
new file mode 100644
index 00000000..b05be87f
--- /dev/null
+++ b/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h
@@ -0,0 +1,54 @@
+/**************************************************************************//**
+ \file macBuffers.h
+
+ \brief MAC and PHY buffers' description.
+
+ \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/10/07 A. Luzhetsky - Created.
+******************************************************************************/
+
+#ifndef _MACBUFFERS_H
+#define _MACBUFFERS_H
+
+/******************************************************************************
+ Includes section
+******************************************************************************/
+#include <inttypes.h>
+#include <types.h>
+#include <phy.h>
+#include <macphyPib.h>
+
+/******************************************************************************
+ Define(s) section
+******************************************************************************/
+//! Size of internal reception buffer.
+#define FRAME_RX_BUFFER_SIZE (PHY_FRAME_LENGTH_FIELD_SIZE + \
+ PHY_MAX_PACKET_SIZE + \
+ PHY_LQI_FIELD_SIZE + \
+ PHY_RSSI_FIELD_SIZE)
+
+/******************************************************************************
+ Types section
+******************************************************************************/
+//! Rx frame buffer state descriptor.
+typedef struct
+{
+ uint8_t *buffer;
+ uint8_t *reserved;
+ uint8_t *gap1b;
+ uint8_t *gap1e;
+ uint8_t *gap2b;
+ uint8_t *gap2e;
+} FrameRxBufferState_t;
+
+#endif // _MACBUFFERS_H
+
+// eof macBuffers.h