uint32_t ensm_state ; | |
int32_t i; | |
int32_t rdata; | |
int16_t sampI, sampQ; | |
uint8_t en_dis = 5; |
en_dis_rx(ad9361_phy,1,RX_ENABLE); | |
en_dis_rx(ad9361_phy,2,RX_DISABLE); |
//ensm | |
ad9361_set_en_state_machine_mode(ad9361_phy,ENSM_STATE_ALERT); | |
ensm_state = get_cur_ensm_status(ad9361_phy); | |
ad9361_set_en_state_machine_mode(ad9361_phy,ENSM_STATE_RX); | |
ensm_state = get_cur_ensm_status(ad9361_phy); |
//Rx | |
adc_capture(16384,ADC_DDR_BASEADDR); | |
Xil_DCacheInvalidateRange(ADC_DDR_BASEADDR,16384*4); |
mdelay(1000); | |
for( i= 0; i< 16384; i++ ) | |
{ | |
rdata = Xil_In32(ADC_DDR_BASEADDR+(i*4)); | |
sampQ = rdata & 0xFFFF; | |
sampI = (rdata>>16) & 0xFFFF; | |
xil_printf("%d ",sampI); | |
} |
更多回帖