Added BLE settings
This commit is contained in:
parent
924e4f5ea5
commit
326974031e
220
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x0/ble-settings.c
Normal file
220
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x0/ble-settings.c
Normal file
@ -0,0 +1,220 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Texas Instruments Incorporated - http://www.ti.com/
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the copyright holder nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// Parameter summary
|
||||
// Adv. Address: 010203040506
|
||||
// Adv. Data: 255
|
||||
// BLE Channel: 17
|
||||
// Frequency: 2440 MHz
|
||||
// PDU Payload length: 30
|
||||
// TX Power: 9 dBm (requires define CCFG_FORCE_VDDR_HH = 1 in ccfg.c, see CC13xx/CC26xx Technical Reference Manual)
|
||||
// Whitening: true
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include "sys/cc.h"
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_cpe_ble.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_rfe_ble.h)
|
||||
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include "ble-settings.h"
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// TI-RTOS RF Mode Object
|
||||
RF_Mode RF_ble =
|
||||
{
|
||||
.rfMode = RF_MODE_BLE,
|
||||
.cpePatchFxn = &rf_patch_cpe_ble,
|
||||
.mcePatchFxn = 0,
|
||||
.rfePatchFxn = &rf_patch_rfe_ble,
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// TX Power table
|
||||
// The RF_TxPowerTable_DEFAULT_PA_ENTRY macro is defined in RF.h and requires the following arguments:
|
||||
// RF_TxPowerTable_DEFAULT_PA_ENTRY(bias, gain, boost coefficient)
|
||||
// See the Technical Reference Manual for further details about the "txPower" Command field.
|
||||
// The PA settings require the CCFG_FORCE_VDDR_HH = 0 unless stated otherwise.
|
||||
RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE] =
|
||||
{
|
||||
{ -21, RF_TxPowerTable_DEFAULT_PA_ENTRY( 8, 3, 1, 6) },
|
||||
{ -18, RF_TxPowerTable_DEFAULT_PA_ENTRY(11, 3, 1, 6) },
|
||||
{ -15, RF_TxPowerTable_DEFAULT_PA_ENTRY(14, 3, 1, 10) },
|
||||
{ -12, RF_TxPowerTable_DEFAULT_PA_ENTRY(20, 3, 1, 12) },
|
||||
{ -9, RF_TxPowerTable_DEFAULT_PA_ENTRY(26, 3, 1, 14) },
|
||||
{ -6, RF_TxPowerTable_DEFAULT_PA_ENTRY(35, 3, 1, 18) },
|
||||
{ -3, RF_TxPowerTable_DEFAULT_PA_ENTRY(47, 3, 1, 22) },
|
||||
{ 0, RF_TxPowerTable_DEFAULT_PA_ENTRY(29, 0, 1, 45) },
|
||||
{ 1, RF_TxPowerTable_DEFAULT_PA_ENTRY(33, 0, 1, 49) },
|
||||
{ 2, RF_TxPowerTable_DEFAULT_PA_ENTRY(38, 0, 1, 55) },
|
||||
{ 3, RF_TxPowerTable_DEFAULT_PA_ENTRY(44, 0, 1, 63) },
|
||||
{ 4, RF_TxPowerTable_DEFAULT_PA_ENTRY(52, 0, 1, 59) },
|
||||
{ 5, RF_TxPowerTable_DEFAULT_PA_ENTRY(60, 0, 1, 47) },
|
||||
{ 6, RF_TxPowerTable_DEFAULT_PA_ENTRY(38, 0, 1, 49) }, // This setting requires CCFG_FORCE_VDDR_HH = 1.
|
||||
{ 7, RF_TxPowerTable_DEFAULT_PA_ENTRY(46, 0, 1, 59) }, // This setting requires CCFG_FORCE_VDDR_HH = 1.
|
||||
{ 8, RF_TxPowerTable_DEFAULT_PA_ENTRY(55, 0, 1, 51) }, // This setting requires CCFG_FORCE_VDDR_HH = 1.
|
||||
{ 9, RF_TxPowerTable_DEFAULT_PA_ENTRY(63, 0, 1, 30) }, // This setting requires CCFG_FORCE_VDDR_HH = 1.
|
||||
RF_TxPowerTable_TERMINATION_ENTRY
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// Overrides for CMD_RADIO_SETUP
|
||||
uint32_t rf_ble_overrides[] CC_ALIGN(4) =
|
||||
{
|
||||
// override_use_patch_ble_1mbps.xml
|
||||
MCE_RFE_OVERRIDE(0,0,0,1,0,0), // PHY: Use MCE ROM, RFE RAM patch
|
||||
// override_synth_ble_1mbps.xml
|
||||
HW_REG_OVERRIDE(0x4038,0x0034), // Synth: Set recommended RTRIM to 4
|
||||
(uint32_t)0x000784A3, // Synth: Set Fref to 3.43 MHz
|
||||
HW_REG_OVERRIDE(0x4020,0x7F00), // Synth: Configure fine calibration setting
|
||||
HW_REG_OVERRIDE(0x4064,0x0040), // Synth: Configure fine calibration setting
|
||||
(uint32_t)0xB1070503, // Synth: Configure fine calibration setting
|
||||
(uint32_t)0x05330523, // Synth: Configure fine calibration setting
|
||||
(uint32_t)0xA47E0583, // Synth: Set loop bandwidth after lock to 80 kHz
|
||||
(uint32_t)0xEAE00603, // Synth: Set loop bandwidth after lock to 80 kHz
|
||||
(uint32_t)0x00010623, // Synth: Set loop bandwidth after lock to 80 kHz
|
||||
HW32_ARRAY_OVERRIDE(0x405C,1), // Synth: Configure PLL bias
|
||||
(uint32_t)0x18000000, // Synth: Configure PLL bias
|
||||
ADI_REG_OVERRIDE(1,4,0x9F), // Synth: Configure VCO LDO (in ADI1, set VCOLDOCFG=0x9F to use voltage input reference)
|
||||
ADI_HALFREG_OVERRIDE(1,7,0x4,0x4), // Synth: Configure synth LDO (in ADI1, set SLDOCTL0.COMP_CAP=1)
|
||||
// override_phy_ble_1mbps.xml
|
||||
(uint32_t)0x013800C3, // Tx: Configure symbol shape for BLE frequency deviation requirements
|
||||
HW_REG_OVERRIDE(0x6088, 0x0045), // Rx: Configure AGC reference level
|
||||
HW_REG_OVERRIDE(0x6084, 0x05FD), // Rx: Configure AGC gain level
|
||||
(uint32_t)0x00038883, // Rx: Configure LNA bias current trim offset
|
||||
// override_frontend_xd.xml
|
||||
(uint32_t)0x00F388A3, // Rx: Set RSSI offset to adjust reported RSSI by +13 dB
|
||||
// TX power override
|
||||
ADI_REG_OVERRIDE(0,12,0xF8), // Tx: Set PA trim to max (in ADI0, set PACTL0=0xF8)
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// CMD_RADIO_SETUP
|
||||
// Radio Setup Command for Pre-Defined Schemes
|
||||
rfc_CMD_RADIO_SETUP_t rf_ble_cmd_radiosetup =
|
||||
{
|
||||
.commandNo = 0x0802,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.mode = 0x00,
|
||||
.loDivider = 0x00,
|
||||
.config.frontEndMode = 0x0,
|
||||
.config.biasMode = 0x1,
|
||||
.config.analogCfgMode = 0x0,
|
||||
.config.bNoFsPowerUp = 0x0,
|
||||
.txPower = 0x3D3F,
|
||||
.pRegOverride = rf_ble_overrides,
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// CMD_FS
|
||||
// Frequency Synthesizer Programming Command
|
||||
rfc_CMD_FS_t rf_ble_cmd_fs =
|
||||
{
|
||||
.commandNo = 0x0803,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.frequency = 0x0988,
|
||||
.fractFreq = 0x0000,
|
||||
.synthConf.bTxMode = 0x0,
|
||||
.synthConf.refFreq = 0x0,
|
||||
.__dummy0 = 0x00,
|
||||
.__dummy1 = 0x00,
|
||||
.__dummy2 = 0x00,
|
||||
.__dummy3 = 0x0000,
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// Structure for CMD_BLE_ADV_NC.pParams
|
||||
rfc_bleAdvPar_t rf_ble_adv_par =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x0,
|
||||
.rxConfig.bIncludeCrc = 0x0,
|
||||
.rxConfig.bAppendRssi = 0x0,
|
||||
.rxConfig.bAppendStatus = 0x0,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.advConfig.advFilterPolicy = 0x0,
|
||||
.advConfig.deviceAddrType = 0x0,
|
||||
.advConfig.peerAddrType = 0x0,
|
||||
.advConfig.bStrictLenFilter = 0x0,
|
||||
.advConfig.rpaMode = 0x0,
|
||||
.advLen = 0x18,
|
||||
.scanRspLen = 0x00,
|
||||
.pAdvData = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pScanRspData = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pDeviceAddress = 0, // INSERT APPLICABLE POINTER: (uint16_t*)&xxx
|
||||
.pWhiteList = 0, // INSERT APPLICABLE POINTER: (uint32_t*)&xxx
|
||||
.__dummy0 = 0x0000,
|
||||
.__dummy1 = 0x00,
|
||||
.endTrigger.triggerType = 0x1,
|
||||
.endTrigger.bEnaCmd = 0x0,
|
||||
.endTrigger.triggerNo = 0x0,
|
||||
.endTrigger.pastTrig = 0x0,
|
||||
.endTime = 0x00000000,
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// CMD_BLE_ADV_NC
|
||||
// BLE Non-Connectable Advertiser Command
|
||||
rfc_CMD_BLE_ADV_NC_t rf_ble_cmd_ble_adv_nc =
|
||||
{
|
||||
.commandNo = 0x1805,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.pParams = &rf_ble_adv_par,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
};
|
||||
/*---------------------------------------------------------------------------*/
|
59
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x0/ble-settings.h
Normal file
59
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x0/ble-settings.h
Normal file
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (c) 2018, Texas Instruments Incorporated - http://www.ti.com/
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of the copyright holder nor the names of its
|
||||
* contributors may be used to endorse or promote products derived
|
||||
* from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#ifndef BLE_SETTINGS_H_
|
||||
#define BLE_SETTINGS_H_
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// TX Power table size definition
|
||||
#define RF_BLE_TX_POWER_TABLE_SIZE 17
|
||||
|
||||
// TX Power Table Object
|
||||
extern RF_TxPowerTable_Entry rf_ble_tx_power_table[RF_BLE_TX_POWER_TABLE_SIZE+1];
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// TI-RTOS RF Mode Object
|
||||
extern RF_Mode rf_ble_mode;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// RF Core API commands
|
||||
extern rfc_CMD_RADIO_SETUP_t rf_ble_cmd_radiosetup;
|
||||
extern rfc_CMD_FS_t rf_ble_cmd_fs;
|
||||
extern rfc_CMD_BLE_ADV_NC_t rf_ble_cmd_ble_adv_nc;
|
||||
/*---------------------------------------------------------------------------*/
|
||||
// RF Core API Overrides
|
||||
extern uint32_t rf_ble_overrides[];
|
||||
/*---------------------------------------------------------------------------*/
|
||||
#endif /* BLE_SETTINGS_H_ */
|
||||
/*---------------------------------------------------------------------------*/
|
308
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x2/ble-settings.c
Normal file
308
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x2/ble-settings.c
Normal file
@ -0,0 +1,308 @@
|
||||
//*********************************************************************************
|
||||
// Generated by SmartRF Studio version 2.10.0 (build#106)
|
||||
// Compatible with SimpleLink SDK version: CC13x2 SDK 2.20.xx.xx
|
||||
// Device: CC1352R Rev. 1.1
|
||||
//
|
||||
//*********************************************************************************
|
||||
|
||||
|
||||
//*********************************************************************************
|
||||
// Parameter summary
|
||||
// Adv. Address: 010203040506
|
||||
// Adv. Data: dummy
|
||||
// BLE Channel: 17
|
||||
// Extended Header: 09 09 010203040506 babe
|
||||
// Frequency: 2440 MHz
|
||||
// PDU Payload length:: 30
|
||||
// TX Power: 5 dBm (requires define CCFG_FORCE_VDDR_HH = 0 in ccfg.c, see CC13xx/CC26xx Technical Reference Manual)
|
||||
// Whitening: true
|
||||
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_cpe_bt5.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_rfe_bt5.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_mce_bt5.h)
|
||||
#include "ble-settings.h"
|
||||
|
||||
|
||||
// TI-RTOS RF Mode Object
|
||||
RF_Mode RF_prop =
|
||||
{
|
||||
.rfMode = RF_MODE_AUTO,
|
||||
.cpePatchFxn = &rf_patch_cpe_bt5,
|
||||
.mcePatchFxn = &rf_patch_mce_bt5,
|
||||
.rfePatchFxn = &rf_patch_rfe_bt5,
|
||||
};
|
||||
|
||||
// TX Power table
|
||||
// The RF_TxPowerTable_DEFAULT_PA_ENTRY macro is defined in RF.h and requires the following arguments:
|
||||
// RF_TxPowerTable_DEFAULT_PA_ENTRY(bias, gain, boost coefficient)
|
||||
// See the Technical Reference Manual for further details about the "txPower" Command field.
|
||||
// The PA settings require the CCFG_FORCE_VDDR_HH = 0 unless stated otherwise.
|
||||
RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE] =
|
||||
{
|
||||
{-21, RF_TxPowerTable_DEFAULT_PA_ENTRY(7, 3, 0, 3) },
|
||||
{-18, RF_TxPowerTable_DEFAULT_PA_ENTRY(9, 3, 0, 3) },
|
||||
{-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(8, 2, 0, 6) },
|
||||
{-12, RF_TxPowerTable_DEFAULT_PA_ENTRY(10, 2, 0, 8) },
|
||||
{-10, RF_TxPowerTable_DEFAULT_PA_ENTRY(12, 2, 0, 11) },
|
||||
{-9, RF_TxPowerTable_DEFAULT_PA_ENTRY(13, 2, 0, 5) },
|
||||
{-6, RF_TxPowerTable_DEFAULT_PA_ENTRY(13, 1, 0, 16) },
|
||||
{-5, RF_TxPowerTable_DEFAULT_PA_ENTRY(14, 1, 0, 17) },
|
||||
{-3, RF_TxPowerTable_DEFAULT_PA_ENTRY(17, 1, 0, 20) },
|
||||
{0, RF_TxPowerTable_DEFAULT_PA_ENTRY(25, 1, 0, 26) },
|
||||
{1, RF_TxPowerTable_DEFAULT_PA_ENTRY(28, 1, 0, 28) },
|
||||
{2, RF_TxPowerTable_DEFAULT_PA_ENTRY(13, 0, 0, 34) },
|
||||
{3, RF_TxPowerTable_DEFAULT_PA_ENTRY(17, 0, 0, 42) },
|
||||
{4, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 0, 0, 54) },
|
||||
{5, RF_TxPowerTable_DEFAULT_PA_ENTRY(30, 0, 0, 74) },
|
||||
RF_TxPowerTable_TERMINATION_ENTRY
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverridesCommon[] =
|
||||
{
|
||||
// override_ble5_setup_override_common.xml
|
||||
// Synth: Use 48 MHz crystal, enable extra PLL filtering
|
||||
(uint32_t)0x02400403,
|
||||
// Synth: Configure extra PLL filtering
|
||||
(uint32_t)0x001C8473,
|
||||
// Synth: Configure synth hardware
|
||||
(uint32_t)0x00088433,
|
||||
// Synth: Set minimum RTRIM to 3
|
||||
(uint32_t)0x00038793,
|
||||
// Synth: Configure faster calibration
|
||||
HW32_ARRAY_OVERRIDE(0x4004,1),
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0x1C0C0618,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0xC00401A1,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0x00010101,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0xC0040141,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0x00214AD3,
|
||||
// Synth: Decrease synth programming time-out (0x0298 RAT ticks = 166 us)
|
||||
(uint32_t)0x02980243,
|
||||
// DC/DC regulator: In Tx, use DCDCCTL5[3:0]=0xC (DITHER_EN=1 and IPEAK=4). In Rx, use DCDCCTL5[3:0]=0xC (DITHER_EN=1 and IPEAK=4).
|
||||
(uint32_t)0xFCFC08C3,
|
||||
// Rx: Set LNA bias current offset to adjust +3 (default: 0)
|
||||
(uint32_t)0x00038883,
|
||||
// Rx: Set RSSI offset to adjust reported RSSI by -2 dB (default: 0)
|
||||
(uint32_t)0x000288A3,
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x01080263,
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x08E90AA3,
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x00068BA3,
|
||||
// Bluetooth 5: Set correct total clock accuracy for received AuxPtr assuming local sleep clock of 50 ppm
|
||||
(uint32_t)0x0E490C83,
|
||||
// override_frontend_id.xml
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverrides1Mbps[] =
|
||||
{
|
||||
// override_ble5_setup_override_1mbps.xml
|
||||
// PHY: Use MCE RAM patch (mode 0), RFE RAM patch (mode 0)
|
||||
MCE_RFE_OVERRIDE(1,0,0,1,0,0),
|
||||
// Bluetooth 5: Reduce pilot tone length
|
||||
HW_REG_OVERRIDE(0x5320,0x0240),
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x013302A3,
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverrides2Mbps[] =
|
||||
{
|
||||
// override_ble5_setup_override_2mbps.xml
|
||||
// PHY: Use MCE RAM patch (mode 2), RFE RAM patch (mode 2)
|
||||
MCE_RFE_OVERRIDE(1,0,2,1,0,2),
|
||||
// Bluetooth 5: Reduce pilot tone length
|
||||
HW_REG_OVERRIDE(0x5320,0x0240),
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x00D102A3,
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverridesCoded[] =
|
||||
{
|
||||
// override_ble5_setup_override_coded.xml
|
||||
// PHY: Use MCE RAM patch (mode 1), RFE RAM patch (mode 1)
|
||||
MCE_RFE_OVERRIDE(1,0,1,1,0,1),
|
||||
// Bluetooth 5: Reduce pilot tone length
|
||||
HW_REG_OVERRIDE(0x5320,0x0240),
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x078902A3,
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// CMD_BLE5_RADIO_SETUP
|
||||
// Bluetooth 5 Radio Setup Command for all PHYs
|
||||
rfc_CMD_BLE5_RADIO_SETUP_t RF_cmdBle5RadioSetup =
|
||||
{
|
||||
.commandNo = 0x1820,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.defaultPhy.mainMode = 0x0,
|
||||
.defaultPhy.coding = 0x0,
|
||||
.loDivider = 0x00,
|
||||
.config.frontEndMode = 0x0,
|
||||
.config.biasMode = 0x0,
|
||||
.config.analogCfgMode = 0x0,
|
||||
.config.bNoFsPowerUp = 0x0,
|
||||
.txPower = 0x941E,
|
||||
.pRegOverrideCommon = pOverridesCommon,
|
||||
.pRegOverride1Mbps = pOverrides1Mbps,
|
||||
.pRegOverride2Mbps = pOverrides2Mbps,
|
||||
.pRegOverrideCoded = pOverridesCoded,
|
||||
};
|
||||
|
||||
// CMD_FS
|
||||
// Frequency Synthesizer Programming Command
|
||||
rfc_CMD_FS_t RF_cmdFs =
|
||||
{
|
||||
.commandNo = 0x0803,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.frequency = 0x0988,
|
||||
.fractFreq = 0x0000,
|
||||
.synthConf.bTxMode = 0x0,
|
||||
.synthConf.refFreq = 0x0,
|
||||
.__dummy0 = 0x00,
|
||||
.__dummy1 = 0x00,
|
||||
.__dummy2 = 0x00,
|
||||
.__dummy3 = 0x0000,
|
||||
};
|
||||
|
||||
// Structure for CMD_BLE5_ADV_AUX.pParams
|
||||
rfc_ble5AdvAuxPar_t ble5AdvAuxPar =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x0,
|
||||
.rxConfig.bIncludeCrc = 0x0,
|
||||
.rxConfig.bAppendRssi = 0x0,
|
||||
.rxConfig.bAppendStatus = 0x0,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.advConfig.advFilterPolicy = 0x0,
|
||||
.advConfig.deviceAddrType = 0x0,
|
||||
.advConfig.targetAddrType = 0x0,
|
||||
.advConfig.bStrictLenFilter = 0x0,
|
||||
.advConfig.bDirected = 0x0,
|
||||
.advConfig.privIgnMode = 0x0,
|
||||
.advConfig.rpaMode = 0x0,
|
||||
.__dummy0 = 0x00,
|
||||
.auxPtrTargetType = 0x00,
|
||||
.auxPtrTargetTime = 0x00000000,
|
||||
.pAdvPkt = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pRspPkt = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pDeviceAddress = 0, // INSERT APPLICABLE POINTER: (uint16_t*)&xxx
|
||||
.pWhiteList = 0, // INSERT APPLICABLE POINTER: (uint32_t*)&xxx
|
||||
};
|
||||
|
||||
// CMD_BLE5_ADV_AUX
|
||||
// Bluetooth 5 Secondary Channel Advertiser Command
|
||||
rfc_CMD_BLE5_ADV_AUX_t RF_cmdBle5AdvAux =
|
||||
{
|
||||
.commandNo = 0x1824,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.phyMode.mainMode = 0x0,
|
||||
.phyMode.coding = 0x0,
|
||||
.rangeDelay = 0x00,
|
||||
.txPower = 0x0000,
|
||||
.pParams = &ble5AdvAuxPar,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.tx20Power = 0x00000000,
|
||||
};
|
||||
|
||||
// Structure for CMD_BLE5_GENERIC_RX.pParams
|
||||
rfc_bleGenericRxPar_t bleGenericRxPar =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x1,
|
||||
.rxConfig.bIncludeCrc = 0x1,
|
||||
.rxConfig.bAppendRssi = 0x1,
|
||||
.rxConfig.bAppendStatus = 0x1,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.bRepeat = 0x01,
|
||||
.__dummy0 = 0x0000,
|
||||
.accessAddress = 0x8E89BED6,
|
||||
.crcInit0 = 0x55,
|
||||
.crcInit1 = 0x55,
|
||||
.crcInit2 = 0x55,
|
||||
.endTrigger.triggerType = 0x1,
|
||||
.endTrigger.bEnaCmd = 0x0,
|
||||
.endTrigger.triggerNo = 0x0,
|
||||
.endTrigger.pastTrig = 0x0,
|
||||
.endTime = 0x00000001,
|
||||
};
|
||||
|
||||
// CMD_BLE5_GENERIC_RX
|
||||
// Bluetooth 5 Generic Receiver Command
|
||||
rfc_CMD_BLE5_GENERIC_RX_t RF_cmdBle5GenericRx =
|
||||
{
|
||||
.commandNo = 0x1829,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.phyMode.mainMode = 0x0,
|
||||
.phyMode.coding = 0x0,
|
||||
.rangeDelay = 0x00,
|
||||
.txPower = 0x0000,
|
||||
.pParams = &bleGenericRxPar,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.tx20Power = 0x00000000,
|
||||
};
|
44
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x2/ble-settings.h
Normal file
44
arch/cpu/cc13xx-cc26xx/rf-settings/cc13x2/ble-settings.h
Normal file
@ -0,0 +1,44 @@
|
||||
#ifndef _BLE-SETTINGS_H_
|
||||
#define _BLE-SETTINGS_H_
|
||||
|
||||
//*********************************************************************************
|
||||
// Generated by SmartRF Studio version 2.10.0 (build#106)
|
||||
// Compatible with SimpleLink SDK version: CC13x2 SDK 2.20.xx.xx
|
||||
// Device: CC1352R Rev. 1.1
|
||||
//
|
||||
//*********************************************************************************
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
|
||||
|
||||
// TX Power table size definition
|
||||
#define TX_POWER_TABLE_SIZE 16
|
||||
|
||||
|
||||
// TX Power Table Object
|
||||
extern RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE];
|
||||
|
||||
|
||||
// TI-RTOS RF Mode Object
|
||||
extern RF_Mode RF_prop;
|
||||
|
||||
|
||||
// RF Core API commands
|
||||
extern rfc_CMD_BLE5_RADIO_SETUP_t RF_cmdBle5RadioSetup;
|
||||
extern rfc_CMD_FS_t RF_cmdFs;
|
||||
extern rfc_CMD_BLE5_ADV_AUX_t RF_cmdBle5AdvAux;
|
||||
extern rfc_CMD_BLE5_GENERIC_RX_t RF_cmdBle5GenericRx;
|
||||
|
||||
|
||||
// RF Core API Overrides
|
||||
extern uint32_t pOverridesCommon[];
|
||||
extern uint32_t pOverrides1Mbps[];
|
||||
extern uint32_t pOverrides2Mbps[];
|
||||
extern uint32_t pOverridesCoded[];
|
||||
|
||||
|
||||
#endif // _BLE-SETTINGS_H_
|
||||
|
256
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x0/ble-settings.c
Normal file
256
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x0/ble-settings.c
Normal file
@ -0,0 +1,256 @@
|
||||
//*********************************************************************************
|
||||
// Generated by SmartRF Studio version 2.10.0 (build#106)
|
||||
// Compatible with SimpleLink SDK version: No known SDK for this device
|
||||
// Device: CC2650 Rev. 2.2
|
||||
//
|
||||
//*********************************************************************************
|
||||
|
||||
|
||||
//*********************************************************************************
|
||||
// Parameter summary
|
||||
// Adv. Address: 010203040506
|
||||
// Adv. Data: 255
|
||||
// BLE Channel: 17
|
||||
// Frequency: 2440 MHz
|
||||
// PDU Payload length:: 30
|
||||
// TX Power: 5 dBm
|
||||
// Whitening: true
|
||||
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_cpe_ble.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_rfe_ble.h)
|
||||
#include "ieee_settings.h"
|
||||
|
||||
|
||||
// TI-RTOS RF Mode Object
|
||||
RF_Mode RF_ble =
|
||||
{
|
||||
.rfMode = RF_MODE_BLE,
|
||||
.cpePatchFxn = &rf_patch_cpe_ble,
|
||||
.mcePatchFxn = 0,
|
||||
.rfePatchFxn = &rf_patch_rfe_ble,
|
||||
};
|
||||
|
||||
// TX Power table
|
||||
// The RF_TxPowerTable_DEFAULT_PA_ENTRY macro is defined in RF.h and requires the following arguments:
|
||||
// RF_TxPowerTable_DEFAULT_PA_ENTRY(bias, gain, boost coefficient)
|
||||
// See the Technical Reference Manual for further details about the "txPower" Command field.
|
||||
// The PA settings require the CCFG_FORCE_VDDR_HH = 0 unless stated otherwise.
|
||||
RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE] =
|
||||
{
|
||||
{-21, RF_TxPowerTable_DEFAULT_PA_ENTRY(7, 3, 0, 6) },
|
||||
{-18, RF_TxPowerTable_DEFAULT_PA_ENTRY(9, 3, 0, 6) },
|
||||
{-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(11, 3, 0, 6) },
|
||||
{-12, RF_TxPowerTable_DEFAULT_PA_ENTRY(11, 1, 0, 10) },
|
||||
{-9, RF_TxPowerTable_DEFAULT_PA_ENTRY(14, 1, 1, 12) },
|
||||
{-6, RF_TxPowerTable_DEFAULT_PA_ENTRY(18, 1, 1, 14) },
|
||||
{-3, RF_TxPowerTable_DEFAULT_PA_ENTRY(24, 1, 1, 18) },
|
||||
{0, RF_TxPowerTable_DEFAULT_PA_ENTRY(33, 1, 1, 24) },
|
||||
{1, RF_TxPowerTable_DEFAULT_PA_ENTRY(20, 0, 0, 33) },
|
||||
{2, RF_TxPowerTable_DEFAULT_PA_ENTRY(24, 0, 0, 39) },
|
||||
{3, RF_TxPowerTable_DEFAULT_PA_ENTRY(28, 0, 0, 45) },
|
||||
{4, RF_TxPowerTable_DEFAULT_PA_ENTRY(36, 0, 1, 73) },
|
||||
{5, RF_TxPowerTable_DEFAULT_PA_ENTRY(48, 0, 1, 73) },
|
||||
RF_TxPowerTable_TERMINATION_ENTRY
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_RADIO_SETUP
|
||||
uint32_t pOverrides[] =
|
||||
{
|
||||
// override_use_patch_ble_1mbps.xml
|
||||
// PHY: Use MCE ROM, RFE RAM patch
|
||||
MCE_RFE_OVERRIDE(0,0,0,1,0,0),
|
||||
// override_synth_ble_1mbps.xml
|
||||
// Synth: Set recommended RTRIM to 5
|
||||
HW_REG_OVERRIDE(0x4038,0x0035),
|
||||
// Synth: Set Fref to 3.43 MHz
|
||||
(uint32_t)0x000784A3,
|
||||
// Synth: Set loop bandwidth after lock to 80 kHz
|
||||
(uint32_t)0xA47E0583,
|
||||
// Synth: Set loop bandwidth after lock to 80 kHz
|
||||
(uint32_t)0xEAE00603,
|
||||
// Synth: Set loop bandwidth after lock to 80 kHz
|
||||
(uint32_t)0x00010623,
|
||||
// Synth: Configure PLL bias
|
||||
HW32_ARRAY_OVERRIDE(0x405C,1),
|
||||
// Synth: Configure PLL bias
|
||||
(uint32_t)0x1801F800,
|
||||
// Synth: Configure PLL latency
|
||||
HW32_ARRAY_OVERRIDE(0x402C,1),
|
||||
// Synth: Configure PLL latency
|
||||
(uint32_t)0x00608402,
|
||||
// Synth: Use 24 MHz XOSC as synth clock, enable extra PLL filtering
|
||||
(uint32_t)0x02010403,
|
||||
// Synth: Configure extra PLL filtering
|
||||
HW32_ARRAY_OVERRIDE(0x4034,1),
|
||||
// Synth: Configure extra PLL filtering
|
||||
(uint32_t)0x177F0408,
|
||||
// Synth: Configure extra PLL filtering
|
||||
(uint32_t)0x38000463,
|
||||
// override_phy_ble_1mbps.xml
|
||||
// Tx: Configure symbol shape for BLE frequency deviation requirements
|
||||
(uint32_t)0x013800C3,
|
||||
// Rx: Configure AGC reference level
|
||||
HW_REG_OVERRIDE(0x6088, 0x0045),
|
||||
// Tx: Configure pilot tone length to ensure stable frequency before start of packet
|
||||
HW_REG_OVERRIDE(0x52AC, 0x0360),
|
||||
// Tx: Compensate timing offset to match new pilot tone setting
|
||||
(uint32_t)0x01AD02A3,
|
||||
// Tx: Compensate timing offset to match new pilot tone setting
|
||||
(uint32_t)0x01680263,
|
||||
// override_frontend_id.xml
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// CMD_RADIO_SETUP
|
||||
// Radio Setup Command for Pre-Defined Schemes
|
||||
rfc_CMD_RADIO_SETUP_t RF_cmdRadioSetup =
|
||||
{
|
||||
.commandNo = 0x0802,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.mode = 0x00,
|
||||
.__dummy0 = 0x00,
|
||||
.config.frontEndMode = 0x0,
|
||||
.config.biasMode = 0x0,
|
||||
.config.analogCfgMode = 0x0,
|
||||
.config.bNoFsPowerUp = 0x0,
|
||||
.txPower = 0x9330,
|
||||
.pRegOverride = pOverrides,
|
||||
};
|
||||
|
||||
// CMD_FS
|
||||
// Frequency Synthesizer Programming Command
|
||||
rfc_CMD_FS_t RF_cmdFs =
|
||||
{
|
||||
.commandNo = 0x0803,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.frequency = 0x0988,
|
||||
.fractFreq = 0x0000,
|
||||
.synthConf.bTxMode = 0x0,
|
||||
.synthConf.refFreq = 0x0,
|
||||
.__dummy0 = 0x00,
|
||||
.__dummy1 = 0x00,
|
||||
.__dummy2 = 0x00,
|
||||
.__dummy3 = 0x0000,
|
||||
};
|
||||
|
||||
// Structure for CMD_BLE_ADV_NC.pParams
|
||||
rfc_bleAdvPar_t bleAdvPar =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x0,
|
||||
.rxConfig.bIncludeCrc = 0x0,
|
||||
.rxConfig.bAppendRssi = 0x0,
|
||||
.rxConfig.bAppendStatus = 0x0,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.advConfig.advFilterPolicy = 0x0,
|
||||
.advConfig.deviceAddrType = 0x0,
|
||||
.advConfig.peerAddrType = 0x0,
|
||||
.advConfig.bStrictLenFilter = 0x0,
|
||||
.advConfig.rpaMode = 0x0,
|
||||
.advLen = 0x18,
|
||||
.scanRspLen = 0x00,
|
||||
.pAdvData = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pScanRspData = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pDeviceAddress = 0, // INSERT APPLICABLE POINTER: (uint16_t*)&xxx
|
||||
.pWhiteList = 0, // INSERT APPLICABLE POINTER: (uint32_t*)&xxx
|
||||
.__dummy0 = 0x0000,
|
||||
.__dummy1 = 0x00,
|
||||
.endTrigger.triggerType = 0x1,
|
||||
.endTrigger.bEnaCmd = 0x0,
|
||||
.endTrigger.triggerNo = 0x0,
|
||||
.endTrigger.pastTrig = 0x0,
|
||||
.endTime = 0x00000000,
|
||||
};
|
||||
|
||||
// CMD_BLE_ADV_NC
|
||||
// BLE Non-Connectable Advertiser Command
|
||||
rfc_CMD_BLE_ADV_NC_t RF_cmdBleAdvNc =
|
||||
{
|
||||
.commandNo = 0x1805,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.pParams = &bleAdvPar,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
};
|
||||
|
||||
// Structure for CMD_BLE_GENERIC_RX.pParams
|
||||
rfc_bleGenericRxPar_t bleGenericRxPar =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x1,
|
||||
.rxConfig.bIncludeCrc = 0x1,
|
||||
.rxConfig.bAppendRssi = 0x1,
|
||||
.rxConfig.bAppendStatus = 0x1,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.bRepeat = 0x01,
|
||||
.__dummy0 = 0x0000,
|
||||
.accessAddress = 0x8E89BED6,
|
||||
.crcInit0 = 0x55,
|
||||
.crcInit1 = 0x55,
|
||||
.crcInit2 = 0x55,
|
||||
.endTrigger.triggerType = 0x1,
|
||||
.endTrigger.bEnaCmd = 0x0,
|
||||
.endTrigger.triggerNo = 0x0,
|
||||
.endTrigger.pastTrig = 0x0,
|
||||
.endTime = 0x00000001,
|
||||
};
|
||||
|
||||
// CMD_BLE_GENERIC_RX
|
||||
// BLE Generic Receiver Command
|
||||
rfc_CMD_BLE_GENERIC_RX_t RF_cmdBleGenericRx =
|
||||
{
|
||||
.commandNo = 0x1809,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.pParams = &bleGenericRxPar,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
};
|
41
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x0/ble-settings.h
Normal file
41
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x0/ble-settings.h
Normal file
@ -0,0 +1,41 @@
|
||||
#ifndef _BLE-SETTINGS_H_
|
||||
#define _BLE-SETTINGS_H_
|
||||
|
||||
//*********************************************************************************
|
||||
// Generated by SmartRF Studio version 2.10.0 (build#106)
|
||||
// Compatible with SimpleLink SDK version: No known SDK for this device
|
||||
// Device: CC2650 Rev. 2.2
|
||||
//
|
||||
//*********************************************************************************
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
|
||||
|
||||
// TX Power table size definition
|
||||
#define TX_POWER_TABLE_SIZE 14
|
||||
|
||||
|
||||
// TX Power Table Object
|
||||
extern RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE];
|
||||
|
||||
|
||||
// TI-RTOS RF Mode Object
|
||||
extern RF_Mode RF_ble;
|
||||
|
||||
|
||||
// RF Core API commands
|
||||
extern rfc_CMD_RADIO_SETUP_t RF_cmdRadioSetup;
|
||||
extern rfc_CMD_FS_t RF_cmdFs;
|
||||
extern rfc_CMD_BLE_ADV_NC_t RF_cmdBleAdvNc;
|
||||
extern rfc_CMD_BLE_GENERIC_RX_t RF_cmdBleGenericRx;
|
||||
|
||||
|
||||
// RF Core API Overrides
|
||||
extern uint32_t pOverrides[];
|
||||
|
||||
|
||||
#endif // _BLE-SETTINGS_H_
|
||||
|
308
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x2/ble-settings.c
Normal file
308
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x2/ble-settings.c
Normal file
@ -0,0 +1,308 @@
|
||||
//*********************************************************************************
|
||||
// Generated by SmartRF Studio version 2.10.0 (build#106)
|
||||
// Compatible with SimpleLink SDK version: CC26x2 SDK 2.20.xx.xx
|
||||
// Device: CC2652R Rev. 1.1 (Rev. C)
|
||||
//
|
||||
//*********************************************************************************
|
||||
|
||||
|
||||
//*********************************************************************************
|
||||
// Parameter summary
|
||||
// Adv. Address: 010203040506
|
||||
// Adv. Data: dummy
|
||||
// BLE Channel: 17
|
||||
// Extended Header: 09 09 010203040506 babe
|
||||
// Frequency: 2440 MHz
|
||||
// PDU Payload length:: 30
|
||||
// TX Power: 5 dBm
|
||||
// Whitening: true
|
||||
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_cpe_bt5.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_rfe_bt5.h)
|
||||
#include DeviceFamily_constructPath(rf_patches/rf_patch_mce_bt5.h)
|
||||
#include "ble-settings.h"
|
||||
|
||||
|
||||
// TI-RTOS RF Mode Object
|
||||
RF_Mode RF_prop =
|
||||
{
|
||||
.rfMode = RF_MODE_AUTO,
|
||||
.cpePatchFxn = &rf_patch_cpe_bt5,
|
||||
.mcePatchFxn = &rf_patch_mce_bt5,
|
||||
.rfePatchFxn = &rf_patch_rfe_bt5,
|
||||
};
|
||||
|
||||
// TX Power table
|
||||
// The RF_TxPowerTable_DEFAULT_PA_ENTRY macro is defined in RF.h and requires the following arguments:
|
||||
// RF_TxPowerTable_DEFAULT_PA_ENTRY(bias, gain, boost coefficient)
|
||||
// See the Technical Reference Manual for further details about the "txPower" Command field.
|
||||
// The PA settings require the CCFG_FORCE_VDDR_HH = 0 unless stated otherwise.
|
||||
RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE] =
|
||||
{
|
||||
{-21, RF_TxPowerTable_DEFAULT_PA_ENTRY(7, 3, 0, 3) },
|
||||
{-18, RF_TxPowerTable_DEFAULT_PA_ENTRY(9, 3, 0, 3) },
|
||||
{-15, RF_TxPowerTable_DEFAULT_PA_ENTRY(8, 2, 0, 6) },
|
||||
{-12, RF_TxPowerTable_DEFAULT_PA_ENTRY(10, 2, 0, 8) },
|
||||
{-10, RF_TxPowerTable_DEFAULT_PA_ENTRY(12, 2, 0, 11) },
|
||||
{-9, RF_TxPowerTable_DEFAULT_PA_ENTRY(13, 2, 0, 5) },
|
||||
{-6, RF_TxPowerTable_DEFAULT_PA_ENTRY(13, 1, 0, 16) },
|
||||
{-5, RF_TxPowerTable_DEFAULT_PA_ENTRY(14, 1, 0, 17) },
|
||||
{-3, RF_TxPowerTable_DEFAULT_PA_ENTRY(17, 1, 0, 20) },
|
||||
{0, RF_TxPowerTable_DEFAULT_PA_ENTRY(25, 1, 0, 26) },
|
||||
{1, RF_TxPowerTable_DEFAULT_PA_ENTRY(28, 1, 0, 28) },
|
||||
{2, RF_TxPowerTable_DEFAULT_PA_ENTRY(13, 0, 0, 34) },
|
||||
{3, RF_TxPowerTable_DEFAULT_PA_ENTRY(17, 0, 0, 42) },
|
||||
{4, RF_TxPowerTable_DEFAULT_PA_ENTRY(22, 0, 0, 54) },
|
||||
{5, RF_TxPowerTable_DEFAULT_PA_ENTRY(30, 0, 0, 74) },
|
||||
RF_TxPowerTable_TERMINATION_ENTRY
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverridesCommon[] =
|
||||
{
|
||||
// override_ble5_setup_override_common.xml
|
||||
// Synth: Use 48 MHz crystal, enable extra PLL filtering
|
||||
(uint32_t)0x02400403,
|
||||
// Synth: Configure extra PLL filtering
|
||||
(uint32_t)0x001C8473,
|
||||
// Synth: Configure synth hardware
|
||||
(uint32_t)0x00088433,
|
||||
// Synth: Set minimum RTRIM to 3
|
||||
(uint32_t)0x00038793,
|
||||
// Synth: Configure faster calibration
|
||||
HW32_ARRAY_OVERRIDE(0x4004,1),
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0x1C0C0618,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0xC00401A1,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0x00010101,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0xC0040141,
|
||||
// Synth: Configure faster calibration
|
||||
(uint32_t)0x00214AD3,
|
||||
// Synth: Decrease synth programming time-out (0x0298 RAT ticks = 166 us)
|
||||
(uint32_t)0x02980243,
|
||||
// DC/DC regulator: In Tx, use DCDCCTL5[3:0]=0xC (DITHER_EN=1 and IPEAK=4). In Rx, use DCDCCTL5[3:0]=0xC (DITHER_EN=1 and IPEAK=4).
|
||||
(uint32_t)0xFCFC08C3,
|
||||
// Rx: Set LNA bias current offset to adjust +3 (default: 0)
|
||||
(uint32_t)0x00038883,
|
||||
// Rx: Set RSSI offset to adjust reported RSSI by -2 dB (default: 0)
|
||||
(uint32_t)0x000288A3,
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x01080263,
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x08E90AA3,
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x00068BA3,
|
||||
// Bluetooth 5: Set correct total clock accuracy for received AuxPtr assuming local sleep clock of 50 ppm
|
||||
(uint32_t)0x0E490C83,
|
||||
// override_frontend_id.xml
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverrides1Mbps[] =
|
||||
{
|
||||
// override_ble5_setup_override_1mbps.xml
|
||||
// PHY: Use MCE RAM patch (mode 0), RFE RAM patch (mode 0)
|
||||
MCE_RFE_OVERRIDE(1,0,0,1,0,0),
|
||||
// Bluetooth 5: Reduce pilot tone length
|
||||
HW_REG_OVERRIDE(0x5320,0x0240),
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x013302A3,
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverrides2Mbps[] =
|
||||
{
|
||||
// override_ble5_setup_override_2mbps.xml
|
||||
// PHY: Use MCE RAM patch (mode 2), RFE RAM patch (mode 2)
|
||||
MCE_RFE_OVERRIDE(1,0,2,1,0,2),
|
||||
// Bluetooth 5: Reduce pilot tone length
|
||||
HW_REG_OVERRIDE(0x5320,0x0240),
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x00D102A3,
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// Overrides for CMD_BLE5_RADIO_SETUP
|
||||
uint32_t pOverridesCoded[] =
|
||||
{
|
||||
// override_ble5_setup_override_coded.xml
|
||||
// PHY: Use MCE RAM patch (mode 1), RFE RAM patch (mode 1)
|
||||
MCE_RFE_OVERRIDE(1,0,1,1,0,1),
|
||||
// Bluetooth 5: Reduce pilot tone length
|
||||
HW_REG_OVERRIDE(0x5320,0x0240),
|
||||
// Bluetooth 5: Compensate for reduced pilot tone length
|
||||
(uint32_t)0x078902A3,
|
||||
(uint32_t)0xFFFFFFFF,
|
||||
};
|
||||
|
||||
|
||||
// CMD_BLE5_RADIO_SETUP
|
||||
// Bluetooth 5 Radio Setup Command for all PHYs
|
||||
rfc_CMD_BLE5_RADIO_SETUP_t RF_cmdBle5RadioSetup =
|
||||
{
|
||||
.commandNo = 0x1820,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.defaultPhy.mainMode = 0x0,
|
||||
.defaultPhy.coding = 0x0,
|
||||
.loDivider = 0x00,
|
||||
.config.frontEndMode = 0x0,
|
||||
.config.biasMode = 0x0,
|
||||
.config.analogCfgMode = 0x0,
|
||||
.config.bNoFsPowerUp = 0x0,
|
||||
.txPower = 0x941E,
|
||||
.pRegOverrideCommon = pOverridesCommon,
|
||||
.pRegOverride1Mbps = pOverrides1Mbps,
|
||||
.pRegOverride2Mbps = pOverrides2Mbps,
|
||||
.pRegOverrideCoded = pOverridesCoded,
|
||||
};
|
||||
|
||||
// CMD_FS
|
||||
// Frequency Synthesizer Programming Command
|
||||
rfc_CMD_FS_t RF_cmdFs =
|
||||
{
|
||||
.commandNo = 0x0803,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.frequency = 0x0988,
|
||||
.fractFreq = 0x0000,
|
||||
.synthConf.bTxMode = 0x0,
|
||||
.synthConf.refFreq = 0x0,
|
||||
.__dummy0 = 0x00,
|
||||
.__dummy1 = 0x00,
|
||||
.__dummy2 = 0x00,
|
||||
.__dummy3 = 0x0000,
|
||||
};
|
||||
|
||||
// Structure for CMD_BLE5_ADV_AUX.pParams
|
||||
rfc_ble5AdvAuxPar_t ble5AdvAuxPar =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x0,
|
||||
.rxConfig.bIncludeCrc = 0x0,
|
||||
.rxConfig.bAppendRssi = 0x0,
|
||||
.rxConfig.bAppendStatus = 0x0,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.advConfig.advFilterPolicy = 0x0,
|
||||
.advConfig.deviceAddrType = 0x0,
|
||||
.advConfig.targetAddrType = 0x0,
|
||||
.advConfig.bStrictLenFilter = 0x0,
|
||||
.advConfig.bDirected = 0x0,
|
||||
.advConfig.privIgnMode = 0x0,
|
||||
.advConfig.rpaMode = 0x0,
|
||||
.__dummy0 = 0x00,
|
||||
.auxPtrTargetType = 0x00,
|
||||
.auxPtrTargetTime = 0x00000000,
|
||||
.pAdvPkt = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pRspPkt = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.pDeviceAddress = 0, // INSERT APPLICABLE POINTER: (uint16_t*)&xxx
|
||||
.pWhiteList = 0, // INSERT APPLICABLE POINTER: (uint32_t*)&xxx
|
||||
};
|
||||
|
||||
// CMD_BLE5_ADV_AUX
|
||||
// Bluetooth 5 Secondary Channel Advertiser Command
|
||||
rfc_CMD_BLE5_ADV_AUX_t RF_cmdBle5AdvAux =
|
||||
{
|
||||
.commandNo = 0x1824,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.phyMode.mainMode = 0x0,
|
||||
.phyMode.coding = 0x0,
|
||||
.rangeDelay = 0x00,
|
||||
.txPower = 0x0000,
|
||||
.pParams = &ble5AdvAuxPar,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.tx20Power = 0x00000000,
|
||||
};
|
||||
|
||||
// Structure for CMD_BLE5_GENERIC_RX.pParams
|
||||
rfc_bleGenericRxPar_t bleGenericRxPar =
|
||||
{
|
||||
.pRxQ = 0, // INSERT APPLICABLE POINTER: (dataQueue_t*)&xxx
|
||||
.rxConfig.bAutoFlushIgnored = 0x0,
|
||||
.rxConfig.bAutoFlushCrcErr = 0x0,
|
||||
.rxConfig.bAutoFlushEmpty = 0x0,
|
||||
.rxConfig.bIncludeLenByte = 0x1,
|
||||
.rxConfig.bIncludeCrc = 0x1,
|
||||
.rxConfig.bAppendRssi = 0x1,
|
||||
.rxConfig.bAppendStatus = 0x1,
|
||||
.rxConfig.bAppendTimestamp = 0x0,
|
||||
.bRepeat = 0x01,
|
||||
.__dummy0 = 0x0000,
|
||||
.accessAddress = 0x8E89BED6,
|
||||
.crcInit0 = 0x55,
|
||||
.crcInit1 = 0x55,
|
||||
.crcInit2 = 0x55,
|
||||
.endTrigger.triggerType = 0x1,
|
||||
.endTrigger.bEnaCmd = 0x0,
|
||||
.endTrigger.triggerNo = 0x0,
|
||||
.endTrigger.pastTrig = 0x0,
|
||||
.endTime = 0x00000001,
|
||||
};
|
||||
|
||||
// CMD_BLE5_GENERIC_RX
|
||||
// Bluetooth 5 Generic Receiver Command
|
||||
rfc_CMD_BLE5_GENERIC_RX_t RF_cmdBle5GenericRx =
|
||||
{
|
||||
.commandNo = 0x1829,
|
||||
.status = 0x0000,
|
||||
.pNextOp = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.startTime = 0x00000000,
|
||||
.startTrigger.triggerType = 0x0,
|
||||
.startTrigger.bEnaCmd = 0x0,
|
||||
.startTrigger.triggerNo = 0x0,
|
||||
.startTrigger.pastTrig = 0x0,
|
||||
.condition.rule = 0x1,
|
||||
.condition.nSkip = 0x0,
|
||||
.channel = 0x8C,
|
||||
.whitening.init = 0x51,
|
||||
.whitening.bOverride = 0x1,
|
||||
.phyMode.mainMode = 0x0,
|
||||
.phyMode.coding = 0x0,
|
||||
.rangeDelay = 0x00,
|
||||
.txPower = 0x0000,
|
||||
.pParams = &bleGenericRxPar,
|
||||
.pOutput = 0, // INSERT APPLICABLE POINTER: (uint8_t*)&xxx
|
||||
.tx20Power = 0x00000000,
|
||||
};
|
44
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x2/ble-settings.h
Normal file
44
arch/cpu/cc13xx-cc26xx/rf-settings/cc26x2/ble-settings.h
Normal file
@ -0,0 +1,44 @@
|
||||
#ifndef _BLE-SETTINGS_H_
|
||||
#define _BLE-SETTINGS_H_
|
||||
|
||||
//*********************************************************************************
|
||||
// Generated by SmartRF Studio version 2.10.0 (build#106)
|
||||
// Compatible with SimpleLink SDK version: CC26x2 SDK 2.20.xx.xx
|
||||
// Device: CC2652R Rev. 1.1 (Rev. C)
|
||||
//
|
||||
//*********************************************************************************
|
||||
#include <ti/devices/DeviceFamily.h>
|
||||
#include DeviceFamily_constructPath(driverlib/rf_mailbox.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_common_cmd.h)
|
||||
#include DeviceFamily_constructPath(driverlib/rf_ble_cmd.h)
|
||||
#include <ti/drivers/rf/RF.h>
|
||||
|
||||
|
||||
// TX Power table size definition
|
||||
#define TX_POWER_TABLE_SIZE 16
|
||||
|
||||
|
||||
// TX Power Table Object
|
||||
extern RF_TxPowerTable_Entry txPowerTable[TX_POWER_TABLE_SIZE];
|
||||
|
||||
|
||||
// TI-RTOS RF Mode Object
|
||||
extern RF_Mode RF_prop;
|
||||
|
||||
|
||||
// RF Core API commands
|
||||
extern rfc_CMD_BLE5_RADIO_SETUP_t RF_cmdBle5RadioSetup;
|
||||
extern rfc_CMD_FS_t RF_cmdFs;
|
||||
extern rfc_CMD_BLE5_ADV_AUX_t RF_cmdBle5AdvAux;
|
||||
extern rfc_CMD_BLE5_GENERIC_RX_t RF_cmdBle5GenericRx;
|
||||
|
||||
|
||||
// RF Core API Overrides
|
||||
extern uint32_t pOverridesCommon[];
|
||||
extern uint32_t pOverrides1Mbps[];
|
||||
extern uint32_t pOverrides2Mbps[];
|
||||
extern uint32_t pOverridesCoded[];
|
||||
|
||||
|
||||
#endif // _BLE-SETTINGS_H_
|
||||
|
Loading…
Reference in New Issue
Block a user