I tried to code to emit CW using Ble_HciRecv() with LE_QN_CFG_TEST_CMD, but it doesn't work. I received "gBleInvalidParameter_c" error. I coded like followings:
int startEmitCW(void) {
bleResult_t result = gHciStatusBase_c;
uint8_t aData[] = { 0x01, 0xf2, 0xff, 3, 19, 0x00, 0x01 }; // CW emittion HCI <Vendor Specific> command. @2440MHz, Non-modulation
uint8_t type = aData[0];
hciPacketType_t packetType = (hciPacketType_t) type;
result = Ble_HciRecv (
packetType,
aData + 1,
6
);
if( result == gHciSuccess_c) {
return 0;
} else {
return -1;
}
}
Is LE_QN_CFG_TEST_CMD still valid for SDK version 2.2 Beta?