📄 cc2511_app_ex_lib_config.h
字号:
#ifndef CC2511_APP_EX_LIB_CONFIG_H
#define CC2511_APP_EX_LIB_CONFIG_H
/*
*
* Description:
* This file is used to configures the CC2511 App Ex library.
* The definitions not needed in a project can be commented out.
*
*
*
* ********** IMPORTANT! *************
*
* If any library functions are to be used, copy the cc2511_lib_config_template.h file
* into the project catalog.
* Rename it to cc2511_lib_config.h, and edit it to get the desired setup of the library.
*
* ***********************************
*
*/
//-------------------------------------------------------------------------------------------------------
// RF framework setup
// RSSI threshold given in dBm is used to decide if a bind request should be accepted or rejected by
//the CC2511 USB Dongle (range is -9 to -136 dBm)
// When using -55 the CC2511 USB Dongle will accept bind requests from CC2510 within approx 1 to 1.5 meter.
#define BIND_REQUEST_RSSI_THRESHOLD -55
// Number of bind retries the CC2510 remote device will perform before sending a
// RFRU_EVENT_BIND_REQUEST_TIMEOUT event to application.
#define RF_BIND_REQUEST_RETRIES 3
//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------
// FIFO BUFFER setup
// Set the number of individual FIFO buffers wanted
#define FIFO_SETUP_NUMBER_OF_FIFO_BUFFERS 2
// Set the number of slots within each of the individual FIFO buffers
#define FIFO_SETUP_SLOTS_PER_FIFO { 5, 5 }
// Set the size of each slot within each of the individual FIFO buffers
#define FIFO_SETUP_BYTES_PER_SLOT { 137, 137 }
// Set the total size of the FIFO buffer
// Must be equal to the sum of all FIFO_SETUP_SLOTS_PER_FIFO multiplied
// with the corresponding FIFO_SETUP_BYTES_PER_SLOT.
#define FIFO_SETUP_TOTAL_SIZE_OF_BUFFER 1370
//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------
// LIO BUFFER setup
// Set the number of individual LIO buffers wanted
#define LIO_SETUP_NUMBER_OF_LIO_BUFFERS 0
// Set the size of each slot within each of the individual LIO buffers
#define LIO_SETUP_BYTES_PER_SLOT { }
// Set the total size of the LIO buffer
// Must be equals the sum of all LIO_SETUP_BYTES_PER_SLOT multiplied by two.
#define LIO_SETUP_TOTAL_SIZE_OF_BUFFER 0
//-------------------------------------------------------------------------------------------------------
//-------------------------------------------------------------------------------------------------------
// Timer 4 manager setup
// Enter the number items in the callback table. Note that the time spent in the timer 4 interrupt
// increases with this number
#define T4MGR_SETUP_NUMBER_OF_CALLBACK_FUNCTIONS 4
//-------------------------------------------------------------------------------------------------------
#endif //CC2511_LIB_CONFIG_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -