app_param.h

来自「这是nrf24lu1的无线鼠标源代码,应用平台是keil c」· C头文件 代码 · 共 35 行

H
35
字号
/* Copyright (c) 2007 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.
 */

/** @file
 * Setup header file for the Wireless Desktop reference application
 *
 * @author Lasse Olsen 
 *
 * @defgroup nordic_app_protocol_fap_setup Frequency Agility Protocol application setup parameters
 * @{
 * @ingroup nordic_protocol_wdp
 */

#ifndef _APP_PARAM_H
#define _APP_PARAM_H

#define APP_MOUSE_POLL_PERIOD (8000/FAP_RX_PERIOD)      // Poll mouse every 8 ms

#define APP_PAIRING_COMMITED 0xAA                       // Signature byte for indicating pairing comitted

#define PARAM_PAGE_N0    31                             // Use flash page 31 for parameter storage
#define LU1_PAGESIZE 512                                // Pagesize for nRF24LU1

// Flash parameter addresses
#define PARAM_PREV_PAIRED (LU1_PAGESIZE*PARAM_PAGE_N0)    
#define PARAM_MASTER_ADR0 (PARAM_PREV_PAIRED + 1)

#define PARAM_DEV_TYPE (LU1_PAGESIZE*PARAM_PAGE_N0)
#define PARAM_DEV_ADR0 (PARAM_DEV_TYPE + 1)

#endif

⌨️ 快捷键说明

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