|
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/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 2402 |
| #define | BLE_CS_MAX_CHANNEL 78 |
| #define | BLE_CS_MID_CHANNEL 40 |
| #define | BLE_CS_NUM_CHANNELS 90 |
| #define | BLE_CS_NUM_INVALID_CHANNELS 7 |
| #define | BLE_CS_SILENT_CHANNEL 100 |
| #define | BLE_CS_NUM_PERMUTATION 24 |
| #define | BLE_CS_S2R_OVERSAMPLE_RATE 4 |
| #define | BLE_CS_S2R_MEMORY_OFFSET 0x0C00 |
| #define | BLE_CS_TXFIFO_BASE_ADDR 128 |
| #define | BLE_CS_TXFIFO_LEN 96 |
| #define | BLE_CS_RXFIFO_BASE_ADDR 224 |
| #define | BLE_CS_RXFIFO_LEN 160 |
| #define | BLE_CS_FIRST_BATCH_SIZE 2 |
| #define | BLE_CS_TONE_QUALITY_HIGH_THR 20 |
| #define | BLE_CS_TONE_QUALITY_NA 255 |
| #define | BLE_CS_RPL_HIGH_GAIN_THR (-55) |
| #define | BLE_CS_RPL_LOW_GAIN_THR (-35) |
| #define | BLE_CS_RPL_DELTA_DB (-6) |
| #define | BLE_CS_RPL_HIGH_GAIN (-45) |
| #define | BLE_CS_RPL_LOW_GAIN (-21) |
| #define | BLE_CS_HIGH_GAIN_DB (RCL_CmdBleCs_RxGain_High * RCL_BLE_CS_STEP_RX_GAIN_DB) |
| #define | BLE_CS_LOW_GAIN_DB (RCL_CmdBleCs_RxGain_Low * RCL_BLE_CS_STEP_RX_GAIN_DB) |
| #define | BLE_CS_TONE_EXTENSION_INITIATOR_TX 0b01 |
| #define | BLE_CS_TONE_EXTENSION_REFLECTOR_TX 0b10 |
| #define | BLE_CS_COMBINE_IQ(i, q) ((((int32_t) i) & 0xFFFF) | ((((int32_t) q) & 0xFFFF) << 16)) |
| #define | DECODE_ANTENNA(x, y) (((x) >> ((y)*2)) & 0x03) |
| #define | ENCODE_ANTENNA(x, y) (((x) << ((y)*4))) |
| #define | INT16_MSB(x) (((x) >> 8) & 0xFF) |
| #define | INT16_LSB(x) ((x) & 0xFF) |
| #define | INT32_H(x) (((x) >> 16) & 0xFFFF) |
| #define | INT32_L(x) ((x) & 0xFFFF) |
| #define | T1US 48 |
| #define | T3US 144 |
| #define | TRD 240 |
| #define | TGD 480 |
| #define | TPLT 960 |
| #define | TPYL 0 |
| #define | A1 0 |
| #define | A2 1 |
| #define | A3 2 |
| #define | A4 3 |
| #define | DCDEBUG 1 |
| #define | PI_div2 (1 << (16-2)) |
| #define | NBITS (14) |
| #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 int16_t | RCL_Handler_BLE_CS_convertFreqOffset (int16_t foffMeasured, bool ceil) |
| static int16_t | RCL_Handler_BLE_CS_convertRtt (RCL_CmdBleCs *pCmd, uint8_t mode, int8_t channel, uint8_t payloadLen, bool secondToneExtensionSlot, int32_t toAD, 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, const uint8_t rplScaler) |
| 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 { | |
| uint32_t | startTime |
| bool | firstBuffer |
| uint32_t | hftrackctl |
| } | ble_cs |
| } | bleCsHandlerState |
| RCL_CmdBleCs_Step_Internal | step |
| RCL_CmdBleCs_StepResult_Internal | result |
| uint32_t | tStepLut [RCL_CmdBleCs_StepMode_Length] |
| uint16_t | tAdjALut [RCL_CmdBleCs_StepMode_Length] |
| uint16_t | tAdjBLut [RCL_CmdBleCs_StepMode_Length] |
| uint16_t | tAntALut [RCL_CmdBleCs_StepMode_Length] |
| uint16_t | tAntBLut [RCL_CmdBleCs_StepMode_Length] |
| uint16_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 |
| int16_t | tPilotAdjust |
Pilot tone need to be adjusted with shaper delay |
| 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 RCL_PctConfig_t.__unnamed__ |
| #define BLE_CS_BASE_FREQ_MHZ 2402 |
| #define BLE_CS_MAX_CHANNEL 78 |
| #define BLE_CS_MID_CHANNEL 40 |
| #define BLE_CS_NUM_CHANNELS 90 |
| #define BLE_CS_NUM_INVALID_CHANNELS 7 |
| #define BLE_CS_SILENT_CHANNEL 100 |
Referenced by RCL_Handler_BLE_CS_preprocessStep().
| #define BLE_CS_NUM_PERMUTATION 24 |
| #define BLE_CS_S2R_OVERSAMPLE_RATE 4 |
| #define BLE_CS_S2R_MEMORY_OFFSET 0x0C00 |
Referenced by RCL_Handler_BLE_CS_configureS2R().
| #define BLE_CS_TXFIFO_BASE_ADDR 128 |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_TXFIFO_LEN 96 |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_RXFIFO_BASE_ADDR 224 |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_RXFIFO_LEN 160 |
Referenced by RCL_Handler_BLE_CS_configureTxRxFifo().
| #define BLE_CS_FIRST_BATCH_SIZE 2 |
Referenced by RCL_Handler_BLE_CS_preFillTxBuffer().
| #define BLE_CS_TONE_QUALITY_HIGH_THR 20 |
Referenced by RCL_Handler_BLE_CS_convertPctQuality().
| #define BLE_CS_TONE_QUALITY_NA 255 |
Referenced by RCL_Handler_BLE_CS_calcQ3().
| #define BLE_CS_RPL_HIGH_GAIN_THR (-55) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_RPL_LOW_GAIN_THR (-35) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_RPL_DELTA_DB (-6) |
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
| #define BLE_CS_RPL_HIGH_GAIN (-45) |
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
| #define BLE_CS_RPL_LOW_GAIN (-21) |
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
| #define BLE_CS_HIGH_GAIN_DB (RCL_CmdBleCs_RxGain_High * RCL_BLE_CS_STEP_RX_GAIN_DB) |
| #define BLE_CS_LOW_GAIN_DB (RCL_CmdBleCs_RxGain_Low * RCL_BLE_CS_STEP_RX_GAIN_DB) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_TONE_EXTENSION_INITIATOR_TX 0b01 |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_TONE_EXTENSION_REFLECTOR_TX 0b10 |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define BLE_CS_COMBINE_IQ | ( | i, | |
| q | |||
| ) | ((((int32_t) i) & 0xFFFF) | ((((int32_t) q) & 0xFFFF) << 16)) |
| #define DECODE_ANTENNA | ( | x, | |
| y | |||
| ) | (((x) >> ((y)*2)) & 0x03) |
Referenced by RCL_Handler_BLE_CS_preprocessStep().
| #define ENCODE_ANTENNA | ( | x, | |
| y | |||
| ) | (((x) << ((y)*4))) |
Referenced by RCL_Handler_BLE_CS_preprocessStep().
| #define INT16_MSB | ( | x | ) | (((x) >> 8) & 0xFF) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define INT16_LSB | ( | x | ) | ((x) & 0xFF) |
Referenced by RCL_Handler_BLE_CS_convertStepResult().
| #define INT32_H | ( | x | ) | (((x) >> 16) & 0xFFFF) |
Referenced by RCL_Handler_BLE_CS_Precal().
| #define INT32_L | ( | x | ) | ((x) & 0xFFFF) |
Referenced by RCL_Handler_BLE_CS_Precal().
| #define T1US 48 |
| #define T3US 144 |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TRD 240 |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TGD 480 |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TPLT 960 |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define TPYL 0 |
Referenced by RCL_Handler_BLE_CS_preprocessCommand().
| #define A1 0 |
| #define A2 1 |
| #define A3 2 |
| #define A4 3 |
| #define DCDEBUG 1 |
| #define PI_div2 (1 << (16-2)) |
Referenced by RCL_Handler_BLE_CS_rotateVector().
| #define NBITS (14) |
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 BLE_CS_HIGH_GAIN_DB, BLE_CS_RPL_DELTA_DB, BLE_CS_RPL_HIGH_GAIN, BLE_CS_RPL_LOW_GAIN, bleCsHandlerState, RCL_BLE_CS_STEP_RX_GAIN_DB, 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_Ok, RCL_CmdBleCs_Role_Initiator, RCL_CmdBleCs_RxGain_High, RCL_CmdBleCs_StepMode_2, RCL_CmdBleCs_StepMode_3, 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 result.
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 |
Referenced by RCL_Handler_BLE_CS().
|
static |
References RCL_PhyConfig_t::baud, 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_US_TO_MCE_TIMER, 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, TGD, RCL_PhyConfig_t::tInfiniteRx, RCL_PhyConfig_t::tPacket, RCL_PhyConfig_t::tPilotAdjust, 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, BLE_CS_MAX_CHANNEL, BLE_CS_SILENT_CHANNEL, 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, and tStepLut.
Referenced by RCL_Handler_BLE_CS_fetchAndforwardNextStep().
|
static |
Referenced by RCL_Handler_BLE_CS_retrieveAndStoreNextResult().
|
static |
|
static |
References BLE_CS_MAX_CHANNEL, channel, mode, 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_HIGH_GAIN_DB, BLE_CS_LOW_GAIN_DB, BLE_CS_RPL_HIGH_GAIN_THR, BLE_CS_RPL_LOW_GAIN_THR, 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, hal_power_release_swtcxo_update_constraint(), hal_power_set_swtcxo_update_constraint(), 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_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_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, hal_get_temperature(), hal_power_release_swtcxo_update_constraint(), hal_power_set_swtcxo_update_constraint(), 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_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 result |
| uint32_t tStepLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| uint16_t tAdjALut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| uint16_t tAdjBLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| uint16_t tAntALut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| uint16_t tAntBLut[RCL_CmdBleCs_StepMode_Length] |
Referenced by RCL_Handler_BLE_CS_preprocessCommand(), and RCL_Handler_BLE_CS_preprocessStep().
| uint16_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().