The Freescale MCR20A Simple Media Access Controller (MCR20A SMAC) is a simple ANSI C based codebase available as sample source code. The MCR20A SMAC is used for developing proprietary RF transceiver applications using Freescale’s MCR20A 2.4 GHz transceiver 

Fork of fsl_smac by Freescale

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SMAC_Config.h Source File

SMAC_Config.h

00001 /**************************************************************************************************
00002 * This header contains SMAC basic configuration.
00003 * 
00004 * Freescale Semiconductor Inc.
00005 * (c) Copyright 2004-2010 Freescale Semiconductor, Inc.
00006 * ALL RIGHTS RESERVED.
00007 *
00008 ***************************************************************************************************
00009 *
00010 * THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR 
00011 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 
00012 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  
00013 * IN NO EVENT SHALL FREESCALE OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
00014 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 
00015 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
00016 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
00017 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
00018 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 
00019 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
00020 * THE POSSIBILITY OF SUCH DAMAGE.
00021 *
00022 ***********************************************************************************************//*!
00023 **************************************************************************************************/
00024 
00025 #ifndef SMAC_CONFIG_H_
00026 #define SMAC_CONFIG_H_
00027 
00028 /* BEGIN SMAC Config Options Definition */
00029 
00030 #define gNodeAddress_c             (0xBEAD)
00031 #define gDefaultPanID_c            (0xFACE)
00032 #define CCA_BEFORE_TX              (FALSE)
00033 #define gMaxRetriesAllowed_c       ( 0x05 )
00034 //Make sure gMaxBackoffTime_c is of value (1<<n)-1. Ex: (1<<3)-1 = 7, (1<<4)-1 = 15;
00035 #define gMaxBackoffTime_c          ( 0x1F )
00036 #define gMinBackoffTime_c          ( 0x00 )
00037 /* END SMAC Config Options Definition */
00038 
00039 /* BEGIN Configuration Parameters Definition */ 
00040 #define gMaxOutputPower_c          ( 0x1F ) 
00041 #define gMinOutputPower_c              ( 0x03 )
00042 #define gDefaultOutputPower_c          ( 0x0F )               
00043 #define gDefaultChannelNumber_c         gChannel11_c   
00044 #define gDefaultAddress_c              (gBroadcastAddress_c)
00045 /* END Configuration Parameters Definition */
00046 
00047 #endif /* SMAC_CONFIG_H_ */