/****************************************************************************** Copyright 2008, Freie Universitaet Berlin (FUB). All rights reserved. These sources were developed at the Freie Universitaet Berlin, Computer Systems and Telematics group (http://cst.mi.fu-berlin.de). ------------------------------------------------------------------------------- This file is part of FeuerWare. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. FeuerWare is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/ . -------------------------------------------------------------------------------- For further information and questions please use the web site http://scatterweb.mi.fu-berlin.de and the mailinglist (subscription via web site) scatterweb@lists.spline.inf.fu-berlin.de *******************************************************************************/ /** * @file * @ingroup dev_cc110x * @brief ScatterWeb MSB-A2 mac-layer * * @author Freie Universität Berlin, Computer Systems & Telematics, FeuerWhere project * @author Thomas Hillebrandt * @author Heiko Will * @version $Revision: 1999 $ * * @note $Id: cc1100-csmaca-mac.h 1999 2010-03-16 15:48:18Z hillebra $ */ #ifndef CC1100_CSMACA_MAC_ #define CC1100_CSMACA_MAC_ #include "cc1100-interface.h" #include "cc1100-defaultSettings.h" //#define CSMACA_MAC_AGGRESSIVE_MODE // MAC aggressive mode on/off switch #define CARRIER_SENSE_TIMEOUT (200000) // Carrier Sense timeout ~ 2 seconds #define CARRIER_SENSE_TIMEOUT_MIN (2000) // Minimum Carrier Sense timeout ~ 20 milliseconds #define CS_TX_SWITCH_TIME (80) // Carrier Sense to TX switch time (measured ~ 350 us) /** All values are in ticks (x10 us) */ #define PRIO_ALARM_DIFS (200) // DIFS for ALARM packets, the default wait time #define PRIO_ALARM_SLOTTIME (CS_TX_SWITCH_TIME) // Time of one additional wait slot #define PRIO_ALARM_MIN_WINDOW_SIZE (2) // Minimum window size of backoff algorithm #define PRIO_ALARM_MAX_WINDOW_SIZE (8) // Maximum window size of backoff algorithm #define PRIO_WARN_DIFS (1000) // DIFS for WARN packets, the default wait time #define PRIO_WARN_SLOTTIME (CS_TX_SWITCH_TIME) // Time of one additional wait slot #define PRIO_WARN_MIN_WINDOW_SIZE (2) // Minimum window size of backoff algorithm #define PRIO_WARN_MAX_WINDOW_SIZE (16) // Maximum window size of backoff algorithm #define PRIO_DATA_DIFS (2500) // DIFS for normal data packets, the default wait time #define PRIO_DATA_SLOTTIME (CS_TX_SWITCH_TIME) // Time of one additional wait slot #define PRIO_DATA_MIN_WINDOW_SIZE (4) // Minimum window size of backoff algorithm #define PRIO_DATA_MAX_WINDOW_SIZE (32) // Maximum window size of backoff algorithm #endif /*CC1100_CSMACA_MAC_*/