bcm-v4

[Specification

LP PHY Set TX Power Control(u16 mode)

  1. Read PHY Register 0x4A4, bitwise AND with 0xE000, and save as the old mode

  2. If the old mode is not equal to the input parameter mode
    1. If the old mode is equal to 0xE000
      1. Perform the LP PHY TX Power Update Npt routine

      2. Perform the LP PHY Clear TX Power Offsets routine

    2. Else if mode is equal to 0xE000 (HW mode)

      1. Perform the LP PHY TX Power Recalc Target routine

      2. MaskSet PHY Register 0x4A4 with mask 0xFF80 and set with TSSI index

      3. MaskSet PHY Register 0x4A5 with mask 0xF8FF and set with (TSSI npt << 8)

      4. Read shared memory location 0xE0 and save the result in TSSI transmit count

      5. Call LP PHY Set TX Gain Override with 0 as the argument

      6. Write -1 to Transmit power index override

    3. If the PHY revision >= 2

      1. If mode equals 0xE000 (HW mode)

        1. Bitwise OR PHY Register 0x4D0 with 2

      2. Otherwise
        1. Bitwise AND PHY Register 0x4D0 with mask 0xFFFD

    4. MaskSet PHY Register 0x4A4 with mask 0x1FFF and set with mode


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