/* Set Proximity alert level. 
Sets Proximity profile alert level. Alert level is described by ADI_BLE_ALERT_LEVEL */
ADI_BLER_RESULT adi_radio_Proximity_SetAlertLevel(const ADI_BLE_ALERT_LEVEL eLinkLossAlertLevel, const bool bLinkLoss)
/* Set Proximity alert level. 
Sets Proximity profile alert level. Alert level is described by ADI_BLE_ALERT_LEVEL */
ADI_BLER_RESULT adi_radio_Proximity_SetAlertLevel(const ADI_BLE_ALERT_LEVEL eLinkLossAlertLevel, const bool bLinkLoss)
{
    ADI_BLER_RESULT bleResult;
    ADI_BLE_LOGEVENT(LOGID_CMD_PROX_REPORTER_SET_ALERT_LEVEL);
    ADI_BLE_RADIO_CMD_START(CMD_PROX_REPORTER_SET_ALERT_LEVEL);
    memcpy(&pBLERadio->cmdPkt[ADI_RADIO_CMD_HEADER_LEN],&eLinkLossAlertLevel, 1u);
    bleResult = bler_process_cmd(((bLinkLoss == true) ? CMD_PROX_REPORTER_SET_ALERT_LEVEL : CMD_PROX_REPORTER_SET_IMM_ALERT_LEVEL), 1u, NULL, 0u);
    if(bleResult == ADI_BLER_SUCCESS){
    	bleResult = ADI_BLE_WAIT_FOR_COMPLETION(ADI_EVENT_FLAG_RESP_SUCCESS,ADI_BLER_CMD_TIMEOUT);
    }
    ADI_BLE_RADIO_CMD_END();
    return (bleResult);
}