/* Get GAP Role. 
This API is used to get the current GAP role of the BLE device. */
ADI_BLER_RESULT adi_radio_GetCurrentRole(ADI_BLE_ROLE *const pCurrentRole)
/* Get GAP Role. 
This API is used to get the current GAP role of the BLE device. */
ADI_BLER_RESULT adi_radio_GetCurrentRole(ADI_BLE_ROLE *const pCurrentRole)
{
    ADI_BLER_RESULT bleResult;
    ASSERT(pCurrentRole != NULL);
    ADI_BLE_LOGEVENT(LOGID_CMD_BLEGAP_GET_CURROLE);
    ADI_BLE_RADIO_CMD_START(CMD_BLEGAP_GET_CURROLE);
    bleResult = bler_process_cmd(CMD_BLEGAP_GET_CURROLE, 0u, pCurrentRole, sizeof(ADI_BLE_ROLE));
    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);
}