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

📄 wor.h

📁 c51控制cc1100示范程序
💻 H
字号:
/*******************************************************************************************************
 *                                                                                                     *
 *        **********                                                                                   *
 *       ************                                                                                  *
 *      ***        ***                                                                                 *
 *      ***   +++   ***                                                                                *
 *      ***   + +   ***     This file contains all defines and function prototypes necessary to        *
 *      ***   +             run the SerialLink example.                                                *
 *      ***   + +   ***                                                                                *
 *      ***   +++   ***     Wor.h                                                                      *
 *      ***        ***                                                                                 *
 *       ************                                                                                  *
 *        **********                                                                                   *
 *                                                                                                     *
 *******************************************************************************************************
 * Compiler:                Keil C51 V7.50                                                             *
 * Target platform:         Chipcon CCxxx0 (Silabs F320)                                               *
 * Author:                  SNA                                                                        *
 *******************************************************************************************************
 * Revision history:     See end of file                                                               *
 *******************************************************************************************************/
#include <Chipcon\srf04\regssrf04.h>
#include <Chipcon\srf04\halsrf04.h>
#include <Chipcon\srf04\ebsrf04.h>




//-------------------------------------------------------------------------------------------------------
// Defines

// Defines used as mode values for the setup menu in main loop
#define MODE_NOT_SET    0
#define TX              1
#define RX              2

#define BURST_LENGTH    305     // Number of packets to send per packet burst (some margin added 
                                // because of possible oscillator variations)
                                // 305 packets * 1.0 ms interval = 305 ms burst length 
                                // (> 300 ms RX polling interval (WOR))
#define RX_BYTES        0x7F
//-------------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------------
//  Global Variables

extern RF_SETTINGS code rfSettings;

extern BYTE code paTable;
//-------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------
// Function declarations

void initTransmitter(void);
void runTransmitter(void);

void initReceiver(void);
void runReceiver(void);

void intToAscii(UINT32 value);
void showMenu(void);                    // Show the initial setup menu
void parseMenu(UINT8 joystickPosition); // Parses the input for menu navigation
//-------------------------------------------------------------------------------------------------------




/******************************************************************************************************
 * Revision history:                                                                                  *
 *
 * $Log: Wor.h $
 * 
 ******************************************************************************************************/

⌨️ 快捷键说明

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