summaryrefslogtreecommitdiffhomepage
path: root/digital/zigbit/bitcloud/stack/Components/MAC_PHY/include/macBuffers.h
blob: b05be87f0d3d3ec1a0c4518acae1a0c21c8db029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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