1/********************************************************************* 2 PicoTCP. Copyright (c) 2012-2017 Altran Intelligent Systems. Some rights 3 reserved. See LICENSE and COPYING for usage. 4 5 Authors: Jelle De Vleeschouwer 6 *********************************************************************/ 7#ifndef INCLUDE_PICO_802154 8#define INCLUDE_PICO_802154 9 10#include "pico_device.h" 11#include "pico_config.h" 12#include "pico_6lowpan_ll.h" 13 14/******************************************************************************* 15 * Size definitions 16 ******************************************************************************/ 17 18#define MTU_802154_PHY (128u) 19#define MTU_802154_MAC (125u) // 127 - Frame Check Sequence 20 21#define SIZE_802154_MHR_MIN (5u) 22#define SIZE_802154_MHR_MAX (23u) 23#define SIZE_802154_FCS (2u) 24#define SIZE_802154_LEN (1u) 25#define SIZE_802154_PAN (2u) 26 27/******************************************************************************* 28 * Structure definitions 29 ******************************************************************************/ 30 31PACKED_STRUCT_DEF pico_802154_hdr 32{ 33 uint16_t fcf; 34 uint8_t seq; 35 uint16_t pan_id; 36}; 37 38extern const struct pico_6lowpan_ll_protocol pico_6lowpan_ll_802154; 39 40#endif /* INCLUDE_PICO_802154 */ 41