Hello all!

How to calculate total gain of RX path in ADRV9009, convert data from gain table to dB?

For example, gain table for RX:

taliseRxGainTable_t rxGainTable [61] = { {0, 0, 0, 14, 0}, /* Gain index 255 */ {14, 0, 0, 14, 0}, /* Gain index 254 */ {27, 0, 0, 15, 0}, /* Gain index 253 */ {41, 0, 0, 14, 0}, /* Gain index 252 */ {53, 0, 0, 13, 0}, /* Gain index 251 */ {67, 0, 0, 14, 0}, /* Gain index 250 */ {78, 0, 0, 15, 0}, /* Gain index 249 */ {88, 0, 0, 14, 0}, /* Gain index 248 */ {100, 0, 0, 14, 0}, /* Gain index 247 */ {109, 0, 0, 14, 0}, /* Gain index 246 */ {118, 0, 0, 14, 0}, /* Gain index 245 */ ... }

How to convert each value to attenuation and gain, respectively?

Columns in table:

- Front-End Attenuator bits. Attenuation value
`A1(g1) = 20 * Log[(256 - g1) / 256]`

,`g1`

— value from column 1 (0, 14, 27, 41, ...) Well, it's known. - External Gain Control Bits. Attenuation value
`A2(g2) = 0`

for each`g2`

in this table. OK. - TIA/AGC Gain. How to convert to attenuation/gain in dB? Attenuation value
`A3(g3)`

= ? - Digital Gain / Attenuation Bits. How to convert to attenuation/gain in dB? Attenuation value
`A4(g4)`

= ?

So, the total attenuation is A = A1 + A2 + A3 + A4. And total gain G is?

Simpler question, why at 255 gain index total rx gain is 18 dB?