|
Radio Control Layer (RCL)
|
#include <stdint.h>#include <stdlib.h>#include <string.h>#include <ti/log/Log.h>#include <ti/drivers/rcl/RCL_Command.h>#include <ti/drivers/rcl/RCL_Buffer.h>#include <ti/drivers/rcl/RCL_Scheduler.h>#include <ti/drivers/rcl/hal/RCL_Hal.h>#include <ti/drivers/rcl/commands/ble_cs.h>#include <ti/devices/DeviceFamily.h>
Include dependency graph for ble_cs.c:Data Structures | |
| union | RCL_AntennaPath_t |
| struct | RCL_AntennaConfig_t |
| union | RCL_PctConfig_t |
| union | RCL_MagnConfig_t |
| struct | RCL_Tadjust_t |
| struct | RCL_PhyConfig_t |
| struct | .common |
| struct | .ble_cs |
| struct | RCL_AntennaPath_t.a |
| struct | RCL_PctConfig_t.__unnamed__ |
| struct | RCL_MagnConfig_t.__unnamed__ |
Macros | |
| #define | BLE_CS_BASE_FREQ_MHZ 2402U |
| #define | BLE_CS_MAX_CHANNEL 78U |
| #define | BLE_CS_MID_CHANNEL 40U |
| #define | BLE_CS_NUM_CHANNELS 79U |
| #define | BLE_CS_NUM_INVALID_CHANNELS 7U |
| #define | BLE_CS_SILENT_CHANNEL 100U |
| #define | BLE_CS_NUM_PERMUTATION 24U |
| #define | BLE_CS_S2R_OVERSAMPLE_RATE 4U |
| #define | BLE_CS_S2R_MEMORY_OFFSET 0x0C00U |
| #define | BLE_CS_TXFIFO_BASE_ADDR 128U |
| #define | BLE_CS_TXFIFO_LEN 96U |
| #define | BLE_CS_RXFIFO_BASE_ADDR 224U |
| #define | BLE_CS_RXFIFO_LEN 160U |
| #define | BLE_CS_FIRST_BATCH_SIZE 2U |
| #define | BLE_CS_TONE_QUALITY_HIGH_THR 20U |
| #define | BLE_CS_TONE_QUALITY_NA 255U |
| #define | BLE_CS_TONE_EXTENSION_INITIATOR_TX 0b01U |
| #define | BLE_CS_TONE_EXTENSION_REFLECTOR_TX 0b10U |
| #define | BLE_CS_RX_GAIN_AUTO_DEFAULT 0x0EC9 |
| #define | BLE_CS_RX_GAIN_DB_TO_OVERRIDE(x) (((x) / 3U) << 8U) |
| #define | BLE_CS_FOFF_COMP_TO_OVERRIDE(x) ((x) * 4U) |
| #define | BLE_CS_FOFF_NUM_OVERRIDE ((1 << 15U) | 1U) |
| #define | BLE_CS_COMBINE_IQ(i, q) ((((int32_t) i) & 0xFFFF) | ((((int32_t) q) & 0xFFFF) << 16)) |
| #define | DECODE_ANTENNA(x, y) (uint8_t) (((x) >> ((y)*2U)) & 0x03U) |
| #define | ENCODE_ANTENNA(x, y) (((x) << ((y)*4U))) |
| #define | INT16_MSB(x) (uint8_t) (((uint16_t) (x) >> 8U) & 0xFFU) |
| #define | INT16_LSB(x) (uint8_t) ((uint16_t) (x) & 0xFFU) |
| #define | INT32_H(x) (uint16_t) (((uint32_t) (x) >> 16U) & 0xFFFFU) |
| #define | INT32_L(x) (uint16_t) ((uint32_t) (x) & 0xFFFFU) |
| #define | T1US RCL_BLE_CS_US_TO_MCE_TIMER(1U) |
| #define | T3US RCL_BLE_CS_US_TO_MCE_TIMER(3U) |
| #define | TRD RCL_BLE_CS_US_TO_MCE_TIMER(5U) |
| #define | TGD RCL_BLE_CS_US_TO_MCE_TIMER(10U) |
| #define | TPLT RCL_BLE_CS_US_TO_MCE_TIMER(20U) |
| #define | TFM RCL_BLE_CS_US_TO_MCE_TIMER(80U) |
| #define | TPYL 0U |
| #define | A1 (0) |
| #define | A2 (1) |
| #define | A3 (2) |
| #define | A4 (3) |
| #define | PI_div2 (int16_t) (1 << (16-2)) |
| #define | NBITS (14U) |
| #define | K14 (9949) |
| #define | DCFILTER 1 |
Functions | |
| __attribute__ ((weak)) const | |
| static bool | RCL_Handler_BLE_CS_transferFinishedBuffers (List_List *pSrc, List_List *pDst, bool forceBufferToFinishState) |
| static void | RCL_Handler_BLE_CS_configureTxRxFifo (RCL_CmdBleCs *pCmd) |
| static RCL_Events | RCL_Handler_BLE_CS_preFillTxBuffer (RCL_CmdBleCs *pCmd) |
| static void | RCL_Handler_BLE_CS_fetchAndforwardNextStep (RCL_CmdBleCs *pCmd) |
| static void | RCL_Handler_BLE_CS_retrieveAndStoreNextResult (RCL_CmdBleCs *pCmd, bool forceBufferToFinishState) |
| static RCL_Events | RCL_Handler_BLE_CS_readWriteBuffer (RCL_CmdBleCs *pCmd, bool forceBufferToFinishState) |
| static void | RCL_Handler_BLE_CS_configureS2R (RCL_CmdBleCs *pCmd) |
| RCL_Events | RCL_Handler_BLE_CS_readS2RSamples (RCL_CmdBleCs *pCmd) |
| static void | RCL_Handler_BLE_CS_readStatistics (RCL_CmdBleCs *pCmd) |
| static void | RCL_Handler_BLE_CS_preprocessCommand (RCL_CmdBleCs *pCmd) |
| static void | RCL_Handler_BLE_CS_preprocessStep (RCL_CmdBleCs *pCmd, RCL_CmdBleCs_Step *pStep, RCL_CmdBleCs_Step_Internal *pStepI) |
| static RCL_CmdBleCs_StepResult_Internal * | RCL_Handler_BLE_CS_fetchNextStepResult (RCL_CmdBleCs *pCmd) |
| static void | RCL_Handler_BLE_CS_updateCache (RCL_CmdBleCs *pCmd) |
| static int16_t | RCL_Handler_BLE_CS_convertFreqOffset (int16_t foffMeasured, bool ceil) |
| static int16_t | RCL_Handler_BLE_CS_convertRtt (RCL_CmdBleCs *pCmd, RCL_CmdBleCs_StepMode mode, uint8_t channel, uint8_t payloadLen, bool secondToneExtensionSlot, uint32_t rtt, uint16_t corrBefore, uint16_t corrPeak, uint16_t corrAfter) |
| void | RCL_Handler_BLE_CS_rotateVector (int16_t *pct_i, int16_t *pct_q, int16_t theta) |
| static uint32_t | RCL_Handler_BLE_CS_convertPct (const RCL_CmdBleCs_IQSample *pPct, const uint8_t channelIdx, bool inlinePhase) |
| static uint8_t | RCL_Handler_BLE_CS_calcQ3 (uint16_t qMin, uint16_t qMax, uint16_t qAvg) |
| static uint8_t | RCL_Handler_BLE_CS_convertPctQuality (uint16_t qMin, uint16_t qMax, uint16_t qAvg, bool toneExtensionSlot, bool toneExpected, bool toneQualityOverride) |
| static uint16_t | RCL_Handler_BLE_CS_estimateStepResultLength (RCL_CmdBleCs *pCmd, RCL_CmdBleCs_StepResult_Internal *src) |
| static uint16_t | RCL_Handler_BLE_CS_convertStepResult (RCL_CmdBleCs *pCmd, uint8_t *dst, RCL_CmdBleCs_StepResult_Internal *src) |
| static RCL_CommandStatus | RCL_Handler_BLE_CS_findPbeErrorEndStatus (uint16_t pbeEndStatus) |
| RCL_Events | RCL_Handler_BLE_CS (RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEventsIn) |
| static bool | RCL_Handler_BLE_CS_filterDC (uint16_t max, uint16_t min, uint16_t thr) |
| RCL_Events | RCL_Handler_BLE_CS_Precal (RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEventsIn) |
| void | RCL_Handler_BLE_CS_PrecalDefaultCallback (RCL_CmdBleCs_PrecalTable *table, uint8_t channel, RCL_CmdBleCs_IQSample *pHigh, RCL_CmdBleCs_IQSample *pLow) |
Variables | |
| struct { | |
| struct { | |
| RCL_CommandStatus | endStatus |
| } | common |
| struct { | |
| bool | rxGainCacheValid |
| uint16_t | rxGainCache |
| bool | foffCacheValid |
| int16_t | foffCache |
| bool | firstBuffer |
| uint32_t | hftrackctl |
| } | ble_cs |
| } | bleCsHandlerState |
| RCL_CmdBleCs_Step_Internal | step |
| RCL_CmdBleCs_StepResult_Internal | stepResult |
| uint32_t | tStepLut [RCL_CmdBleCs_StepMode_Length] |
| int16_t | tPllRx [RCL_CmdBleCs_StepMode_Length] |
| int16_t | tAdjALut [RCL_CmdBleCs_StepMode_Length] |
| int16_t | tAdjBLut [RCL_CmdBleCs_StepMode_Length] |
| int16_t | tAntBLut [RCL_CmdBleCs_StepMode_Length] |
| int16_t | tAntALut [RCL_CmdBleCs_StepMode_Length] |
| int16_t | tRttAdjustLut [RCL_CmdBleCs_StepMode_Length] |
| const RCL_AntennaPath_t | antennaPermutation [BLE_CS_NUM_PERMUTATION] |
| const RCL_AntennaConfig_t | antennaConfig [RCL_CmdBleCs_AntennaConfig_Length] |
| const RCL_PhyConfig_t | phyConfigLut [RCL_CmdBleCs_Phy_Length] |
| const int8_t | foffErrorLut [BLE_CS_NUM_CHANNELS] |
| const uint16_t | payloadLut [RCL_CmdBleCs_Payload_Length] |
| const RCL_CmdBleCs_PctCompTable | RCL_bleCsPctCompTable |
| union RCL_AntennaPath_t |
| Data Fields | ||
|---|---|---|
| struct RCL_AntennaPath_t | a | |
| uint8_t | apn | |
| struct RCL_AntennaConfig_t |
Collaboration diagram for RCL_AntennaConfig_t:| Data Fields | ||
|---|---|---|
| uint8_t | numPath: 3 |
Total number of antenna path |
| uint8_t | numPerm: 5 |
Total number of permutation possible with this configuration |
| RCL_AntennaPath_t | ap[2] | |
| union RCL_PctConfig_t |
| Data Fields | ||
|---|---|---|
| struct RCL_PctConfig_t | __unnamed__ | |
| uint16_t | val | |
| union RCL_MagnConfig_t |
| Data Fields | ||
|---|---|---|
| struct RCL_MagnConfig_t | __unnamed__ | |
| uint16_t | val | |
| struct RCL_Tadjust_t |
| struct RCL_PhyConfig_t |
Collaboration diagram for RCL_PhyConfig_t:| Data Fields | ||
|---|---|---|
| uint16_t | baud | |
| uint16_t | symmap | |
| uint16_t | demmisc2 | |
| uint16_t | demmisc3 | |
| uint16_t | rssioffset | |
| uint16_t | tPostProcessDiv1 |
Duration set aside for post processing |
| uint16_t | tPostProcessDiv4 |
Duration set aside for post processing |
| uint16_t | tRxTimeoutI0 |
Initiator must terminate packet reception before end of step |
| uint16_t | tRxTimeoutI3 |
Initiator must terminate packet reception before end of step |
| uint16_t | tStartup |
Duration set aside for starting up the topSMs and start to emit a tone on the antenna |
| uint16_t | tPacket |
Duration of packet [preamble + AA + Trailer] |
| uint16_t | tRxTimeoutRn |
Reception timeout on reflector side |
| uint16_t | tInfiniteRx |
Correction of step duration when packet reception is used as anchor point |
| uint16_t | tTr |
Duration of trailer bits |
| uint16_t | tCorr |
Time between signal on antenna and correlation event |
| uint16_t | tDem |
Time between signal on antenna and demodulation completed |
| uint16_t | tFidc |
Time between signal on antenna and FIDC |
| uint16_t | tTxModDelay |
Time between modulator and signal on antenna (mostly shaper delay) |
| uint16_t | tTimestampDelay1 |
Sum of delays between signal on antenna vs capture on timer by HW for mode-1 |
| uint16_t | tTimestampDelay3 |
Sum of delays between signal on antenna vs capture on timer by HW for mode-3 |
| RCL_PctConfig_t | pctConfig[RCL_CmdBleCs_Tpm_Length] | |
| RCL_MagnConfig_t | magnConfig[RCL_CmdBleCs_Tpm_Length] | |
| RCL_Tadjust_t | tAdj[RCL_CmdBleCs_Role_Length] | |
| RCL_Tadjust_t | tRtt | |
| RCL_Tadjust_t | tAnt[RCL_CmdBleCs_Role_Length] | |
| struct .common |
| Data Fields | ||
|---|---|---|
| RCL_CommandStatus | endStatus | |
| struct .ble_cs |
| struct RCL_PctConfig_t.__unnamed__ |
| #define BLE_CS_BASE_FREQ_MHZ 2402U |
| #define BLE_CS_MAX_CHANNEL 78U |
Referenced by RCL_Handler_BLE_CS_convertRtt(), and RCL_Handler_BLE_CS_PrecalDefaultCallback().
| #define BLE_CS_MID_CHANNEL 40U |
| #define BLE_CS_NUM_CHANNELS 79U |
| #define BLE_CS_NUM_INVALID_CHANNELS 7U |
| #define BLE_CS_SILENT_CHANNEL 100U |
| #define BLE_CS_NUM_PERMUTATION 24U |
| #define BLE_CS_S2R_OVERSAMPLE_RATE 4U |
| #define BLE_CS_S2R_MEMORY_OFFSET 0x0C00U |
Referenced by RCL_Handler_BLE_CS_configureS2R().
| #define BLE_CS_TXFIFO_BASE_ADDR 128U |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_TXFIFO_LEN 96U |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_RXFIFO_BASE_ADDR 224U |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_RXFIFO_LEN 160U |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_FIRST_BATCH_SIZE 2U |
Referenced by RCL_Handler_BLE_CS_preFillTxBuffer().
| #define BLE_CS_TONE_QUALITY_HIGH_THR 20U |
Referenced by RCL_Handler_BLE_CS_convertPctQuality().
| #define BLE_CS_TONE_QUALITY_NA 255U |
Referenced by RCL_Handler_BLE_CS_calcQ3().
| #define BLE_CS_TONE_EXTENSION_INITIATOR_TX 0b01U |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_TONE_EXTENSION_REFLECTOR_TX 0b10U |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_RX_GAIN_AUTO_DEFAULT 0x0EC9 |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define BLE_CS_RX_GAIN_DB_TO_OVERRIDE | ( | x | ) | (((x) / 3U) << 8U) |
Referenced by RCL_Handler_BLE_CS_readStatistics().
| #define BLE_CS_FOFF_COMP_TO_OVERRIDE | ( | x | ) | ((x) * 4U) |
Referenced by RCL_Handler_BLE_CS_readStatistics().
| #define BLE_CS_FOFF_NUM_OVERRIDE ((1 << 15U) | 1U) |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define BLE_CS_COMBINE_IQ | ( | i, | |
| q | |||
| ) | ((((int32_t) i) & 0xFFFF) | ((((int32_t) q) & 0xFFFF) << 16)) |
| #define DECODE_ANTENNA | ( | x, | |
| y | |||
| ) | (uint8_t) (((x) >> ((y)*2U)) & 0x03U) |
Referenced by RCL_Handler_BLE_CS_preprocessStep().
| #define ENCODE_ANTENNA | ( | x, | |
| y | |||
| ) | (((x) << ((y)*4U))) |
Referenced by RCL_Handler_BLE_CS_preprocessStep().
| #define INT16_MSB | ( | x | ) | (uint8_t) (((uint16_t) (x) >> 8U) & 0xFFU) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define INT16_LSB | ( | x | ) | (uint8_t) ((uint16_t) (x) & 0xFFU) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define INT32_H | ( | x | ) | (uint16_t) (((uint32_t) (x) >> 16U) & 0xFFFFU) |
Referenced by RCL_Handler_BLE_CS_Precal().
| #define INT32_L | ( | x | ) | (uint16_t) ((uint32_t) (x) & 0xFFFFU) |
Referenced by RCL_Handler_BLE_CS_Precal().
| #define T1US RCL_BLE_CS_US_TO_MCE_TIMER(1U) |
| #define T3US RCL_BLE_CS_US_TO_MCE_TIMER(3U) |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TRD RCL_BLE_CS_US_TO_MCE_TIMER(5U) |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TGD RCL_BLE_CS_US_TO_MCE_TIMER(10U) |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TPLT RCL_BLE_CS_US_TO_MCE_TIMER(20U) |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TFM RCL_BLE_CS_US_TO_MCE_TIMER(80U) |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TPYL 0U |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define A1 (0) |
| #define A2 (1) |
| #define A3 (2) |
| #define A4 (3) |
| #define PI_div2 (int16_t) (1 << (16-2)) |
Referenced by RCL_Handler_BLE_CS_rotateVector().
| #define NBITS (14U) |
Referenced by RCL_Handler_BLE_CS_rotateVector().
| #define K14 (9949) |
Referenced by RCL_Handler_BLE_CS_rotateVector().
| #define DCFILTER 1 |
| __attribute__ | ( | (weak) | ) | const |
|
static |
|
static |
References BLE_CS_RXFIFO_BASE_ADDR, BLE_CS_RXFIFO_LEN, BLE_CS_TXFIFO_BASE_ADDR, and BLE_CS_TXFIFO_LEN.
Referenced by RCL_Handler_BLE_CS(), and RCL_Handler_BLE_CS_Precal().
|
static |
References BLE_CS_FIRST_BATCH_SIZE, RCL_Handler_BLE_CS_fetchAndforwardNextStep(), and RCL_Handler_BLE_CS_transferFinishedBuffers().
Referenced by RCL_Handler_BLE_CS().
|
static |
|
static |
References bleCsHandlerState, RCL_BufferStateFinished, RCL_CMD_BLE_CS_FREQCOMP_NA, RCL_CMD_BLE_CS_SUBEVENT_RESULTS_CONTINUE_OPCODE, RCL_CMD_BLE_CS_SUBEVENT_RESULTS_OPCODE, RCL_CmdBleCs_PacketResult_Lost, RCL_CmdBleCs_PacketResult_Ok, RCL_CmdBleCs_Role_Initiator, RCL_CmdBleCs_StepMode_0, RCL_CmdBleCs_StepMode_2, RCL_Handler_BLE_CS_convertFreqOffset(), RCL_Handler_BLE_CS_convertStepResult(), RCL_Handler_BLE_CS_estimateStepResultLength(), RCL_Handler_BLE_CS_fetchNextStepResult(), RCL_MultiBuffer_commitBytes(), RCL_MultiBuffer_getNextWritableByte(), and stepResult.
Referenced by RCL_Handler_BLE_CS_readWriteBuffer().
|
static |
|
static |
References BLE_CS_S2R_MEMORY_OFFSET, LRF_setRclClockEnable(), RCL_BLE_CS_MAX_S2R_LEN, and RCL_MultiBuffer_head().
Referenced by RCL_Handler_BLE_CS().
| RCL_Events RCL_Handler_BLE_CS_readS2RSamples | ( | RCL_CmdBleCs * | pCmd | ) |
|
static |
References BLE_CS_FOFF_COMP_TO_OVERRIDE, and BLE_CS_RX_GAIN_DB_TO_OVERRIDE.
Referenced by RCL_Handler_BLE_CS().
|
static |
References RCL_PhyConfig_t::baud, BLE_CS_FOFF_NUM_OVERRIDE, BLE_CS_RX_GAIN_AUTO_DEFAULT, bleCsHandlerState, RCL_PhyConfig_t::demmisc2, RCL_PhyConfig_t::demmisc3, LRF_RSSI_INVALID, LRF_setRclClockEnable(), RCL_PhyConfig_t::magnConfig, RCL_Tadjust_t::mode0, RCL_Tadjust_t::mode1, RCL_Tadjust_t::mode2, RCL_Tadjust_t::mode3, RCL_AntennaConfig_t::numPath, RCL_PhyConfig_t::pctConfig, RCL_BLE_CS_MCE_TIMER_TO_PBE_TIMER, RCL_BLE_CS_MCE_TIMER_TO_PREFREF, RCL_BLE_CS_US_TO_MCE_TIMER, RCL_CmdBleCs_Policy_Auto, RCL_CmdBleCs_Policy_Cache, RCL_CmdBleCs_Policy_Manual, RCL_CmdBleCs_Role_Initiator, RCL_CmdBleCs_StepMode_0, RCL_CmdBleCs_StepMode_1, RCL_CmdBleCs_StepMode_2, RCL_CmdBleCs_StepMode_3, RCL_CmdBleCs_Tpm_10us, RCL_CmdBleCs_Tpm_20us, RCL_CmdBleCs_Tpm_40us, RCL_PhyConfig_t::rssioffset, RCL_PhyConfig_t::symmap, T3US, RCL_PhyConfig_t::tAdj, tAdjALut, tAdjBLut, RCL_PhyConfig_t::tAnt, tAntALut, tAntBLut, RCL_PhyConfig_t::tCorr, RCL_PhyConfig_t::tDem, RCL_PhyConfig_t::tFidc, TFM, TGD, RCL_PhyConfig_t::tInfiniteRx, RCL_PhyConfig_t::tPacket, tPllRx, TPLT, RCL_PhyConfig_t::tPostProcessDiv1, RCL_PhyConfig_t::tPostProcessDiv4, TPYL, TRD, RCL_PhyConfig_t::tRtt, tRttAdjustLut, RCL_PhyConfig_t::tRxTimeoutI0, RCL_PhyConfig_t::tRxTimeoutI3, RCL_PhyConfig_t::tRxTimeoutRn, RCL_PhyConfig_t::tStartup, tStepLut, RCL_PhyConfig_t::tTr, RCL_PhyConfig_t::tTxModDelay, RCL_PctConfig_t::val, and RCL_MagnConfig_t::val.
Referenced by RCL_Handler_BLE_CS().
|
static |
References RCL_AntennaConfig_t::ap, RCL_AntennaPath_t::apn, DECODE_ANTENNA, ENCODE_ANTENNA, foffErrorLut, RCL_AntennaConfig_t::numPath, RCL_AntennaConfig_t::numPerm, payloadLut, RCL_BLE_CS_MAX_PAYLOAD_SIZE, RCL_BLE_CS_MCE_TIMER_TO_PBE_TIMER, RCL_CmdBleCs_Role_Reflector, RCL_CmdBleCs_StepMode_1, RCL_CmdBleCs_StepMode_3, tAdjALut, tAdjBLut, tAntALut, tAntBLut, tPllRx, and tStepLut.
Referenced by RCL_Handler_BLE_CS_fetchAndforwardNextStep().
|
static |
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
|
static |
References bleCsHandlerState, and RCL_CmdBleCs_Policy_Auto.
Referenced by RCL_Handler_BLE_CS().
|
static |
|
static |
References BLE_CS_MAX_CHANNEL, channel, payloadLut, RCL_CmdBleCs_Role_Initiator, and tRttAdjustLut.
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| void RCL_Handler_BLE_CS_rotateVector | ( | int16_t * | pct_i, |
| int16_t * | pct_q, | ||
| int16_t | theta | ||
| ) |
References K14, NBITS, and PI_div2.
Referenced by RCL_Handler_BLE_CS_convertPct().
|
static |
References RCL_bleCsPctCompTable, and RCL_Handler_BLE_CS_rotateVector().
Referenced by RCL_Handler_BLE_CS_convertStepResult().
|
static |
References BLE_CS_TONE_QUALITY_NA.
Referenced by RCL_Handler_BLE_CS_convertPctQuality(), and RCL_Handler_BLE_CS_convertStepResult().
|
static |
References BLE_CS_TONE_QUALITY_HIGH_THR, RCL_CmdBleCs_ToneExtensionSlot_Enabled_NoToneExpected, RCL_CmdBleCs_ToneExtensionSlot_Enabled_ToneExpected, RCL_CmdBleCs_ToneQuality_High, RCL_CmdBleCs_ToneQuality_Low, RCL_CmdBleCs_ToneQuality_Unavailable, and RCL_Handler_BLE_CS_calcQ3().
Referenced by RCL_Handler_BLE_CS_convertStepResult().
|
static |
|
static |
References BLE_CS_TONE_EXTENSION_INITIATOR_TX, BLE_CS_TONE_EXTENSION_REFLECTOR_TX, channel, dataLength, INT16_LSB, INT16_MSB, mode, RCL_CMD_BLE_CS_FREQCOMP_NA, RCL_CMD_BLE_CS_TOAD_NA, RCL_CmdBleCs_Nadm_Unknown, RCL_CmdBleCs_PacketResult_Ok, RCL_CmdBleCs_ReportFormat_HCI, RCL_CmdBleCs_Role_Initiator, RCL_CmdBleCs_Role_Reflector, RCL_CmdBleCs_StepMode_0, RCL_CmdBleCs_StepMode_1, RCL_CmdBleCs_StepMode_2, RCL_CmdBleCs_StepMode_3, RCL_Handler_BLE_CS_calcQ3(), RCL_Handler_BLE_CS_convertFreqOffset(), RCL_Handler_BLE_CS_convertPct(), RCL_Handler_BLE_CS_convertPctQuality(), and RCL_Handler_BLE_CS_convertRtt().
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
|
static |
References RCL_CommandStatus_Error, RCL_CommandStatus_Error_Param, RCL_CommandStatus_Error_RxFifo, RCL_CommandStatus_Error_Synth, RCL_CommandStatus_Error_TxFifo, RCL_CommandStatus_Error_UnknownOp, RCL_Scheduler_findStopStatus(), and RCL_StopType_Hard.
Referenced by RCL_Handler_BLE_CS(), and RCL_Handler_BLE_CS_Precal().
| RCL_Events RCL_Handler_BLE_CS | ( | RCL_Command * | cmd, |
| LRF_Events | lrfEvents, | ||
| RCL_Events | rclEventsIn | ||
| ) |
References bleCsHandlerState, LRF_disable(), LRF_disableSynthRefsys(), LRF_enable(), LRF_enableSynthRefsys(), LRF_EventMdmsoft0, LRF_EventOpDone, LRF_EventOpError, LRF_EventRxfifo, LRF_programTxPower(), LRF_TXPOWER_BYPASS_FREQUENCY_BACKOFF, LRF_waitForTopsmReady(), RCL_CommandStatus_Active, RCL_CommandStatus_Error_Param, RCL_CommandStatus_Finished, RCL_Hal_powerReleaseSwTcxoUpdateConstraint(), RCL_Hal_powerSetSwTcxoUpdateConstraint(), RCL_Handler_BLE_CS_configureS2R(), RCL_Handler_BLE_CS_configureTxRxFifo(), RCL_Handler_BLE_CS_findPbeErrorEndStatus(), RCL_Handler_BLE_CS_preFillTxBuffer(), RCL_Handler_BLE_CS_preprocessCommand(), RCL_Handler_BLE_CS_readS2RSamples(), RCL_Handler_BLE_CS_readStatistics(), RCL_Handler_BLE_CS_readWriteBuffer(), RCL_Handler_BLE_CS_updateCache(), RCL_Scheduler_setStartStopTimeEarliestStart(), and TxPowerResult_Ok.
|
static |
Referenced by RCL_Handler_BLE_CS_Precal().
| RCL_Events RCL_Handler_BLE_CS_Precal | ( | RCL_Command * | cmd, |
| LRF_Events | lrfEvents, | ||
| RCL_Events | rclEventsIn | ||
| ) |
References bleCsHandlerState, data, INT32_H, INT32_L, LRF_disable(), LRF_disableSynthRefsys(), LRF_enable(), LRF_enableSynthRefsys(), LRF_EventOpDone, LRF_EventOpError, LRF_waitForTopsmReady(), RCL_CommandStatus_Active, RCL_CommandStatus_Finished, RCL_Hal_getTemperature(), RCL_Hal_powerReleaseSwTcxoUpdateConstraint(), RCL_Hal_powerSetSwTcxoUpdateConstraint(), RCL_Handler_BLE_CS_configureTxRxFifo(), RCL_Handler_BLE_CS_filterDC(), RCL_Handler_BLE_CS_findPbeErrorEndStatus(), and RCL_Scheduler_setStartStopTimeEarliestStart().
| void RCL_Handler_BLE_CS_PrecalDefaultCallback | ( | RCL_CmdBleCs_PrecalTable * | table, |
| uint8_t | channel, | ||
| RCL_CmdBleCs_IQSample * | pHigh, | ||
| RCL_CmdBleCs_IQSample * | pLow | ||
| ) |
References BLE_CS_MAX_CHANNEL.
| struct { ... } bleCsHandlerState |
| RCL_CmdBleCs_Step_Internal step |
Referenced by RCL_Handler_BLE_CS_fetchAndforwardNextStep().
| RCL_CmdBleCs_StepResult_Internal stepResult |
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
| uint32_t tStepLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| int16_t tPllRx[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| int16_t tAdjALut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| int16_t tAdjBLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| int16_t tAntBLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| int16_t tAntALut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| int16_t tRttAdjustLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_convertRtt(), and RCL_Handler_BLE_CS_preprocessCommand().
| const RCL_AntennaPath_t antennaPermutation[BLE_CS_NUM_PERMUTATION] |
| const RCL_AntennaConfig_t antennaConfig[RCL_CmdBleCs_AntennaConfig_Length] |
| const RCL_PhyConfig_t phyConfigLut[RCL_CmdBleCs_Phy_Length] |
| const int8_t foffErrorLut[BLE_CS_NUM_CHANNELS] |
Referenced by RCL_Handler_BLE_CS_preprocessStep().
| const uint16_t payloadLut[RCL_CmdBleCs_Payload_Length] |
Referenced by RCL_Handler_BLE_CS_convertRtt(), and RCL_Handler_BLE_CS_preprocessStep().
| const RCL_CmdBleCs_PctCompTable RCL_bleCsPctCompTable |
Referenced by RCL_Handler_BLE_CS_convertPct().