Skip to content

Commit

Permalink
temporarily remove fgen and rssi functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
EricB-ADI committed Sep 30, 2024
1 parent 1903c20 commit 1fa60f8
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions Libraries/Cordio/controller/sources/ble/lhci/lhci_cmd_vs.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf)
uint8_t evtParamLen = 1; /* default is status field only */
uint32_t regReadAddr = 0;
uint32_t channel = 0;

(void)channel;

/* Decode and consume command packet. */

switch (pHdr->opCode) {
Expand Down Expand Up @@ -276,7 +279,7 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf)
}
case LHCI_OPCODE_VS_GET_RSSI:
{

#if 0
channel = pBuf[0];

if(channel > LL_DTM_MAX_CHAN_IDX)
Expand All @@ -286,12 +289,16 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf)
else{
status = LL_SUCCESS;
}

evtParamLen += sizeof(int8_t);
#else
status = LL_ERROR_CODE_CMD_DISALLOWED;
#endif

break;
}
case LHCI_OPCODE_VS_FGEN:
{
#if 0
uint8_t enable = pBuf[0];

if(enable)
Expand Down Expand Up @@ -319,13 +326,18 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf)
status = freqOk ? LL_SUCCESS : LL_ERROR_CODE_PARAM_OUT_OF_MANDATORY_RANGE;
}


}
else
{
PalBbDisableFgen();
status = LL_SUCCESS;
}

#else
status = LL_ERROR_CODE_CMD_DISALLOWED;
#endif

break;
}
case LHCI_OPCODE_VS_RESET_ADV_STATS:
Expand Down Expand Up @@ -373,7 +385,7 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf)
break;
case LHCI_OPCODE_VS_GET_RSSI:
{

#if 0
if(status != LL_SUCCESS)
{
break;
Expand All @@ -384,6 +396,9 @@ bool_t lhciCommonVsStdDecodeCmdPkt(LhciHdr_t *pHdr, uint8_t *pBuf)


pBuf[0] = (uint8_t)rssi;
#else
pBuf[0] = INT8_MIN;
#endif



Expand Down

0 comments on commit 1fa60f8

Please sign in to comment.