/* Start Inquiry. 
Start the inquiry prodcedure in order to discover remote devices that are advertising. */
ADI_BLER_RESULT adi_radio_StartInquiry(const ADI_BLE_INQUIRY_MODE eInquiryMode)
/* Start Inquiry. 
Start the inquiry prodcedure in order to discover remote devices that are advertising. */
ADI_BLER_RESULT adi_radio_StartInquiry(const ADI_BLE_INQUIRY_MODE eInquiryMode)
{
    ADI_BLER_RESULT bleResult;
    ADI_BLE_LOGEVENT(LOGID_CMD_BLEGAP_START_INQUIRY);
    ADI_BLE_RADIO_CMD_START(CMD_BLEGAP_START_INQUIRY);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &eInquiryMode, 1u);
    bleResult = bler_process_cmd(CMD_BLEGAP_START_INQUIRY, 1u, NULL, 0u);
    if(bleResult == ADI_BLER_SUCCESS){
    	bleResult = ADI_BLE_WAIT_FOR_COMPLETION(ADI_EVENT_FLAG_EVENT_COMPLETE, ADI_BLER_CMD_TIMEOUT);
    }
    ADI_BLE_RADIO_CMD_END();
    return (bleResult);
}