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

📄 application.h

📁 非常全的nrf2401设计资料
💻 H
字号:
/* Copyright (c) 2008 Nordic Semiconductor. All Rights Reserved.
 *
 * The information contained herein is confidential property of Nordic 
 * Semiconductor. The use, copying, transfer or disclosure of such information 
 * is prohibited except by express written agreement with Nordic Semiconductor.
 *
 * $LastChangedRevision:$
 */
 
/** @file
 * The nRF24LE1 example application.
 *
 * @author Rune Brandsegg
 */

#define CMD_SEND_DATA 0			// Send a new command
#define CMD1 1							// Command-type 1 (dummy message)
#define CMD2 2							// Command-type 2	(boot message)

#define RF_READY_INT_VECT 9 // Radio interrupt vector

#define DATA_POS 7          // Defines the start-postion of the data in packet. 
#define RADIO_MAX_PL 32     // Defines MAX pck length for radio

/** This function is called if the application is entering the 
 *  primary transmitter mode. This is an endless loop, TX mode (PTX) function.
 */
void transmitter_mode(void);

/** This function is called if the application is entering the
 *  primary receiver mode. This is an endless loop, RX mode (PRX) function.
 */
void receiver_mode(void);

/** This function creates a data_packet from the incoming command and transfers
 *  it to the radio and which transmits it. It waits until the packet are sent,
 *  or MAX_RT, i.e. all tries done, then crates a led blink based on if the 
 *  packet was sent or not. Finally LED0 is switched off.
 */
void send_packet(uint8_t command);

/** This function gets the incoming data from the radio and returns the command 
 */
uint8_t read_packet(void);

⌨️ 快捷键说明

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