ad9371-iiostream : Concept Clarification

Hi All,

I am working on ad9371-iiostream and i am not able to understand below API args:

ASSERT(cfg_ad9371_streaming_ch(ctx, &rxcfg, RX, 0) && "RX port 0 not found");  

ASSERT(cfg_ad9371_streaming_ch(ctx, &txcfg, TX, 0) && "TX port 0 not found");

    a) Does it mean that there are two ports i.e Rx/Rx Port 0 and Rx/Tx Port 1 ?

    b) Can i specify last param as "1" for Rx/Tx Port 1 ?

 

ASSERT(get_ad9371_stream_ch(ctx, RX, rx, 0, 'i', &rx0_i) && "RX chan i not found");

ASSERT(get_ad9371_stream_ch(ctx, RX, rx, 0, 'q', &rx0_q) && "RX chan q not found");

    a) For Channel 0 , i am specifying 0 as 4th arg so do i need to put "1" for Channel 1 ?

ASSERT(get_ad9371_stream_ch(ctx, TX, tx, 0, 0, &tx0_i) && "TX chan i not found");

ASSERT(get_ad9371_stream_ch(ctx, TX, tx, 1, 0, &tx0_q) && "TX chan q not found");

   a)  Why did i specify 4th arg as "1" for q channel ? I had expected "0"

Kindly put some light on this as i have to capture on Rx Channel -1 also.

Regards,

Manish