per_test.h
来自「cc2x30_sw_examples: 适用于SmartRF05EB 支持CC」· C头文件 代码 · 共 57 行
H
57 行
/*******************************************************************************
Filename: per_test.h
Description: PER test header file
*******************************************************************************/
#ifndef PER_TEST_H
#define PER_TEST_H
/*******************************************************************************
* INCLUDES
*/
#include "hal_types.h"
#include "per_test_menu.h"
/*******************************************************************************
* TYPEDEFS
*/
// PER test packet format
typedef struct {
uint32 seqNumber;
uint8 padding[6];
} perTestPacket_t;
// PER test receiver statistics
typedef struct {
uint32 expectedSeqNum;
uint32 rcvdPkts;
uint32 lostPkts;
int16 rssiSum;
} perRxStats_t;
/*******************************************************************************
* CONSTANTS AND DEFINES
*/
// BasicRF definitions
#define PAN_ID 0x2007
#define TX_ADDR 0x2520
#define RX_ADDR 0xBEEF
#define MAX_PAYLOAD_LENGTH 103
#define PACKET_SIZE sizeof(perTestPacket_t)
#define RSSI_AVG_WINDOW_SIZE 32 // Window size for RSSI moving average
#endif
/*------------------------------------------------------------------------------
0ooo
ooo0 ( )
( ) ) /
\ ( (_/
\_) Modify By:cuiqingwei [gary]
------------------------------------------------------------------------------*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?