91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.1MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-15
  • 語言: 其他
  • 標簽: zigbee??

資源簡介

適用于cc2530模塊,實現點對點無線通訊

資源截圖

代碼片段和文件信息

//?專業尚陽
/*?包含頭文件?*/
/********************************************************************/
#include?“hal_lcd.h“
#include?“hal_led.h“
#include?“hal_int.h“
#include?“hal_timer_32k.h“
#include?“hal_joystick.h“
#include?“hal_button.h“
#include?“hal_board.h“
#include?“hal_rf.h“
#include?“hal_assert.h“
#include?“util_lcd.h“
#include?“basic_rf.h“
#include?“per_test.h“
/********************************************************************/
/*******************************************************************/

#define?MODE_SEND???????????????//?屏蔽時:接收器
??????????????????????????????????//?不屏蔽時:發送器

/*?應用狀態?*/
/********************************************************************/
#define?IDLE??????????????????????0
#define?TRANSMIT_PACKET???????????1
/********************************************************************/

/*?本地變量?*/
/********************************************************************/
static?basicRfCfg_t?basicRfConfig;
static?perTestPacket_t?txPacket;
static?perTestPacket_t?rxPacket;
static?volatile?uint8?appState;
static?volatile?uint8?appStarted;

/********************************************************************/

/*?本地函數?*/
/********************************************************************/
static?void?appTimerISR(void);
static?void?appStartStop(void);
static?void?appTransmitter();
static?void?appReceiver();
void?UartTX_Send_String();
void?initUART();
/********************************************************************/



/*********************************************************************
?*?函數名稱:appTimerISR
?*?功????能:32KHz定時器中斷服務程序。更新應用狀態為發送。
?*?入口參數:無
?*?出口參數:無
?*?返?回?值:無
?********************************************************************/
static?void?appTimerISR(void)
{
??appState?=?TRANSMIT_PACKET;
}


/*********************************************************************
?*?函數名稱:appStartStop
?*?功????能:啟動或停止32KHz定時器以便啟動或停止數據包的傳輸。
?*?入口參數:無
?*?出口參數:無
?*?返?回?值:無
?********************************************************************/
static?void?appStartStop(void)
{
??appStarted?^=?1;

??if(appStarted)?
??{
????halTimer32kIntEnable();
??}
??else
??{
????halTimer32kIntDisable();
??}
}


/*********************************************************************
?*?函數名稱:appConfigTimer
?*?功????能:配置本應用的中斷。使用32KHz定時器。
?*?入口參數:rate??定時器中斷的頻率。該值必須在1到32768HZ之間。
?*?出口參數:無
?*?返?回?值:無
?********************************************************************/
static?void?appConfigTimer(uint16?rate)
{
??halTimer32kInit(TIMER_32K_CLK_FREQ/rate);
??halTimer32kIntConnect(&appTimerISR);
}


/*********************************************************************
?*?函數名稱:appReceiver
?*?功????能:接收器的應用代碼??刂破鬟M入無限循環。
?*?入口參數:basicRfConfig??Basic?RF?配置數據
?*???????????rxPacket???????perTestPacket_t類型變量
?*?出口參數:無
?*?返?回?值:無
?********************************************************************/
static?void?appReceiver()
{
??uint32?segNumber=0;????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-03-13?21:30??點對點無線通信\
?????目錄???????????0??2013-03-13?21:29??點對點無線通信\docs\
?????文件??????727796??2009-04-17?13:28??點對點無線通信\docs\CC2530_Software_Examples.pdf
?????目錄???????????0??2013-03-13?21:29??點對點無線通信\ide\
?????文件?????????697??2009-04-17?13:36??點對點無線通信\ide\cc2530_sw_examples.eww
?????目錄???????????0??2013-03-13?21:29??點對點無線通信\ide\settings\
?????文件????????4396??2013-03-26?19:49??點對點無線通信\ide\settings\cc2530_sw_examples.wsdt
?????目錄???????????0??2013-03-13?21:29??點對點無線通信\ide\srf05_cc2530\
?????目錄???????????0??2013-03-13?21:30??點對點無線通信\ide\srf05_cc2530\iar\
?????文件??????177872??2011-12-01?08:55??點對點無線通信\ide\srf05_cc2530\iar\light_switch.d51
?????文件???????16410??2013-03-26?19:49??點對點無線通信\ide\srf05_cc2530\iar\light_switch.dep
?????文件???????13331??2009-04-17?13:28??點對點無線通信\ide\srf05_cc2530\iar\light_switch.ewd
?????文件???????32333??2009-04-17?13:28??點對點無線通信\ide\srf05_cc2530\iar\light_switch.ewp
?????文件?????????166??2009-04-17?13:28??點對點無線通信\ide\srf05_cc2530\iar\light_switch.eww
?????文件???????12488??2011-12-01?08:55??點對點無線通信\ide\srf05_cc2530\iar\light_switch.hex
?????文件???????10932??2011-11-30?16:40??點對點無線通信\ide\srf05_cc2530\iar\per_test.c
?????文件??????136546??2011-12-28?09:17??點對點無線通信\ide\srf05_cc2530\iar\per_test.d51
?????文件???????17904??2013-03-26?19:49??點對點無線通信\ide\srf05_cc2530\iar\per_test.dep
?????文件???????13331??2009-04-17?13:28??點對點無線通信\ide\srf05_cc2530\iar\per_test.ewd
?????文件???????32774??2011-12-21?09:29??點對點無線通信\ide\srf05_cc2530\iar\per_test.ewp
?????文件?????????162??2009-04-17?13:28??點對點無線通信\ide\srf05_cc2530\iar\per_test.eww
?????文件????????7156??2011-12-28?09:17??點對點無線通信\ide\srf05_cc2530\iar\per_test.hex
?????目錄???????????0??2013-03-13?21:30??點對點無線通信\ide\srf05_cc2530\iar\settings\
?????文件????????2667??2011-12-20?17:29??點對點無線通信\ide\srf05_cc2530\iar\settings\light_switch.cspy.bat
?????文件????????3817??2011-12-20?17:29??點對點無線通信\ide\srf05_cc2530\iar\settings\light_switch.dbgdt
?????文件?????????459??2011-12-20?17:29??點對點無線通信\ide\srf05_cc2530\iar\settings\light_switch.dni
?????文件????????2721??2013-03-26?16:37??點對點無線通信\ide\srf05_cc2530\iar\settings\per_test.cspy.bat
?????文件????????4822??2013-03-26?19:49??點對點無線通信\ide\srf05_cc2530\iar\settings\per_test.dbgdt
?????文件?????????459??2013-03-26?19:49??點對點無線通信\ide\srf05_cc2530\iar\settings\per_test.dni
?????文件????????4442??2011-12-28?09:35??點對點無線通信\ide\srf05_cc2530\iar\settings\per_test.wsdt
?????文件?????????337??2013-03-26?19:49??點對點無線通信\ide\srf05_cc2530\iar\spectrum_analyzer.dep
............此處省略125個文件信息

評論

共有 條評論