bcm-v4

[Specification

N PHY Estimate Tone Power (int *buffer, u8 samps)

  1. Establish 2-element int arrays idle, value, and index
  2. Establish a 4-element int array rssi
  3. Set idle[0] and idle[1] to -64
  4. If the current band is 2G
    1. Set type to 4
  5. Otherwise
    1. Set type to 5
  6. Call N PHY Poll RSSI with type, rssi, samps as arguments

  7. Set value[0] to rssi[0] / samps
  8. Set value[1] to rssi[1] / samps
  9. Set index[0] to idle[0] - value[0] + 64
  10. Set index[1] to idle[1] - value[1] + 64
  11. Read the N PHY Table with ID 26, length 1, offset index[0], width 32, and data buffer[0]
  12. Read the N PHY Table with ID 27, length 1, offset index[1], width 32, and data buffer[1]

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