bcm-v4

[Specification

LP PHY Set TX Gain (lpphy_txgains_t *target)

  1. If the PHY revision is less than 2
    1. Calculate the rf_gain as the pad_gain (from target) left shifted by 7, bitwise ORed with the pga_gain (from target) left shifted by 3 and bitwise ORed with the gm_gain (from target)
    2. MaskSet PHY Register 0x4B5 with mask 0xF800 and set with the rf_gain calculated above

  2. Otherwise
    1. Call LP PHY Get PA Gain and save the result as pa_gain

    2. Write the gm_gain (from target) bitwise ORed with the pga_gain (from target) left-shifted by 8 to PHY Register 0x4B5

    3. MaskSet PHY Register 0x4FB with mask 0x8000 and set with the pad_gain (from target) bitwise ORed with pa_gain left shifted by 8

    4. Write the pga_gain (from target) left shifted by 8 and bitwise ORed with the gm_gain (from target) to PHY Register 0x4FC

    5. MaskSet PHY Register 0x4FD with mask 0x8000 and set with the pad_gain (from target) bitwise ORed with pa_gain left shifted by 8

  3. Call LP PHY Set DAC Gain with dac_gain (from target) as the argument

  4. Call LP PHY Set TX Gain Override with argument 1


Exported/Archived from the wiki to HTML on 2016-10-27