TX QUAD calibration API arguments in AD9361

Hi, I wanted to understand this API, mainly the third argument.

int32_t ad9361_do_calib(struct ad9361_rf_phy *phy, uint32_t cal, int32_t arg);

In documents the description is given as,

Performs the selected calibration. Receives as parameters a structure that contains the AD9361 current state,
the desired calibration (TX_QUAD_CAL, RFDC_CAL) and for TX_QUAD_CAL, the optional RX phase value overwrite (set to zero).
Returns 0 in case of success, negative error code otherwise.

What exactly does the third argument used for? On what basis this value is decided. Please shed some light on this.


formatting.
[edited by: Srihari Rao M at 7:53 AM (GMT 0) on 4 Jan 2020]
Parents Reply Children