/* Generate a new private address. 
This function is used by the application to generate a new private address in order to use as the local device private address in an advertising process, a scanning process or a connection process */
ADI_BLER_RESULT adi_radio_GenerateAndSetRandomAddr(const ADI_BLE_RANDOM_ADDR_TYPE eAddrType)
/* Generate a new private address. 
This function is used by the application to generate a new private address in order to use as the local device private address in an advertising process, a scanning process or a connection process */
ADI_BLER_RESULT adi_radio_GenerateAndSetRandomAddr(const ADI_BLE_RANDOM_ADDR_TYPE eAddrType)
{
    ADI_BLER_RESULT bleResult = ADI_BLER_SUCCESS;
    ADI_BLE_LOGEVENT(LOGID_CMD_BLESMP_SET_RANDOM_ADDRESS);
    ADI_BLE_RADIO_CMD_START(CMD_BLESMP_SET_RANDOM_ADDRESS);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN], &eAddrType, 1u);
    bleResult = bler_process_cmd(CMD_BLESMP_SET_RANDOM_ADDRESS, 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);
}