bcm-v4

[Specification

u8 LP PHY TX IQLO functional

  1. Create 2 lpphy_txgains structures for old_ and new_gains
  2. Create an LP PHY table with width = 16, length = 1
  3. Preset the gm_gain member of new_gains to 6
  4. Preset the pga_gain member of new_gains to 12
  5. Preset the pad_gain member of new_gains to 12
  6. Preset the dac_gain member of new_gains to 5
  7. Call LP PHY Get TX Gain with &old gains as the argument

  8. Call LP PHY Get TX IQCC with ( &a, &b) as arguments

  9. Call LP PHY Get BBMult and save the result as s7

  10. Read Radio Register 0x5A, bitwise AND with 7, and save result in tmp

  11. Call LP PHY Set TX Gain with &new_gains as argument

  12. Bitwise OR Radio Register 0x5A with 0x77

  13. Call LP PHY Set BBMult with argument 0x40

  14. Call LP PHY Set IQCC with ( 0x1f4, 0x1f4) as arguments

  15. Write 0x7877 to PHY Register 0x452

  16. Write 0x0AA9 to PHY Register 0x453

  17. Call LP PHY Start TX Tone with arguments ( 0x9c4, 0x64)

  18. Bitwise OR PHY Register 0x453 with 0x8000

  19. Write 0x4000 to PHY Register 0x451

  20. Call LP PHY IQcal Wait

  21. Bitwise AND PHY Register 0x453 with 0x7FFF

  22. Set the table data pointer to a u16 data word, the table offset to 0x6B, and the table ID to 0
  23. Read the LP table

  24. Call LP PHY Set TX Gain with argument &old_gains

  25. Call LP PHY Set TX IQCC with arguments ( a, b)

  26. Call LP PHY Set BBMult with argument s7

  27. MaskSet Radio Register 0x5A with mask 0xFF88 and set with (tmp << 4 | tmp)

  28. Return (table data word != 0)

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