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

  • 大小: 1.49MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-30
  • 語言: 其他
  • 標簽: 串口顯示??

資源簡介

基于無線傳感器網絡,采用煙霧傳感器,在串口顯示采集數據

資源截圖

代碼片段和文件信息

/***********************************************************************************
??Filename:? per_test.c

??Description:??This?application?functions?as?a?packet?error?rate?(PER)?tester.
??One?node?is?set?up?as?transmitter?and?the?other?as?receiver.?The?role?and
??configuration?parameters?for?the?PER?test?of?the?node?is?chosen?on?initalisation
??by?navigating?the?joystick?and?confirm?the?choices?with?S1.

??The?configuration?parameters?are?channel?burst?size?and?tx?power.?Push?S1?to
??enter?the?menu.?Then?the?configuration?parameters?are?set?by?pressing
??joystick?to?right?or?left?(increase/decrease?value)?and?confirm?with?S1.

??After?configuration?of?both?the?receiver?and?transmitter?the?PER?test?is
??started?by?pressing?joystick?up?on?the?transmitter.?By?pressing?joystick?up
??again?the?test?is?stopped.

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

/***********************************************************************************
*?INCLUDES
*/
#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“

/***********************************************************************************
*?CONSTANTS
*/
//?Application?states
#define?IDLE??????????????????????0
#define?TRANSMIT_PACKET???????????1

/***********************************************************************************
*?LOCAL?VARIABLES
*/
static?basicRfCfg_t?basicRfConfig;
static?perTestPacket_t?txPacket;
static?perTestPacket_t?rxPacket;
static?volatile?uint8?appState;
static?volatile?uint8?appStarted;

/***********************************************************************************
*?LOCAL?FUNCTIONS
*/
static?void?appTimerISR(void);
static?void?appStartStop(void);
static?void?appTransmitter();
static?void?appReceiver();

/***********************************************************************************
*?@fn??????????appTimerISR
*
*?@brief???????32KHz?timer?interrupt?service?routine.?Signals?PER?test?transmitter
*??????????????application?to?transmit?a?packet?by?setting?application?state.
*
*?@param???????none
*
*?@return??????none
*/
static?void?appTimerISR(void)
{
????appState?=?TRANSMIT_PACKET;
}


/***********************************************************************************
*?@fn??????????appStartStop
*
*?@brief???????Joystick?up?interrupt?service?routine.?Start?or?stop?32KHz?timer
*??????????????and?thereby?start?or?stop?PER?test?packet?transmission.
*
*?@param???????none
*
*?@return??????none
*/
static?void?appStartStop(void)
{
????//?toggle?value
????appStarted?^=?1;

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


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

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-26?01:14??煙霧模塊\
?????目錄???????????0??2017-12-26?00:46??煙霧模塊\數據發送模塊\
?????目錄???????????0??2017-12-26?00:46??煙霧模塊\數據發送模塊\ide\
?????文件????????1263??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\cc2530_sw_examples.eww
?????目錄???????????0??2017-12-26?00:46??煙霧模塊\數據發送模塊\ide\settings\
?????文件????????4674??2017-12-26?02:26??煙霧模塊\數據發送模塊\ide\settings\cc2530_sw_examples.wsdt
?????目錄???????????0??2017-12-26?00:46??煙霧模塊\數據發送模塊\ide\srf05_cc2530\
?????目錄???????????0??2017-12-26?02:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\
?????文件???????17219??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?(2)?of?light_switch.ewd
?????文件???????32704??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?(2)?of?light_switch.ewp
?????文件???????17204??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?(2)?of?per_test.ewd
?????文件???????33888??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?(2)?of?per_test.ewp
?????文件???????17204??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?(2)?of?spectrum_analyzer.ewd
?????文件???????33036??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?(2)?of?spectrum_analyzer.ewp
?????文件???????13542??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?of?light_switch.ewd
?????文件???????32542??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?of?light_switch.ewp
?????文件???????13542??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?of?per_test.ewd
?????文件???????32675??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?of?per_test.ewp
?????文件???????13331??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?of?spectrum_analyzer.ewd
?????文件???????31691??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\Backup?of?spectrum_analyzer.ewp
?????文件???????90801??2017-12-26?02:22??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\light_switch.d51
?????文件???????16457??2017-12-26?02:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\light_switch.dep
?????文件???????17220??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\light_switch.ewd
?????文件???????33065??2017-11-16?01:12??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\light_switch.ewp
?????文件?????????166??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\light_switch.eww
?????文件???????10091??2017-12-26?02:22??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\light_switch.hex
?????文件??????226588??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\per_test.d51
?????文件???????16420??2017-12-26?02:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\per_test.dep
?????文件???????17205??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\per_test.ewd
?????文件???????34212??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\per_test.ewp
?????文件?????????162??2014-01-12?16:26??煙霧模塊\數據發送模塊\ide\srf05_cc2530\iar\per_test.eww
............此處省略342個文件信息

評論

共有 條評論