⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sppsetuprf.lst

📁 无线龙ZigBee模块CC1010的接收-发送程序。
💻 LST
字号:
C51 COMPILER V7.06   SPPSETUPRF                                                            04/13/2005 12:55:52 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE SPPSETUPRF
OBJECT MODULE PLACED IN sppSetupRF.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE sppSetupRF.c OMF2 BROWSE INCDIR(..\..\..\..\Include;..\..\..\..\lib) DEFINE
                    -(FREQ433) DEBUG

stmt level    source

   1          /*****************************************************************************
   2           *                                                                           *
   3           *        **********                                                         *
   4           *       ************                                                        *
   5           *      ***        ***                                                       *
   6           *      ***   +++   ***                                                      *
   7           *      ***   + +   ***                                                      *
   8           *      ***   +                            CHIPCON CC1010                    *
   9           *      ***   + +   ***                      CUL - spp                       *
  10           *      ***   +++   ***                                                      *
  11           *      ***       ***                                                        *
  12           *       ***********                                                         *
  13           *        *********                                                          *
  14           *                                                                           *
  15           *****************************************************************************
  16           *                                                                           *
  17           *****************************************************************************
  18           * Author:              JOL                                                  *
  19           *****************************************************************************
  20           * Revision history:                                                         *
  21           *                                                                           *
  22           * $Log: sppSetupRF.c,v $
  23           * Revision 1.3  2002/11/20 14:05:55  kht
  24           * Added comment to inform user that calling sppSetupRF clears the callback settings
  25           *
  26           * Revision 1.2  2002/11/18 13:39:10  tos
  27           * Initialisation of pointers to timer callback functions before timer
  28           * interrupt is started/enabled.
  29           *
  30           * Revision 1.1  2002/10/14 12:27:34  tos
  31           * Initial version in CVS.
  32           *
  33           *                                                                           *
  34           ****************************************************************************/
  35          
  36          #include <chipcon/sppInternal.h>
  37          
  38          //----------------------------------------------------------------------------
  39          //  void sppSetupRF (...)
  40          //
  41          //  Description:
  42          //      Set up SPP for transmission or reception.
  43          //              Call this function to (re)calibrate the radio, or to switch between
  44          //              different RF settings.
  45          //      Please note that this function calls sppStartTimer, which clears
  46          //      all callback settings
  47          //
  48          //  Arguments:
  49          //      RF_RXTXPAIR_SETTINGS code* pRF_SETTINGS
  50          //                      RF settings (frequencies, modem settings, etc.)
  51          //
  52          //      RF_RXTXPAIR_CALDATA xdata* pRF_CALDATA
  53          //                      Calibration results
  54          //
C51 COMPILER V7.06   SPPSETUPRF                                                            04/13/2005 12:55:52 PAGE 2   

  55          //              word clkFreq
  56          //                      The XOSC clock frequency in kHz.
  57          //
  58          //              bool calibrate
  59          //                      Calibrate now. *pRF_CALDATA is written to when calibrate = TRUE,
  60          //                      and read from otherwise. Use FALSE if *pRF_CALDATA is valid.
  61          //
  62          //      Note: This function also enables timeouts, using timer 3.
  63          //----------------------------------------------------------------------------
  64          void sppSetupRF (RF_RXTXPAIR_SETTINGS code *pRF_SETTINGS, RF_RXTXPAIR_CALDATA xdata *pRF_CALDATA, word clk
             -Freq, bool calibrate) {
  65   1      
  66   1              // Default synchronization settings
  67   1          RF_SET_PREAMBLE_COUNT(SPP_PREAMBLE_SENSE_BITS);
  68   1          RF_SET_SYNC_BYTE(RF_SUITABLE_SYNC_BYTE);
  69   1      
  70   1              // Update the internal pointers
  71   1              sppIntData.pRF_SETTINGS = pRF_SETTINGS;
  72   1              sppIntData.pRF_CALDATA = pRF_CALDATA;
  73   1      
  74   1              // Calibrate with the new/current settings
  75   1              if (calibrate) {
  76   2                      halRFCalib (sppIntData.pRF_SETTINGS, sppIntData.pRF_CALDATA);
  77   2              }
  78   1      
  79   1              // Make sure that we're in IDLE mode
  80   1              sppIntData.mode = SPP_IDLE_MODE;
  81   1      
  82   1              // Enable the timeouts
  83   1      
  84   1              sppStartTimer(clkFreq);
  85   1          SPP_INIT_TIMEOUTS();
  86   1      
  87   1      
  88   1      } // sppSetupRF


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     77    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----       7
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
   EDATA SIZE       =   ----    ----
   HDATA SIZE       =   ----    ----
   XDATA CONST SIZE =   ----    ----
   FAR CONST SIZE   =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -